Viewing Everweb blog and Disqus
Everweb blog and Disqus
User: David G. 6 years ago
|
|
There seems to be a bug in the "Disqus widget code" when posting files from the folder on your computer to the server via FTP app like Cyberduck. The html code for the disqus script leaves out the "http//mywebsite.com in the this.page.url part of the code. Like this: <script> var disqus_config = function () { this.page.url = "/my-pages-blog/Entries/2017/3/title of blog post.html"; This should read "http//mywebsite.com/my-pages-blog/Entries/2017/etc.etc. this.page.identifier = "D1D601B6DEF94A32AB42BB510555B15F"; this.callbacks.onNewComment = [function() { update_layout(); }]; this.callbacks.onReady = [function() { run_update_layout(); }]; this.callbacks.onIdentify = [function() { update_layout(); }]; this.callbacks.afterRender = [function() { update_layout(); }]; this.callbacks.preReset = [function() { update_layout(); }]; this.callbacks.onPaginate = [function() { update_layout(); }]; }; (function() { var d = document, s = d.createElement('script'); s.src = 'https://websitename.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); </script> I'm not sure if the web domain may be added into the code when you use the publishing feature in Everweb or not. It would seem unlikely. That information should just point the Everweb ftp app to the right folder. When I checked with Disqus support that part of the code is required to initiate the Disqus comments on the post pages. I can't get mine to load unless I go into the code on the server and change it for every post. Am I missing something here? |
|
User: Paul-RAGESW 6 years ago
|
|
Hi David, Try this; 1. Go to the File menu and select 'Edit Publishing Settings' 2. Select Publish to FTP' 3. Enter your website URL in the URL field 4. Go back to Publish To Folder 5. Publish your website Let me know if this solves your problem. ------------------------------- Paul EverWeb Developer |
|
User: David G. 6 years ago
|
|
Hi Paul, Thanks for responding to my post. Yes, when I followed your instructions it puts the full URL into the Disqus code of the post page. I found that once Disqus initiated the page on their site that part of the code is a non issue, but for initiating the page the full url of the site is required. I got everything working by manually placing the correct code into the pages once they were published to the site. Knowing this is a great help. Thank you! |
|
User: Paul-RAGESW 6 years ago
|
|
Hi David, Glad to hear you got his working. We will work on improving this and making it more clear in an upcoming EverWeb version. I appreciate your detailed feedback! Thanks, ------------------------------- Paul EverWeb Developer |
|
Post Reply |
You must login or signup to post. |