Add Replies & Topics Count To bbPress Core
|Reported by:||hardeepasrani||Owned by:||netweb|
|Component:||Component - Users||Keywords:||has-patch|
I'm 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>" ; ?>
What's your thoughts? Is it a right place and way to post it?
Change History (42)
comment:1 @hardeepasrani — 15 months ago
- Cc hardeepasrani@… added
- Keywords has-patch added; needs-patch removed
- Component changed from Code Improvements to Users
- Keywords needs-patch added; has-patch removed
- Priority changed from highest to normal
- Type changed from defect to enhancement