Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replies Created Display Topics Created on Profile Pages

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ok, maybe this is by design. I see the same thing on  profiles here at bbpress.

    Replies meaning both topic start posts and reply posts that is.

    Perhaps it would be better to use the “Posts Created” or simply Posts instead of  “Replies Created” .

    Since I wan’t only replies ( not created topics and replies) I’ve created a filter function:


    function ag_force_replies_only( $query, $user_id ) {

    if( bbp_is_single_user() ) { // Just in case

    $query = bbp_has_replies( array(
    ‘post_type’ => array( bbp_get_reply_post_type() ),
    ‘post_parent’ => ‘any’,
    ‘posts_per_page’ => bbp_get_replies_per_page(),
    ‘paged’ => bbp_get_paged(),
    ‘orderby’ => ‘date’,
    ‘order’ => ‘DESC’,
    ‘author’ => $user_id,
    ‘show_stickies’ => false,
    ) );
    }

    return $query;

    }
    add_filter(‘bbp_get_user_replies_created’, ‘ag_force_replies_only’, 10, 2);

     

    Now is shows replies only: http://appglobe.com/forums/users/martin/replies/

    This can of course be easiely changed in the default template files, but I think the default template should change the link text “Created Replies” to “Posts” or “Created Posts”, or change the content to display replies only ( as I did on AppGlobe ).

    In the default template the text in “in reply to:” (followed by the link to the topic) doesn’t make sence if it isn’t a reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar