bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Unread Posts (0.9.3)

Download

Version: 0.9.3

Last Updated: 2008-11-17

Requires bbPress Version: 0.8 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(5)

Your Rating

Author: _ck_


  1. Hi CK,

    Wonderful mate, thanks alot for this.
    And for a quick response.

    But... i've found a bug.

    I'm using the latest stable release (not the 1.0alpha), and when i turn on $unread_posts['add_row_class']=true; i get teh following error:

    Fatal error: Function name must be a string in {root}\bb-plugins\unread-posts\unread-posts.php on line 47

    47: if ($unread_posts['add_row_class']) {$add_filter( 'topic_class', 'up_mark_row_unread');}

    ( i know this may seem like a small thing, but i do believe this plug in is really essential to differentiating between a blog and a forum - so major thanks for writing and maintining it)

    Posted: 1 year ago #
  2. solved it myself (can't believe i missed that one sorry). Line 47 should read:

    47: if ($unread_posts['add_row_class']) {add_filter( 'topic_class', 'up_mark_row_unread');}

    there should be no $ before the add_filter();

    um, atleast, i think. my PHP's not great at this time of the morning!

    Posted: 1 year ago #
  3. You know, i need to apologise for doing this at 4am, because this should all be in one post but anyway:

    Next bug...

    If i set all options to true

    $unread_posts['indicate_forums']=true;
    $unread_posts['indicate_last_login']=true;
    $unread_posts['add_row_class']=true;

    The TR of the list of topics receives the correct class, but the Forum list still gets a span added instead or the class being added to the TR.

    (and once again, thank you so much for all the help!)

    Posted: 1 year ago #
  4. I've installed the plugin and it works great; it highlights unread threads properly.

    However I don't see a "mark topic as read" or some similar button... did I miss something?

    Posted: 1 year ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Kevin, sorry I rushed that update out before I left and then added the IF at the last second so the row wouldn't be on for everyone - causing the {$add typo. Glad you found it.

    To disable the titles, just comment out of this line like so:

    // add_filter('topic_title', 'up_mark_title_unread');

    I haven't addressed the forums yet.
    I did the topic row fix in about 2 minutes in a rush.
    Forums are much more complex but will address it.

    Vadi, you have to add the link to mark all read manually to your templates. See the FAQ. There is no way to add it automatically, sorry.

    Posted: 1 year ago #
  6. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Kevin, try 0.9.3 when you see it here, it should do forums now too.

    I've now made the row class a toggle instead of supplement because there is no need to have both, CSS can control every element.

    Posted: 1 year ago #
  7. Works like a charm big man!
    Thanks alot!

    Posted: 1 year ago #
  8. Hey CK! Is there by chance a "Mark all as read" function? I'll be honest to say that I haven't peeked through the code at all, so I'm being a bit lazy by asking. I figure it might be a good feature if it's not here yet!

    Posted: 1 year ago #
  9. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    There are two different mark all read options, look in the readme.

    Posted: 1 year ago #
  10. So using <a href="?mark_all_topics_read">Mark all topics as read</a> seems to mark all topics as unread...

    Posted: 1 year ago #
  11. circuit

    Member

    i also have the problem where reading a topic marks it as unread.
    the plugin worked at first and now it is working backwards.

    feel free to test:
    http://www.copsandrobbers.net/messageboard/forum.php?id=1

    Posted: 1 year ago #
  12. circuit

    Member

    hm, the behaviour has now reversed again. threads i read last time i visited still appear unread even though they are read, but anything i read now is working as it should. i haven't logged in/out but i did leave the board for an hour or so. is there something weird going on with cookies, i wonder?

    Posted: 1 year ago #
  13. circuit

    Member

    i can't edit my post above - i got here a minute too late, so apologies for the repeated posts.

    i don't know if it's a session issue but it seems some threads just will NOT appear 'read' no matter how or when i look at them. i am going to monitor this and will come back once i've figured out what these threads have in common.

    Posted: 1 year ago #
  14. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    The topic should be marked read when you visit a post beyond the last one.

    Are you using 0.9 or 1.0 ?

    Posted: 1 year ago #
  15. circuit

    Member

    apologies, i figured this out. there was something strange going on with my CSS which was causing very odd behaviour. i fixed it by being very specific with my CSS declarations, so there was no way the browser could misinterpret what i was trying to achieve!

    #latest td a {
    color:#333; }

    #latest td a {
    color:#333; }

    #latest td a .unread_posts {
    color:#2e6e15; }

    #latest td .unread_login{
    color:#2e6e15; }

    Posted: 1 year ago #
  16. hi !
    there is some bug .. when i do this : "$unread_posts['indicate_forums']=true; "
    the colour of unread stay even if i read all the forum ...

    and other things : the title of the page is <span class="unreadlogin>...etc

    ps : i'm french .. bad english :p

    Posted: 10 months ago #
  17. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    There are two colors indicating two different things.
    There is a lighter blue indicating truly unread posts.
    However if a user is new or you "mark all read" there is a fallback function that highlights posts that are only new since last login. That was actually a feature request by someone else awhile back.

    You can disable that. Change this line near the top

    $unread_posts['indicate_last_login']=false;
    Posted: 10 months ago #
  18. how i can do to mark topic as unread if i didn't post in ?

    Posted: 10 months ago #
  19. sclough

    Member

    This is a great plugin, but I noticed the "Mark All Read" is seeming to work backwards. If I click it once, it marks what was previously read as unread. I click it another time and it works correctly. Has anyone else noticed this? It's pretty consistent behavior for me.

    Posted: 9 months ago #
  20. deseo76

    Member

    Hello,

    Great plugin like the rest you've made _ck_ ! I would like to ask you something...
    Is there a possibility of adding an icon in a different column when a topic is unread and when a forum includes unread topics?
    And if so, how can I do this?
    In fact I am not so familiar with all this coding but I really try :P

    Posted: 9 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.