Copyright © 2006 - 2026 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Disqus comments count delayed!
I using jw_disqus plugin on my joomla 3.4 site with core joomla article list
I enabled plugin and Display a comments counter/anchor link in (category) listings
Problem is that the comment counters displayed on blog_item list work's only when I manually insert below code before </body> tag
<script type="text/javascript"> /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ var disqus_shortname = 'myshortname'; // required: replace example with your forum shortname // var disqus_developer = 1; // Comment out when the site is live /* * * DON'T EDIT BELOW THIS LINE * * */ (function () { var s = document.createElement('script'); s.async = true; s.type = 'text/javascript'; s.src = 'http://' + disqus_shortname + '.disqus.com/count.js'; (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); }()); </script>After that customization comment counter works but correct count value is refreshing after few minutes.
When I cut this code after</body> then only Add a comment link is displayed.
The counts not working
I've checked on default joomla theme and problem is that same!
Maybe I need to change my javascript code to correct use data-disqus-identifier
First of all, hacking the extension is not recommended at all. The plugin should work fine as you can see in our demo pages :
demo.joomlaworks.net/disqus-comments-category
demo.joomlaworks.net/disqus-comments-category/disqus-comments-article
Regarding the delay, this has to do with DISQUS service not the plugin.
Thanks for your help.
I don't know why you treat this as hacking your plugin:)
In my case your plugin not work after install.
Plugin is installed and enabled and don't work in category view, There is only Add a comment link in blog layout
But in article view plugin works fine!
Maybe you know what can by the reason of this.
The plugins start working in category view only when I add java code into my template file.
I am looking for solution how to use your plugin without any modyfication of my template.
Or need some information how to modyfi my theme to use jw_disqus
Edited 11 years 4 months ago by Toma Skubi
Thanks again for your response.
I think that you don't understund my query!
Sorry for inaccurate description.
I try again :
demo.joomlaworks.net/disqus-comments-category - this option not work correct in my site
There is Add a comment link instead of correct comments count, translation also not working.
The correct comment count and translation start to work when I manualy add java code to my theme html.
I try to use your plugin without any custom code just enable and use your plugin.
I think that plugin not works correct because something block to synchronize plugin with my disqus account
Log in or create an account to reply.