Sign in to follow this  
Followers 0

Please suggest a commenting system.

11 posts in this topic

Posted

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

Share this post


Link to post
Share on other sites

Posted

Livefire??

Share this post


Link to post
Share on other sites

Posted

DISQUS

Share this post


Link to post
Share on other sites

Posted

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

Share this post


Link to post
Share on other sites

Posted

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.

Share this post


Link to post
Share on other sites

Posted

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

Share this post


Link to post
Share on other sites

Posted

After messing around myself I found a easier method to get the latest 100 comments :D

 

http://checkbestcoupons.disqus.com/latest.rss

 

 

Change "checkbestcoupons" to your forumshortname and you're good to go (rss code can be embedded ;))

Share this post


Link to post
Share on other sites

Posted (edited)

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(' & ', ' &amp; ', $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

Share this post


Link to post
Share on other sites

Posted

Do you know how to show a comment count?

Share this post


Link to post
Share on other sites

Posted

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  ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.