Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide role in the forum

  • @yudesign

    Participant

    Hi there,

    is there a way to hide the role of the moderator/admin in the forum? I don’t want people to know which role one has.

    Thanks for your help!
    yu

Viewing 12 replies - 1 through 12 (of 12 total)
  • @robin-w

    Moderator

    yes, put this in your functions file

    function hide_role ($args) {
    $args['show_role'] = false ;
    Return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;
    
    

    come back if you need any further help !

    @yudesign

    Participant

    Thanks for this. Works just great. Just right now I found out that the author’s name in the forum is linked to his profile. How do I delete the link? Unfortunately my programming knowledge is not good enough to find it out by myself using the codex.

    @robin-w

    Moderator

    Try this – it should work

    Function hide_author_url () {
    $retval='' ;
    return $retval ;
    }
    
    add_filter( 'bbp_get_topic_author_url', 'hide_author_url' );
    add_filter( 'bbp_get_reply_author_url', 'hide_author_url' );

    @yudesign

    Participant

    Works. Now I think everything’s fine. Thank you!

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @smukta

    Participant

    Where can I find the functions file?

    @robin-w

    Moderator

    @smukta

    Participant

    Thank you!!!

    @smukta

    Participant

    It worked!!! you are the best! Thank you.

    @robin-w

    Moderator

    great – glad you are fixed !

    @nguyendungntd21

    Participant

    Thank you, Robin.

    @ecollart

    Participant

    Thank you too !

    Isn’t it now included in latest versions ?

    Eric Collart

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