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_

  • This is not just "yet another" Show Unread Posts plugin!
  • Builds on concepts by fel64 and henrybb with feature and performance improvements.
  • No additional plugins or db tables required. Produces no overhead for non-members and as little as possible otherwise.
  • Users can be given a link to "mark all topics read" and you can adjust the number of topics to track to limit bloat.
  • Topics with new posts can be customized via css styles, ie. bold, underline, colors, or even an icon.

To see a demonstration, create an account at http://bbShowcase.org read some posts and wait for some replies.


  1. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    To see a demonstration of this plugin, create an account at http://bbShowcase.org read some posts and wait for some replies (msg me on the bbPress irc channel if you want to see a reply in a hurry).

    Posted: 2 years ago #
  2. This plugin doesn't always work somehow. When I login as a different user that's not admin, I'm unable to see the difference between unread and read topics. Sometimes when I am logged in as admin, I'm unable to see the difference between read and unread topics as well. Also, could you re-post the code needed for a "Mark all topics as read"? It seems to just appear as a hyperlink.

    To see what I mean, visit my forum at
    http://tapestry.endless-sonata.net

    Thanks!

    Posted: 2 years ago #
  3. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Keep in mind that this plugin only highlights topics that you have already seen and then have new posts on them.

    If you have not read the topic previously, it does not bother to highlight it because it does not know it's something you want to bother looking at again. Newest topics with newest posts are always at the top of the latest discussions so it's pointless to highlight all the first posts.

    I mimiced that behaviour based on other forums I have used but if there's a better way, be sure to let me know.

    Marking all topics read is as simply as making a link that ends with "?mark_all_topics_read". So on any page you'd just make a link something like this:
    <a href="?mark_all_topics_read">mark all topics read?</a>

    ps. I really like your forum, very pretty design, nice work! I think you can fix the break at the top on pages with polls (like this) by adding "float:left" to the .topicmeta class - though there may be more to it - took me a few attempts to figure it out. If you don't know what I mean, put this at the bottom of your style.css .topicmeta {float:left;}

    Posted: 2 years ago #
  4. Ah that makes sense. I think it's working then.

    Thanks for your compliment. Also, thanks for telling me about the gap issue. I didn't know how to fix it, but now it's all fixed. ^_^

    Posted: 2 years ago #
  5. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    version 0.8.7 now can optionally indicate forums with unread posts if you change setting near top of file to $unread_posts['indicate_forums']=true;

    Posted: 1 year ago #
  6. monstr

    Member

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /kunden/121606_86830/rckmydsk/bb-plugins/unread-posts.php on line 52
    Icons

    i think this appears when everythin is marked read. :/

    Posted: 1 year ago #
  7. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I'm not able to reproduce the error but I bet there's a circumstance I can't simulate. Try 0.8.8 when you see it here in a few minutes and see if that fixes it for you.

    Posted: 1 year ago #
  8. monstr

    Member

    i think this just did it :) thank you <3

    Posted: 1 year ago #
  9. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I've now added the ability in 0.8.9 to also indicate topics with new posts since last visit (regardless if previously read). You can design a different style to highlight those kinds of topics.

    For example the default is a brighter blue for topics that have previously been read but have new posts and a duller blue for topics that have new posts since you last logged in, even if you haven't read them before.

    Note that the last login trick obviously is useless until they have logged in twice, because the first time was just moments before they see the topic list. The default time for previously unrecorded last login is 24 hours ago.

    Posted: 1 year ago #
  10. Thanks, _ck_!

    I've installed this plugin at our forums :)

    Posted: 1 year ago #
  11. Does this work on the alpha build? I installed it on my server, but when I test the link, it goes to page ? and gives me a 404.

    Code: <a href="?update_all_topics_read">Mark all topics as read</a>

    URL: http://jorjafox.net/forums

    Posted: 1 year ago #
  12. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I have not yet had time to test and debug this under the alpha, sorry.

    Posted: 1 year ago #
  13. Darn. Thanks! I'll keep watch for if/when you do get the time :)

    Posted: 1 year ago #
  14. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    I just found the problem.
    Look for an update shortly.

    Posted: 1 year ago #
  15. Huzzah! It's working now :)

    Only thing on the wishlist is that it would mark what post in the thread was the new one.

    Posted: 1 year ago #
  16. I wonder: have you considered something similar for a WordPress plugin? I would be very interested in your thoughts on that.

    Posted: 1 year ago #
  17. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    It could be converted to wordpress but unlike some of my other plugins it would not be so direct and would take some work. Unfortunately I simply don't have the time to even try.

    Posted: 1 year ago #
  18. This works really well for me, and satisfies one of the major needs for my forum. But i'm after something that does this slightly differently.

    I need a plugin to change the class of the TR tag to include the class=unread, as opposed to a span in the TD - thus allowing me a vast array of options of the look and feel of the forum rather than over 1 cell.

    I'm afraid my PHP isn't what it used to be, but this is what i'm working on. If this interests anyone else, i'd be really pleased to collaborate.

    Posted: 1 year ago #
  19. _ck_

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Moderator

    Kevin, I've now added that ability for you in 0.9.2

    change the optional setting near the top

    $unread_posts['add_row_class']=false;

    to

    $unread_posts['add_row_class']=true;

    and it will insert one of two different TR classes

    .unread_posts_row
    or
    .unread_login_row

    (unread_login_row means it's new since their last login)

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.