Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Information Under Avatar on Topic Pages?

  • Hi!

    I have upgraded to the most recent versions of BuddyPress, bbPress, and WordPress.

    I see on loop-single-reply.php that the information displayed after the avatar is called by

    do_action( ‘bbp_theme_after_reply_author_details’ );

    My plan was to use the information in http://codex.bbpress.org/bbp_theme_after_topic_author/ but apply it to the bbp_theme_after_reply_author_details action instead.

    Where does the code provided in the codex example actually need to go? bp-custom.php? Or somewhere else? Is this even the right way to go about adding it?

    Any tips would be great, thanks!

    • This topic was modified 12 years, 4 months ago by craftcore.
Viewing 4 replies - 1 through 4 (of 4 total)

  • LabSecrets
    Participant

    @labsecrets

    Bowe Frankema has a great tut on how to add extended profile fields to the member profile page (if you are running BuddyPress for profile details). Sounds like this might give you what you need?

    http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/

    Cheers!
    Spence
    http://labzip.com
    http://labsecrets.com

    Thank you for the reply, labsecrets. Unfortunately, this won’t help me. I just want to add something below the avatar that displays next to the reply text.

    (IE: above on this forum, we see Lab’s avatar, followed by “labsecrets,” followed by the user role (“Member”).

    I just want to add some other text below “Member,” but I don’t know how to hook into it. Anyone else know how to do this?

    I figured out how to hook into it. I created bp-custom.php in the plugin directory and modified the action like this:

    add_action( 'bbp_theme_after_reply_author_details', 'display_authorlevel' );
    function display_authorlevel() {

    // code goes here that you want to executed under the avatar. I wanted to display my WP roles instead of the bbPress roles, so I wrote a custom function to pull the WP roles and put it here.

    }

    Thanks so much for looking!


    kate.t
    Participant

    @katet-1

    Hi craftcore, if i would like to put the Country below the user role, do you know what code I can insert in? I am using the User Meta Pro plugin, and the Country field is derived from there. Thanks!

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