-
Website
http://blog.disqus.com/ -
Original page
-
Subscribe
All Comments -
Community
-
Top Commenters
-
donnacha | WordSkill
37 comments · 12 points
-
Jason
164 comments · 22 points
-
Daniel Ha
2198 comments · 405 points
-
Rob Loach
45 comments · 29 points
-
goodbloke01
95 comments · 1 points
-
-
Popular Threads
-
Disqus: The Official Blog - Vote + Comment on your Favorite X-mas flick at BBC's Radio Times!
6 days ago · 9 comments
-
Disqus: The Official Blog - Welcome AllThingsD to the Disqus Community!
2 weeks ago · 23 comments
-
Disqus: The Official Blog - Please Welcome paidContent to the Disqus Community!
2 weeks ago · 12 comments
-
DISQUS | Service Status - Everything is running normal
1 week ago · 7 comments
-
DISQUS | Service Status - Email notifications temporarily delayed to AOL based emails
1 week ago · 2 comments
-
Disqus: The Official Blog - Vote + Comment on your Favorite X-mas flick at BBC's Radio Times!
I just posted a similar thread in another group, but got the wrong code block in that group.
Within the WordPress plugin code there is a function called dsq_comments_template
I think the following line should be responsible for preventing the Disqus module from displaying on various pages:
if ( ! (is_single() || is_page() || $withcomments) ) {
return;
}
To me, that looks like it shouldn't print out Disqus, if it's a single page or has comments disabled.
That's the line I believe to be broke, but I haven't had to time to dig deeper to find out exactly why.
(I need more coffee if I have to go put my 'logic' head on).
I'll dig deeper, but I think it's a bug 'somewhere' (in Disqus plugin or WP 2.7.1) rather than missing functionality.
Regards
Chris
here:
http://disqus.com/admin/moderate/#/threads?t=ne...
Giannii
DISQUS
Community Manager
help@disqus.com
http://twitter.com/giannii
That's a bit surprising... as it seems like that's an extremely core part of comments.
Any idea what the ETA looks like? i.e. how big of a deal have you guys assessed this to be, thus what priority are you giving it?
Thanks,
Jake
EDIT: Ah, now I see what you were suggesting... Ouch. Not a very clean way of doing it...
And did you see my 'fix' below...
Works for me..
Chris
Edit the Disqus code, and locate
if ( ! (is_single() || is_page() || $withcomments) ) {
return;
}
Above the "if ( ! (is_single() || is_page() || $withcomments) ) {", add the following:
if ( ('closed' == $post->comment_status) || ('page' == $post->post_type)){
return;
}
Save the plugin and it should work.
Don't forget to clear any cached pages if you have a cache plugin.
I've not tested this fully yet, but it appears to work.
I have a sneaky feeling the code
if ( ! (is_single() || is_page() || $withcomments) ) {
return;
}
is incorrect, (or cut and paste from a different plugin) as I can't see how it would work.
I can't find reference to is_single() and is_page(). It sort of rings a MoveableType bell in my head, but I'm not certain on that.
Try it and see if it works for you. I will ping Giannii and see what he says.
is_single and is_page are descripted here: http://codex.wordpress.org/Conditional_Tags
Do you mean 'my hack' or their latest release.
Funny thing is that old pages that had comments disabled before Disqus was installed had no issues and were not displaying the disqus comment box.!!?!?! Bizzare
Seems a fairly funadamental thing for the disqus plug-in, you've even given them the line they need to add in, can't be that difficult really.
Thanks again
You are an American hero.
Thanks for being patient.