-
Author
-
March 20, 2016 at 06:57 #111835liam62244Participant
On the register form I can only display the first primary level of profile fields. How do I enable more field groups to show on the register page?
Thanks
Attachments:
You must be logged in to view attached files.March 21, 2016 at 17:37 #112007LauraModeratorHello, you can move the fields at the base folder or show all groups at registration using this: https://archived.seventhqueen.com/forums/topic/profile-fields-at-registration/#post-50582 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 23, 2016 at 22:33 #112461LauraModeratorHello, sorry for that, this is what i wanted to show you
“Hello, it should be fixed, make sure age field is set to DateBox
Also, for any other that wants this feature, this is the code for register.php inside of registration folder ( child theme, so create the folder)
COPY CODE<?php get_header(); ?><section><div><div class="row"><div class="twelve columns"><?php do_action('bp_before_register_page'); ?><div><form action="" name="signup_form" id="signup_form" class="standard-form custom" method="post" enctype="multipart/form-data"><div class="firststep1"><?php if ('request-details' == bp_get_current_signup_step()): ?><div class="row"><div class="twelve columns"><h2 class="article-title text-center"><?php _e('Create an Account', 'buddypress'); ?></h2></div></div><?php do_action('template_notices'); ?> <p class="lead"><?php _e('Registering for this site is easy, just fill in the fields below and we\'ll get a new account set up for you in no time.', 'buddypress'); ?></p> <?php do_action('bp_before_account_details_fields'); ?> <div class="row"><div class="register-section twelve columns"> <?php /***** Basic Account Details ******/ ?> <h2 class="article-title text-center"><?php _e('Account Details', 'buddypress'); ?></h2> <label for="signup_username"><?php _e('Username', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                     <?php do_action('bp_signup_username_errors'); ?>                     <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />                      <label for="signup_email"><?php _e('Email Address', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                     <?php do_action('bp_signup_email_errors'); ?>                     <input type="text" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />                      <label for="signup_password"><?php _e('Choose a Password', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                     <?php do_action('bp_signup_password_errors'); ?>                     <input type="password" name="signup_password" id="signup_password" value="" />                      <label for="signup_password_confirm"><?php _e('Confirm Password', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                     <?php do_action('bp_signup_password_confirm_errors'); ?>                     <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" /> </div> </div><!-- #basic-details-section --> <?php do_action('bp_after_account_details_fields'); ?> <?php do_action('bp_before_blog_details_fields'); ?> </div><div class="secondstep1"><?php /***** Extra Profile Details ******/ ?> <?php if (bp_is_active('xprofile')): ?>                 <div class="register-section"> <div class="register-section twelve columns"> <h4><i class="icon icon-comments"></i> <?php _e('Profile Details', 'buddypress'); ?></h4> <br> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>                     <?php if (function_exists('bp_has_profile')): if (bp_has_profile( )): while (bp_profile_groups()): bp_the_profile_group(); ?> <?php while (bp_profile_fields()): bp_the_profile_field(); ?>  <div class="<?php if ('selectbox' == bp_get_the_profile_field_type() || 'multiselectbox' == bp_get_the_profile_field_type()) echo 'twelve'; else echo 'twelve'; ?> columns">                          <div<?php bp_field_css_class('editfield'); ?> <?php if ('textbox' == bp_get_the_profile_field_type()): ?> <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('(required)', 'buddypress'); ?><?php endif; ?></label>                                 <?php do_action('bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>                                 <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" /> <?php endif; ?> <?php if ('textarea' == bp_get_the_profile_field_type()): ?> <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('(required)', 'buddypress'); ?><?php endif; ?></label>                                 <?php do_action('bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>                                 <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea> <?php endif; ?> <?php if ('selectbox' == bp_get_the_profile_field_type()): ?> <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('(required)', 'buddypress'); ?><?php endif; ?></label>                                 <?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 endif; ?> <?php if ('datebox' == bp_get_the_profile_field_type()): ?> <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('(required)', 'buddypress'); ?><?php endif; ?></label>                                 <?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 endif; ?> <?php if ('multiselectbox' == bp_get_the_profile_field_type()): ?> <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('(required)', 'buddypress'); ?><?php endif; ?></label>                                 <?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(); ?>" multiple="multiple">                                     <?php bp_the_profile_field_options(); ?>                                 </select> <?php endif; ?> <?php if ('radio' == bp_get_the_profile_field_type()): ?> <div class="radio">                                     <i class="icon icon-comments"></i><span class="label"><?php bp_the_profile_field_name(); ?> <?php if (bp_get_the_profile_field_is_required()): ?><?php _e('(required)', 'buddypress'); ?><?php endif; ?></span> <?php do_action('bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>                                     <?php bp_the_profile_field_options(); ?> <?php if (!bp_get_the_profile_field_is_required()): ?> <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e('Clear', 'buddypress'); ?></a>                                     <?php endif; ?>                                 </div><?php endif; ?> <?php if ('checkbox' == bp_get_the_profile_field_type()): ?> <div class="checkbox">                                     <span class="label"><?php bp_the_profile_field_name(); ?> <?php if (bp_get_the_profile_field_is_required()): ?><?php _e('(required)', 'buddypress'); ?><?php endif; ?></span> <?php do_action('bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>                                     <?php bp_the_profile_field_options(); ?>                                  <?php endif; ?> <?php if ('datebox' == bp_get_the_profile_field_type()): ?>                                 <div class="datebox">                                     <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if (bp_get_the_profile_field_is_required()): ?><?php _e('(required)', 'buddypress'); ?><?php endif; ?></label>                                     <?php do_action('bp_' . bp_get_the_profile_field_input_name() . '_errors'); ?>                                                                          <select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month">                                         <?php bp_the_profile_field_options('type=month'); ?>                                     </select> <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day">                                         <?php bp_the_profile_field_options('type=day'); ?>                                     </select><select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year">                                         <?php bp_the_profile_field_options('type=year'); ?>                                     </select>                                 </div>                             <?php endif; ?>                             <?php do_action('bp_custom_profile_edit_fields'); ?>                             <p class="description"><?php bp_the_profile_field_description(); ?></p>                         </div>  </div>                     <?php endwhile; ?>                     <?php $fields_ids[] = bp_get_the_profile_group_field_ids(); ?>                     </div>  <div>  <div class="register-section twelve columns">                     <?php endwhile; endif; endif; ?>                 <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php echo implode(",", $fields_ids); ?>" />                 </div><!-- #profile-details-section -->                 <?php endif; ?>                 <?php do_action('bp_after_signup_profile_fields'); ?>                 <?php if (bp_get_blog_signup_allowed()): ?>                     <?php do_action('bp_before_blog_details_fields'); ?>                     <?php /***** Blog Creation Details ******/ ?>                     <div class="register-section"> <h4><?php _e('Blog Details', 'buddypress'); ?></h4>                         <p><input type="checkbox" name="signup_with_blog" id="signup_with_blog" value="1"<?php if ((int) bp_get_signup_with_blog_value()): ?> checked="checked"<?php endif; ?> /> <?php _e('Yes, I\'d like to create a new blog', 'buddypress'); ?></p>                         <div id="blog-details"<?php if ((int) bp_get_signup_with_blog_value()): ?>class="show"<?php endif; ?>                             <label for="signup_blog_url"><?php _e('Blog URL', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                             <?php do_action('bp_signup_blog_url_errors'); ?>                             <?php if ('yes' == VHOST): ?>                                 http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php echo str_replace('http://', '', site_url()); ?>                             <?php else: ?>                                 <?php echo site_url(); ?>/ <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" />                             <?php endif; ?>                             <label for="signup_blog_title"><?php _e('Blog Title', 'buddypress'); ?> <?php _e('(required)', 'buddypress'); ?></label>                             <?php do_action('bp_signup_blog_title_errors'); ?>                             <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />                             <span class="label"><?php _e('I would like my blog to appear in search engines, and in public listings around this site', 'buddypress'); ?>:</span>                             <?php do_action('bp_signup_blog_privacy_errors'); ?>                             <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ('public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value()): ?> checked="checked"<?php endif; ?> /> <?php _e('Yes'); ?></label>                             <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ('private' == bp_get_signup_blog_privacy_value()): ?> checked="checked"<?php endif; ?> /> <?php _e('No'); ?></label>                         </div>                     </div> </div><!-- #blog-details-section -->                     <?php do_action('bp_after_blog_details_fields'); ?>                 <?php endif; ?>                 <?php do_action('bp_before_registration_submit_buttons'); ?>                 <div class="submit">                     <input type="submit" class="button radius pull-right"name="signup_submit" id="signup_submit" value="<?php _e('Complete Sign Up', 'buddypress'); ?> →" />                 </div>                 <?php do_action('bp_after_registration_submit_buttons'); ?>                 <?php wp_nonce_field('bp_new_signup'); ?>             <?php endif; // request-details signup step ?>             <?php if ('completed-confirmation' == bp_get_current_signup_step()): ?>                 <h2 class="article-title"><?php _e('Sign Up Complete!', 'buddypress'); ?></h2>                 <?php do_action('template_notices'); ?>                 <?php if (bp_registration_needs_activation()): ?>                     <p><?php _e('You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.', 'buddypress'); ?></p>                 <?php else: ?>                     <p><?php _e('You have successfully created your account! Please log in using the username and password you have just created.', 'buddypress'); ?></p>                 <?php endif; ?>                 <?php if (bp_is_active('xprofile') && !(int) bp_get_option('bp-disable-avatar-uploads')): ?>                     <?php if ('upload-image' == bp_get_avatar_admin_step()): ?>                         <h4><?php _e('Your Current Avatar', 'buddypress'); ?></h4>                         <p><?php _e("We've fetched an avatar for your new account. If you'd like to change this, why not upload a new one?", 'buddypress'); ?></p>                         <div>                             <?php bp_signup_avatar(); ?>                         </div>                         <p>                             <input type="file" name="file" id="file" />                             <input type="submit" name="upload" id="upload" value="<?php _e('Upload Image', 'buddypress'); ?>" />                             <input type="hidden" name="action" id="action" value="bp_avatar_upload" />                             <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />                             <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />                         </p>                         <?php wp_nonce_field('bp_avatar_upload'); ?>                     <?php endif; ?>                     <?php if ('crop-image' == bp_get_avatar_admin_step()): ?>                         <h3><?php _e('Crop Your New Avatar', 'buddypress'); ?></h3>                         <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e('Avatar to crop', 'buddypress'); ?>" />                         <div>                             <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e('Avatar preview', 'buddypress'); ?>" />                         </div>                         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e('Crop Image', 'buddypress'); ?>" />                         <input type="hidden" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" />                         <input type="hidden" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />                         <input type="hidden" name="signup_avatar_dir" id="signup_avatar_dir" value="<?php bp_signup_avatar_dir_value(); ?>" />                         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />                         <input type="hidden" id="x" name="x" />                         <input type="hidden" id="y" name="y" />                         <input type="hidden" id="w" name="w" />                         <input type="hidden" id="h" name="h" />                         <?php wp_nonce_field('bp_avatar_cropstore'); ?>                     <?php endif; ?>                 <?php endif; ?>             <?php endif; // completed-confirmation signup step ?>             <?php do_action('bp_custom_signup_steps'); ?>             </form>  </div></div>         </div></div>         <?php do_action('bp_after_register_page'); ?>         <div class="clearfix"></div>     <br><br>   </div><!--end twelve-->   </div><!--end row-->  </div><!--end main--> </section></div> <!--END MAIN SECTION-->     <?php do_action('bp_after_directory_activity_content'); ?>     <script type="text/javascript">         jQuery(document).ready( function() {             if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )                 jQuery('div#blog-details').toggle();             jQuery( 'input#signup_with_blog' ).click( function() {                 jQuery('div#blog-details').fadeOut().toggle();             });         });     </script> <?php get_footer(); ?>
And css for style.css in child theme
COPY CODE.editfield.field_1.field_our-names.required-field.visibility-public.field_type_textbox { margin: -20px 1px -20px 1px; } .editfield.field_10.field_marital-status.required-field.visibility-public.alt.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_18.field_area-of-residence.required-field.visibility-public.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_395.field_interests.required-field.visibility-public.alt.field_type_checkbox { margin: -20px 1px -20px 1px; } .label { padding: 1px 4px 2px; font-size: 12px; font-weight: bold; text-align: left; text-decoration: none; line-height: normal; white-space: nowrap; display: inline; position: relative; bottom: 1px; color: #fff; background: none !important; font: normal 16px 'Open Sans'; color: #222222; border-bottom-color: rgba(0, 0, 0, 0.07); border-bottom-width: 1px; border-bottom-style: solid; } .editfield.field_484.field_our-story.optional-field.visibility-public.field_type_textarea { margin: -20px 1px -20px 1px; } .editfield.field_437.field_language-spoken.required-field.visibility-public.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_414.field_kids.optional-field.visibility-public.alt.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_515.field_new-in-town.optional-field.visibility-public.alt.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_485.field_looking-for.required-field.visibility-public.field_type_textarea { margin: -20px 1px -20px 1px; } .editfield.field_518.field_pets.optional-field.visibility-public.field_type_selectbox { margin: -20px 1px -20px 1px; } [class^="icon-"], [class*=" icon-"] { display: none !important; width: auto; height: auto; line-height: normal; vertical-align: baseline; background-image: none; background-position: 0% 0%; background-repeat: repeat; margin-top: 0; } .editfield.field_523.field_name.required-field.visibility-public.field_type_textbox { margin: -20px 1px -20px 1px; } .editfield.field_3.field_my-age.required-field.visibility-public.alt.field_type_datebox { margin: -20px 1px -20px 1px; } .editfield.field_524.field_name.required-field.visibility-public.field_type_textbox { margin: -20px 1px -20px 1px; } .editfield.field_446.field_age.required-field.visibility-public.alt.field_type_datebox { margin: -20px 1px -20px 1px; } .editfield.field_454.field_hometown.optional-field.visibility-public.alt.field_type_textbox { margin: -20px 1px -20px 1px; } .editfield.field_526.field_occupation.optional-field.visibility-public.field_type_textbox { margin: -20px 1px -20px 1px; } .editfield.field_388.field_education-level.optional-field.visibility-public.alt.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_527.field_spiritual-faith.optional-field.visibility-public.field_type_selectbox { margin: -20px 1px -20px 1px; } .editfield.field_553.field_political-view.optional-field.visibility-public.alt.field_type_textbox { margin: -20px 1px -20px 1px; }
“
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
March 31, 2016 at 13:45 #113775liam62244Participantdoes this code force all fields on register? what if I only want to force some fields? as to not scare away potential customers with too many fields
April 1, 2016 at 13:44 #114057LauraModeratorHello, then at Users > Profile fields, add the ones you want to Base group, and edit them and check required 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 7, 2016 at 14:43 #115043liam62244ParticipantIm sorry i dont understand. please explain fully
April 7, 2016 at 14:46 #115044liam62244ParticipantIf I put all the fiels in the base group then the profile page will look crap and too long with too many fields and not have the tab fields to make navigation easier.
I just want a simple way to persuade peopel to fill more fields on register or make it easier after register
April 11, 2016 at 15:14 #115631LauraModeratorHello, make the fields required and they will be forced to fill them
Then after registration, they can fill the other fields at their profile 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 20, 2016 at 05:56 #117820liam62244ParticipantIve tried this but it does not force the customer to fill the fields on the register page. It will only force if the fields on in the primary fields tab. How do I force the other tabs, ive selected force but it does not show the other tabs on the register page
April 22, 2016 at 01:02 #118309victorParticipanthello,I beg you to please help out with this, how can i make users after clicking (signup button on above header menu and on header and facebook login) to go to register.php to complete base field to complete sign up. pleeeeeesee.!
April 25, 2016 at 15:42 #118740LauraModeratorHello @victor, you need to edit the file header.php to edit the link, just change the # of the <a href=”#” to the register page url and delete the data-reveal text 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
April 25, 2016 at 17:48 #118796victorParticipantHi @laura, Thank you very much,it worked. But there is still a signup button on the search/signup form on the header and a “create account button” inside login panel that doesn’t take people to the base registration page. where can i change the links of those too to the register page.
April 25, 2016 at 20:41 #118861victorParticipant@Laura, I have been able to locate where to put the link to the registration page from the other two locations. Thanks a bunch.
April 28, 2016 at 02:03 #119414LauraModeratorHello @liam62244 , please do not post this in another topic, that issue can be related to a cache plugin. Please open a new ticket if you have more issues 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
May 2, 2016 at 15:45 #119896LauraModeratorHello, it is, you will find it at Get Support menu item 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
You must be logged in to reply to this topic.