Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Forum Roles above Member Avatar in Topics


  • –Q–Shadows
    Participant

    @-q-shadows

    Hello mates,

    I think the title is pretty self explanatory in terms of what I am looking for.

    Basically I want to display the Forum Role (Moderator, Participant, etc) of users Above the AVATAR in Topics. Like in serialization it should be , Forum Role -> Avatar -> Member Name (-> means followed by).

    Cheers.

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

  • Robin W
    Moderator

    @robin-w

    would need a function recoded to do this, as there is a function that does the avatar and role display

    The function is bbp_reply_author_link

    and it’s held in

    bbpress\includes\replies\template.php

    it has a filter you can call, and if you fine with php you should be able to hack the code to change the order


    Robkk
    Moderator

    @robkk

    you can also call the bbp reply link link three times but removes some arguments you dont want to show and only show the ones you want.

    <?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => auto ) ); ?>
    <?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar