Disqus Comments

Mark

Administrator
Staff member
VERSION 1.3#

Want to add the super popular Disqus comments system to your topsite? Look no further

1) create an account with disqus.com (if you haven't already)
2) download and install the plugin attached here.
3) go to your admin control panel -> General Settings and enter your Disqus.com User "Sites Shortname".
4) Optional - In your ranking files paste {$disqus_comments_count} to display comments count and reactions

Done!

benefits of Disqus:

- threaded discussion
- beautiful interface
- commenters login with facebook, twitter, yahoo etc.
- community box
- likes/dislikes
- decent spam control

Updates:
01.01.2013 - Display Comments count on the ranking
28.11.2013 - Fix in installer for database column default value

Languages
- English, German
 

Attachments

Anna

Member
I must have the infamous screwdriver in the middle of the hand or something - but I did exactly as you wrote above and still the only thing I see is a link saying: "Powered by Disqus". What else do I have to do?
 

Mark

Administrator
Staff member
Found a bug that has been in this plugin since the beginning, re-download the plugin and install and you should be all set.

OR you can updated disqus.html in the plugins folder

find:
Code:
     var disqus_url = 'http://visiolist.com/demo/index.php?a=stats&u={$username}';
replace with:
Code:
     var disqus_url = '{$list_url}/{$url_helper_a}stats{$url_helper_u}{$username}{$url_tail}';
 

Anna

Member
OK, I feel really daft having to ask this - but are you supposed to be able to view chat and comments from disqus within the toplist or not. When I install it (and yes we have double-checked all of the above) I only get to se a link saying: blog comments powered by disqus. The link then leads to the homepage of disqus (disqus.com). And yes, I have created a user in disqus and added that name in the admin section. At loss here and somewhat frustrated since I just have this nagging feeling that it could work really really well integrating comments into the toplist^^
 

Anna

Member
Aaaah! I knew it had to b e more to it than a link! ;-) OK, I re-downloaded it and installed it all over but still the same... The url is: http://www.spindelmor.se/topplista If you need anything fancier to look at code etc I have to get back at you after asking fiance...
 

Basti

Administrator
Staff member
Hm odd, ill try it again on our demo. Something must be wrong. Ill get back to you
 

Basti

Administrator
Staff member
Ok i was not able to reproduce this, but there are somethings we can try.

1. Are you sure you entered your disqus shortname in admin settings? and not the main moderator username

if yes
2. try to open disqus.html
PHP:
    var disqus_identifier = 'visio-{$username}';
Try to change the visio there to something else
 

Anna

Member
Duh! That made the trick! I had actually did as you said... Now it is working like a charm! :-D Disqus user for me gave me the association of my username. If there is more full people around it might be an idea to make it clearer. Maybe write: Disqus site name?
 

Basti

Administrator
Staff member
Plugin is now compatible with VisioList 0.9 Plugin Update check.
Additionally you can now display comments count and reactions count on your ranking files by pasting the following tag for example into table_top_row.html
Code:
{$disqus_comments_count}
To update simply reupload, or replace files on ftp

Additionally it is required that you reupload this plugin if you upgraded to VisioList 0.9 because of the member stats page change
 

BernieW

New Member
HiI All,

I'm running VL ver 0.8. I added the plugin, created a discus account, and placed the shortsitename in the admin section. When I look at the stats page of a member I do not see anything. I have also added the {$disqus_comments_count} tag to the table_top_row. When I click on it it takes me to a http 404 page not found. Not sure what I'm doing wrong.

Thanks,
 

Mark

Administrator
Staff member
Hi, the stats/details page hook locations have changed slightly in 0.9, you will need to update the latest VL version to use this plugin current release. 0.9 is much improved over 0.8, its always best to keep your installation up to date.
 

panzerdude

Member
Hi,

Is there any way I can add Disqus Comments to my Custom pages?

I'm thinking I could use the universal code from Disqus, I'm just not sure where to put it so it shows up in my pages.

Thank you
 

Mark

Administrator
Staff member
I believe you should be able to just add the integration code directly into your custom page, but I am on the road and unable to test


try pasting this in your custom page where you want the comments to show, change the username, page ID, and domain to yoru own of course.

Code:
<script type="text/javascript">  var disqus_shortname = 'USERNAME';  var disqus_identifier = 'USERNAME-PAGEID';  var disqus_url = 'http://YOURDOMAIN.com/page/PAGEID/';  (function() {  var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;  dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';  (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);  })(); </script><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 

panzerdude

Member
Hi, sorry I'm not sure where to post this code. If I just paste it to the editor in the custom page, it just shows the code. Is there a custom page template or how should I add it.

thanks
 

panzerdude

Member
put the editor in HTML mode, then paste the code.

Oh, that's great, that little HTML button will come in handy. :)

I had some problem with your code, not sure if I was me filling it out incorrectly or not. But if I use the universal code from Disqus, I can get the comments working.
 
Top