Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi.
    Thanks for the code Brajesh! I just had one question. I’ve defined different profile field groups for different user types. I want to restrict the visibility of these filed groups to only those users (e.g. users of type A get to see only those profile fields for user type A). My problem is that when I use your code

    <?php global $bp;
    if(bp_get_current_profile_group_id()==1)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/2″);
    ?>

    it shows the same profile fields for all user types. I guessed it was because 1 is the base profile group ID and tried changing the if loop to

    if(bp_get_current_profile_group_id()==ID number of group)
    bp_core_redirect($bp->displayed_user->domain.”profile/edit/group/ID number of group”);

    but now it shows me only the ‘Editing base profile’ screen

    Is this code correct?

    Cheers

Viewing 1 replies (of 1 total)
Skip to toolbar