Ready to get started?Download WordPress


bbPress - Mark as Read
Direct link to unread posts (16 posts)

  1. markramos83
    Posted 1 year ago #

    Hi Pippin,

    I created a link for members to go directly to their unread posts, but it doesn't work quite right on all pages. Here's what I have.

    <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>forums/subscriptions/#bbp-author-unread-topics">

    What should it be?


  2. Can you elaborate a bit? What do you mean it doesn't quite work? What do you see when it doesn't work?

  3. chibichiii
    Posted 1 year ago #

    You actually don't see anything.
    I tried using this code to show the unread threads above my forum-loop

    So here's what I changed:

    <?php do_action( 'bbp_template_before_forums_loop' ); ?>
    	< a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>forums-2/subscriptions/#bbp-author-unread-topics">Unread posts< /a>

    Where Mark forgot to actually add tekst and close the < a> properly it showed nothing so I changed that.

    <table class="bbp-forums">

    etc etc
    Left the rest of the loop-forum.php alone as it breaks quite easily.

    So here's the deal, the link actually shows up and is clickable but it goes to:


    Which gives me a 404 Error.

    I've been desperately struggling with Bbpress forum integrated in Buddypress and realized it is missing quite many essential features. Showing unread topics on one simple page among all forums being one of them.

    I installed the Bbpress mark as read plugin hoping to fix this issue but so far I haven't managed because although I get a mark as read link next to each single topic, this isn't much use if I just want a general view of topics that are new.

    I'm really hoping you can help me here :(

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser.]

  4. chibichiii
    Posted 1 year ago #

    Oh and I nearly forgot, I can't seem to find the mark all topics read option either.

    Here is a link to my page if you'd like to take a look

  5. Looks like the link to your page got excluded. Can you repost it?

  6. chibichiii
    Posted 1 year ago #

    I found the error already, the plugin you created is supposed to show a link on a bbpress profile page. However inside Buddypress there are no bbpress profile page active anymore.
    Therefor only the mark as read/unread link still shows on the topics but you cannot call upon all the unread posts anymore because the profile which is supposed to show it is no longer active.

    is the link to my page thnx for helping :)

  7. Oh that makes sense. BuddyPress actually uses an older version of bbPress that does not function the same way.

  8. Ringisha
    Posted 1 year ago #

    Is there no way to fix it with BuddyPress? :/

  9. No, not until BuddyPress updates the included bbPress to the new version.

  10. masada
    Posted 1 year ago #

    Pippin is there any way I could write function with unread post id?

  11. @masada do you mean write a function that retrieves all unread topics?

  12. masada
    Posted 1 year ago #

    I'm trying to get unread topics to front page of the site so id would be enough.

  13. This should work for you:

    function pw_get_unread_topic_ids() {
    	global $bbp_mark_as_read;
    	return $bbp_mark_as_read->bbp_get_user_unread();
  14. masada
    Posted 1 year ago #

    Nice. Gonna try this one. Thx.

  15. Rennofen
    Posted 1 year ago #


    with which buddypress / bbress version does the plugin run?
    I'm running bbpress Version 2.3.2 and Buddypress Version 1.8.1
    and can't find the unread topics.

    or is there a easy way to create a page showing the unreadpage elseware?
    a widget would be a nice solution too..
    sadly im not really used to programming php and wordpress

    thanks patrick

  16. Rennofen
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.