Skip to:
Content
Pages
Categories
Search
Top
Bottom

About the page of Forum Replies Created

  • @naoyoshi

    Participant


    Wordpresss: Latest version
    bbPress: Latest version
    design theme: Original building

    I have one question.
    In the page “Forum Replies Created”, can I show my replies data only?
    If I can, which php file is, and how do I change code?
    Or if I need to apply certain WordPress plugin, what is it?

    The page “Forum Replies Created” shows all replies data which contains my relied data.
    I’d like not to show other user’s replies data.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @robkk

    Moderator

    like this page??

    https://bbpress.org/forums/profile/naoyoshi/replies/

    It should only show your replies.

    @naoyoshi

    Participant

    Thank you for replying.

    Yes, that’s right.
    The link of https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is made by bbp_user_replies_created_url() function.
    The default file of user-detail.php has this function and I don’t change.
    The parameter of this function is blank.

    When the page like https://bbpress.org/forums/profile/naoyoshi/replies/ shows, user-replies-created.php is executed.
    As the core processes of bbPress, does it really retrieve only specific user’s replies from database?
    This is what I don’t understand now and the current question.

    I checked php files user-replies-created.php, loop-replies.php, and loop-single-reply.php, and interface of functions which used in these php files.
    I haven’t almost changed codes in these php files, the content of these php files is nearly the original.
    As far as I checked, there are no parameters which can retrieve only specific user’s replies in functions.
    In this bbPress forums, user interface part is customized from the original file, though, why can it show only specific user’s replies data correctly?

    I think I might have to add or change some codes in some of php files…, I don’t know it’s true.

    @robkk

    Moderator

    Does your replies created page not work like that??
    Or are you trying to do some custom functionality??

    @naoyoshi

    Participant

    I checked function.php, and I found the cause.

    function.php had below code.

    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    function change_reply_order() {
    	$args['order'] = 'DESC';
    	return $args;
    }

    So I commented this part out and then I confirmed it works property.

    Thank you for replying and helping me.

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