Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to hide “Base” group in the edit profile panel?


Brajesh Singh
Participant

@sbrajesh

hi Gene

how about this one then

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

At the top of edit.php and removing the old code.

but please note, the base field will be never editable and will not be shown, when ever user will click on edit base field, he will be redirected to edit the second groups field.

let me know what do you think :)

Skip to toolbar