WordPress.org

Ready to get started?Download WordPress

Ideas

Add Replies & Topics Count To bbPress Core

  1. Hardeep Asrani
    Member

    I' not a huge php expert but I wanna change something in bbPress. A reader of my website (trickspanda.com) suggest this idea to me & I really loved it so I worked on it. Every top forum software has or should have Replies Created and Topics Started type thing below the user reply.

    I don't want to confuse you, so here's is the pic of what I'm trying to say: http://www.trickspanda.com/2014/01/add-replies-topics-count-bbpress/

    I'm new to this contribute thing so I'm simply putting the code and stuff I wanted to add to the core of bbPress.

    Putting this code in the bbPress loop-single-reply.php file below:

    <?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>

    will do the job:

    <?php
    // delete or comment out these lines to stop displaying topic count
    $topic_count = bbp_get_user_topic_count_raw( bbp_get_reply_author_id( $reply_id )) ;
    echo "<br>Topics Started : " ;
    echo $topic_count ;
    echo "</br>" ;
    
    // delete or comment out these lines to stop displaying replies count
    
    $reply_count = bbp_get_user_reply_count_raw( bbp_get_reply_author_id( $reply_id )) ;
    echo "<br>Replies Created : " ;
    echo $reply_count ;
    echo "</br>" ;
    ?>

    Tell me what you guys think of it?

    Posted: 7 months ago #
  2. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    I think you posted in the wrong place but it's a nice idea.

    This is for WordPress core ideas :) This should be posted at bbpress.org please.

    Also posting the same thing multiple times is spamming, so next time just post an update with the corrected code, not a whole new topic, thanks :)

    Posted: 7 months ago #
  3. Okay, thanks for the reply. I created a ticket about this idea at this link: https://bbpress.trac.wordpress.org/ticket/2519#ticket

    Is it the right place to suggest this idea?

    Posted: 7 months ago #
  4. Ipstenu (Mika Epstein)
    Half-Elf Support Rogue & Mod

    Yep, or the bbpress.org forums.

    Posted: 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    0 Votes
  • Status

    This is plugin territory