Skip to:
Content
Pages
Categories
Search
Top
Bottom

Include @mention in bbp_get_reply_author_link function args

  • In case a user change his display name to be diffrent from his username, you cannot use @someusername to mention someone since you do not know what the users username is.

    Would be nice to be able to optionally include an @someusername just below the link to a reply or topic authors profile.

    Perhaps the best way of doing this would be to add an extra argument to the args array for the bbp_get_reply_author_link function. The current args are:

    $defaults = array (
    'post_id' => 0,
    'link_title' => '',
    'type' => 'both',
    'size' => 80,
    'sep' => ' ',
    'show_role' => false
    );

    But could be changed to:

    $defaults = array (
    'post_id' => 0,
    'link_title' => '',
    'type' => 'both',
    'size' => 80,
    'sep' => ' ',
    'show_role' => false,
    'show_mention' => true,
    );

    I know having the user name visible is kind of a security issue, but since the user name already is visible in the profile URL…

    Also, a setting for this in the backend would be nice.

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

  • redknite
    Participant

    @redknite

    can you tell me where this file is? I have looked and only find similar in:
    content-single-topic-lead.php
    loop-search-reply.php
    loop-search-topic.php
    loop-single-reply.php

    but making the change by adding the ‘show_mention’ => true doesn’t change anything. i was hoping to add the @mention exactly as in this forum where under your name role above (participant) it says @martin_c.

    Thanks for any help!


    FreeWPress
    Participant

    @freewpress

    How to show? @username like this forum? in bbpress 2.4 i can’t find anythings to do this!! Have some idea?

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

You must be logged in to reply to this topic.