Skip to:
Content
Pages
Categories
Search
Top
Bottom

Armember badges

  • @patricktank

    Participant

    Hello there,

    I am trying to figure out for a few days already how to show the ARMember badges in my Buddyrpess profile, but everything i try won’t succeed. Who can help me out here or at least put me in the right track?

    In basic what I need is to show a badge picture (from upload folder) in BP Profile header when a user has logged in and has a certain Armember plan (ie. Gold) or WP-role.

    please please help me out here….

    Kind regards,
    Patrick

Viewing 2 replies - 1 through 2 (of 2 total)
  • @patricktank

    Participant

    is there someone who can help me out here…
    i just need the arm badge in the profile header and the overview of the buddypress profile…

    @boonebgorges

    Keymaster

    I don’t have access to the proprietary ARMember plugin, so I can’t say anything about that.

    Here’s one way to show arbitrary content in a BP user’s profile header:

    
    add_action( 'bp_before_member_header_meta', function() {
    	$user_id = bp_displayed_user_id();
    	echo 'Here is the badge for user ' . $user_id;
    } );
    

    You’ll need to use the $user_id to fetch the ARMember badge and display it.

    See https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php for other hooks you could use instead of bp_before_member_header_meta.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Armember badges’ is closed to new replies.
Skip to toolbar