Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: All fields for registration


Brajesh Singh
Participant

@sbrajesh

hi Phillip

Yes yo can.

By default your registration page will show only the fields from first profile field group.

You can change it.

You will have to edit registration/register.php

Look for the code

bp_has_profile( 'profile_group_id=1' )

and replace it with

bp_has_profile( )

Now your register page will show all the fields.

But stop,This is not enough,you need to aggregate all the field ids and put it as hidden field.

So Take a look at the the line

<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids() ?>" />

remove it from the profile loop.Now create some code inside the profile loop,aggregate all profile ids and then

put this code outside the profile group loop,

where I ssume you have aggregated all profile fields in the variable $all_pf_fields.

<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo $all_pf_fields;?>" />

Please note,all $all_pf_fields should be the comma separated list of all profile ids(say 1,2,3,)

This will make it work,and your registration page will show all profile groups fields

Skip to toolbar