Skip to:
Content
Pages
Categories
Search
Top
Bottom

Control visibility of a member’s profile page info based on that members level


  • mtgame21
    Participant

    @mtgame21

    Hi, do you have any ideas or recommendation (plugins) on how to accomplish either of the following or something similiar. For example, a member has to upgrade his membership level in order for him to display his info to any other user.

    Scenario 1. A buddypress member “X” fills out a profile field. However, I only want that field/info to be visible to member “Y”, who is viewing member “X” profile page, if member “X” is at a certain PMPro membership level. It doesn’t matter what level member “Y” is.

    Scenario 2. Instead of it being a profile field, maybe it is a custom “tab”, that has info provided by member “X”, that can only be visible/displayed to any other member, if member “X” is a certain PMpro membership level

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    Scenario 1 is easy:

    Create a template overload of this file:
    \buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php

    Use bp_get_the_profile_field_name() to determine of the current user should be able to see the field – based on the current member’s PMP level.

Viewing 1 replies (of 1 total)
  • The topic ‘Control visibility of a member’s profile page info based on that members level’ is closed to new replies.
Skip to toolbar