• 0

Please suggest a commenting system.


Question

Hello my fellow neowins,

 

I am seeking some advise on which commenting system I should use for my website http://www.checkbestcoupons.com

 

The goal is to be able to easily allow visitors to comment, users must have an account to sign up, I would like for the visitors to be able to sign up using their facebook,google,twitter account.

 

Something like disqus.com would be perfect however the comments in disqus are not indexed by google and also I would like for my visitors to be able to comment on any individual coupon and be able to display the top comments for the week/month.

 

Please share some recommendations on any commenting system that have these some or all of these features I need, Much appreciation! :D

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Problem has been solved, we got discus to work properly and index ^^

How did you get it working? I'm using it for a website and would like it to work in index.

Link to comment
Share on other sites

  • 0

How did you get it working? I'm using it for a website and would like it to work in index.

Google indexes only the comments that are loaded by disqus onload so load the newest comments in a hidden #disqus_thread on page load ;)

After that you can load the disqus threads you actually want with disqus reset.

 

To also make sure your comments are also read by other search engines you can try the following: http://www.theoutfield.net/blog/2012/12/seo-friendly-disqus-comments-in-umbraco

Though it's a bit more complex ;)

 

See my next posts

Link to comment
Share on other sites

  • 0

For everyone having trouble with rss feeds, use the following php code to fetch the latest 100 comments:

<?php
	$rss = new DOMDocument();
	$rss->load('http://checkbestcoupons.disqus.com/latest.rss'); //Replace checkbestcoupons with your forum id
	$feed = array();
	foreach ($rss->getElementsByTagName('item') as $node) {
		$item = array ( 
			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
			'user' => $node->getElementsByTagName('creator')->item(0)->nodeValue,
			'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
			);
		array_push($feed, $item);
	}
	for($x=0;$x<count($feed);$x++) {
		$title = str_replace(' & ', ' & ', $feed[$x]['title']);
		$link = $feed[$x]['link'];
		$user = $feed[$x]['user'];
		$description = $feed[$x]['desc'];
		$date = date('l F d, Y', strtotime($feed[$x]['date']));
		echo '<p><strong><a href="'.$link.'" title="'.$title.'">'.$title.'</a></strong><br />';
		echo '<p>Posted by <b title="User">'.$user.'</b><br />';
		echo '<small><em>Posted on '.$date.'</em></small></p>';
		echo $description;
	}
?> 

Edit: changed description part since disqus prints already <p> tags.

Edited by Seahorsepip
Link to comment
Share on other sites

  • 0

Do you know how to show a comment count?

 

Yes but comment counts are only updated once every hour in my experience :/

$(document).ready(function() {
	var s = document.createElement('script'); s.async = true;
	s.type = 'text/javascript';
	s.src = '//' + disqus_shortname + '.disqus.com/count.js';
	(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
});

Then simply makes links like this:

<a href="http://example.com/postpage#disqus_thread">Comments</a>

And the text "Comments" will be updated with your comments count.

You can make as much links like these as you want simply use different urls or identifiers on the links, the example above uses urls  ;)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.