Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile fields for specific user roles

  • Hi,

    my community is connected to a single blog, a magazin. So there are normal users and those who write articels, they are “authors” (WordPress role).
    I’d like to show a little extra information in the profiles of the authors, such as their ressorts in the magazin. Therefore I created a specific profile field group within the BuddyPress profile and put some fields into it.

    Now I’m looking for a way to show this information.

    There has to be some kind of check whether the user is an author or not – both when showing the profile and also when editing it, for normal users shouldn’t see those fields.

    Does anyone of you have an idea how to solve this?

    Thanks,
    neontrauma

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

  • embergermedia
    Member

    @embergermedia

    I use S2member to monitor my sites membership, it provides hooks and such (not too sure about the terminology) that allow you to display content to certain user roles. I have a user role for companies (experts). I also have a profile field group just for them. It is the last group.

    I have added inline css using last-child selector to hide the menu option to edit this profile group from everyone except members that have a level 2 membership. And since Buddypress will only show profile data if the field has been filled in, it only shows on Experts (level 2 ) users public profiles.

    If this is confusing, let me know and I’ll try to give exact steps for how I accomplished this.

    Hi,

    thanks for your reply! I installed that plugin and found it quite confusing. So it did’nt work immediately; I’ll have to spent some time with it this evening.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Profile fields for specific user roles’ is closed to new replies.
Skip to toolbar