Skip to:
Content
Pages
Categories
Search
Top
Bottom

BBPress – Post Count


  • kimbo_king
    Participant

    @kimbo_king

    Hi

    This is such a simple request so I’m probably being an idiot but I can’t find a clear answer anywhere!

    I need to display the number of post a user has made on my forum

    I am using the BBPress plugin for WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)

  • kimbo_king
    Participant

    @kimbo_king

    Anyone have any idea?


    FreeWPress
    Participant

    @freewpress

    Bbpress have this function: bbp_user_post_count();

    But it not work in reply loop, i have used:
    bbp_user_post_count($user_id);
    bbp_get_user_post_count($user_id);
    bbp_user_reply_count($user_id);
    bbp_get_user_reply_count();

    Nothing work in reply loop…

    Whyyyy??? What is the problem? Why do not showww??

    I have also copy and paste this:

    <p class=”bbp-user-reply-count”><?php printf( __( ‘Replies Created: %s’, ‘bbpress’ ), bbp_get_user_reply_count_raw() ); ?></p>

    But it don’t show anything, show only: ” Replies Created ” and empty after…

    HEEEEELPPP………….


    Robin W
    Moderator

    @robin-w

    The issue is that in loop-single-reply the variable $user_id is not set. I’ve just written a plugin for this, which should work – it does on my site, but I am trying to work out why it doesn’t on another who also has buddypress.

    You installing it would help me determine if it is me !

    Download to your pc, and then upload to the plugins

    http://www.rewweb.co.uk/bbp-topic-count-plugin/

    or crack it open to see what code I used

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.