Custom Registry page inclusion
-
I’m using someone’s code to create a new registration page with BP XProfile fields so you can fill in all the fields DURING the registration. Unfortunately the field for location (which this plugin creates) isn’t in the php. I have been trying to figure out what code needs to be put in the register.php file in order for it to work but I’m not savvy enough to figure it out.
Do you have any idea what code is needed to add your field?
This is the code he uses for the checkbox for example:
<?php if ( ‘selectbox’ == bp_get_the_profile_field_type() ) : ?>
<div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”><label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
<?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
<select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_options() ?></select><?php do_action( ‘bp_custom_profile_edit_fields’ ) ?><div class=”editfield-description”><?php bp_the_profile_field_description() ?></div></div></div><?php endif; ?>I’d very much appreciate it if you (or someone else) could help me out.
The page I need help with: [log in to see the link]
- The topic ‘Custom Registry page inclusion’ is closed to new replies.