WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin Show Unread Comments] Not working in 3.0 - alternatives? Workarounds? (17 posts)

  1. Sapphire
    Member
    Posted 4 years ago #

    I love the Show Unread Comments plugin*, based on Smart Unread Comments. It looks like neither of the authors are updating the plugins. I've spent all morning searching WordPress and Google for a replacement, because I think this plugin really helps readers keep track of ongoing discussions. Can't find anything like it (that isn't also broken).

    Anyone know of anything similar that's hiding from me? Or feel like taking a look under the plugin's hood to figure out what's broken now?

    *Didn't link to this one because the developer removed the page. The other one I did link to is very similar - good enough for my needs.

  2. Smoje
    Member
    Posted 4 years ago #

    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...

  3. Sapphire
    Member
    Posted 4 years ago #

    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.

  4. Sapphire
    Member
    Posted 4 years ago #

    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.

  5. Sapphire
    Member
    Posted 4 years ago #

    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?

  6. arsenalist
    Member
    Posted 4 years ago #

    Any fix for this?

  7. arsenalist
    Member
    Posted 4 years ago #

    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.

  8. Sapphire
    Member
    Posted 3 years ago #

    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?

  9. arsenalist
    Member
    Posted 3 years ago #

    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.

  10. Sapphire
    Member
    Posted 3 years ago #

    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.

  11. tech_coach
    Member
    Posted 3 years ago #

    @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?

  12. Sapphire
    Member
    Posted 3 years ago #

    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.

  13. Sapphire
    Member
    Posted 3 years ago #

    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.

  14. Zihad Tarafdar
    Member
    Posted 3 years ago #

    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!

  15. Sapphire
    Member
    Posted 3 years ago #

    THANK YOU! It's working perfectly. :)

  16. Zihad Tarafdar
    Member
    Posted 3 years ago #

    Glad to hear that! :)

  17. corinteractive
    Member
    Posted 3 years ago #

    @Zihad Worked perfectly!!

    THANK YOU!!

    http://www.perfectduluthday.com

Topic Closed

This topic has been closed to new replies.

About this Topic