I started having problem with Disqus system showing “View Comments” on the comment count slot when it was upgraded to the latest version (2.52). Playing with the Disqus admin panel gives no good result and I am pretty sure that it is working properly on earlier versions of Disqus after version 2.42 and not it looks broken.
A trip to the official plugin website for Discus was made and it yields almost nothing. This problem seems to exist on earlier versions of Disqus and have affected people since October 2009 until around June 2010. I have been using Disqus since June but was unaware of the problem for the simple reason that I don’t display comments count.
Playing and digging around the Disqus code lead me to the file named disqus.php which seems to be the heart of the plugin. A quick search for the word “View Comments” brought me down to line 697 with the following code:
function dsq_comments_number($comment_text) {
global $post;
if ( dsq_can_replace() ) {
return 'View Comments';
} else {
return $comment_text;
}
}
It seems that “View Comments” was hard coded on the php side which is totally bad for my point of view. We can fix the problem by altering a small part of that code into this one
function dsq_comments_number($comment_text) {
global $post;
if ( dsq_can_replace() ) {
return '' . $comment_text . '';
} else {
return $comment_text;
}
}
Optimized by SEO Ultimate