thirtybees / beesblog

Blog module for thirty bees
Academic Free License v3.0
1 stars 13 forks source link

Comment Count not working #37

Open selwynorren opened 5 years ago

selwynorren commented 5 years ago

Disqus allows for the amount of comments to be counted. as far as I can tell the code should be working right according to their code examples, however nowhere is it pulling through in the post info. The link to the disqus thread works, however its not showing the correct comment count

selwynorren commented 5 years ago

Just as a possible help, when I check in the inspector when teh page loads, I get this: GEThttps://orren-lifestyle.disqus.com/count.js GEThttps://undefined.disqus.com/count-data.js?1=14&1=15&1=16&1=17&1=18

The count-data.js is returning the correct blog ID posts, however it comes back as undefined for the Disqus username. I am not sure where it is getting this as you can see in teh first GET it is set correctly.

selwynorren commented 5 years ago

I have seemed to partially solve this one.

If I have the move javascript to the end active (Advanced / Performance setting), then the error as mentioned in my second post here become active.

I have had to make one additional adjustments to post_list_item.tpl

I just added the following to the end: {if isset($disqusUsername) && $disqusUsername}

{/if}

This then counts in on the main blog page as well as the individual blog post page as well