I have the same problem, seems that the new WP version brokes the plugin funcionality…
Sapphire, if you find something, please put it ok? I’ll to the same, because my users loves that…
So far nothing. No plugins do quite what this one did, and I can’t even find a third party bit of code to do something similar. I’ve searched a lot.
I will let you know if I do find something.
Wait – I fixed it. They’ve just changed the name of a function call – change it to match, and the plugin works again. Just go through the plugin, and anywhere you see:
get_recent_posts
Change it to:
wp_get_recent_posts
There’s more than one version of the plugin, so if that doesn’t apply to yours, let me know and I can post the whole thing in here, or something.
Hm, I think I spoke too soon. After that change, it worked – for a while. Now it’s back to saying I’ve read everything even when I haven’t, and all the dots indicating whether a comment is read or not are orange, which indicates I haven’t read any comments at all.
Anyone willing to fix this, or at least take a look at it? Anybody know how to hire a reliable coder to do the work, one who won’t stick anything funky in the code?
OK, I figured this out, just replace all occurrences of:
$GLOBALS[‘tablecomments’]
with
$db->comments
in the plugin file show-unread-comments/show-unread-comments.php
That did it for me.
Hmm. That didn’t work for me. Still getting “There are no unread comments” no matter what. Arsenalist, is your fix still working for you?
My fix is still working: http://www.raptorsrepublic.com
I think the way global variables are stored in WP 3.0 are a little different than previous versions (atleast this plugin seems to be accessing them in an incompatible way). So I just made sure that the methods have access to the global variables.
Yep, I can see that yours IS working, yet mine still doesn’t. I just reinstalled it fresh and made the code changes on TWO sites, to make sure I wasn’t just making a typo somewhere. No go.
Must be something to do with server configs, then? That’s all I can think of.
@arsenalist totally worked for me. Thanks man!
@Saphhire hmmm…wonder why its not working for you. Did you want a copy of the modified plugin php to try on your site?
Sure. I tried it on a site with a different server yesterday – still no good. Disabled all my plugins to see if that was the issue – nada.
Could someone please post the code that’s working for them? I still can’t figure this out. It has to be something in my functions.php file conflicting, I guess, but that makes no sense to me, either.
Hi Sapphire, i have modified Smart Unread Comments plugin recently for wordpress 2.9+ compability in order to use it in one of my multi users blog. You can get the modified code from here if you want to. Cheers!
THANK YOU! It’s working perfectly. π