Skip to:
Content
Pages
Categories
Search
Top
Bottom

ivette manzur : Need help with S2MEMBERS


  • ivettemanzur
    Participant

    @ivettemanzur

    Hello,

    My current WP configuration
    – Version of WordPress 3.7.1
    – Version of PHP / MySQL 5.4
    – Theme used: personal
    – Extensions in place: S2Members
    – Host Name: Dedicated Server
    – Site address:

    I have a question about the SMEMBER plugin.
    So I created 3 different level, the level 1, 2 and 3
    If I am user A and I’m on the user profile B, I want to see the profile of its B level.
    With this teaser code:

    [constant s2Get = “S2MEMBER_CURRENT_USER_ACCESS_LABEL” /]
    I only see my level (user A), but I can not find how to view the member to whom belong the profile (user B) ..

    Someone would have an idea? thank you in advance and happy new year

    ivette manzur

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

  • Roger Coathup
    Participant

    @rogercoathup

    That’s more of an s2member question than a BuddyPress one – so, better asked on their forums.

    Anyway:

    In your PHP template for displaying the user, you can add the following code:

    echo get_user_field('s2member_access_label', $user_id);

    and to get the $user_id for the displayed user, you can use:

    global $bp;
    $user_id = $bp->displayed_user->id;

    Roger Coathup
    Participant

    @rogercoathup

    or even easier for the displayed user id:

    bp_displayed_user_id();

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ivette manzur : Need help with S2MEMBERS’ is closed to new replies.
Skip to toolbar