Forum Replies Created

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
  • in reply to: Improve the registration page #104122
     logobby
    Participant

    Hi Andrei,

    Can’t you check this code? Because the problem come from this code. It’s the custom code for the register.php file.
    If I putting back the original code I don’t have the problem with the required inputs.
    Someone told me that it’s comes from this line that I repeat to each end step
    <?php $fields_ids_1[]= bp_get_the_profile_group_field_ids();?>

    This is the code I have today on the register.php page:

    COPY CODE
    <?php get_header( 'buddypress' ); ?>
    
    <!-- MAIN SECTION
    ================================================ -->
    <section>
        <div id="main">
            <div class="row">
                <div class="twelve columns">
      
    		<?php do_action( 'bp_before_register_page' ); ?>
    
    		<div id="register-page">
    
    			<form action="" name="signup_form" id="signup_form" class="standard-form custom" method="post" enctype="multipart/form-data">
    
          <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    				<?php do_action( 'template_notices' ); ?>
    				<?php do_action( 'bp_before_registration_disabled' ); ?>
    
    					<p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
    
    				<?php do_action( 'bp_after_registration_disabled' ); ?>
    			<?php endif; // registration-disabled signup setp ?>
    			
          <?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><!--end twelve-->                                        
          </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>
          <br/><br/>
                    
          <!-- start multistep -->
          <dl class="tabs signup-steps">
            <dd class="active"><a href="#step1">Account & Profile Details</a></dd>
            <dd><a href="#step2">Myself Summary & Looking For</a></dd>
            <dd><a href="#step3">Lifestyle & Physical</a></dd>
          </dl>
          <ul class="tabs-content">
            <li id="step1Tab" class="active">
            
            			<?php do_action( 'bp_before_account_details_fields' ); ?>
                  <div class="row">
            				<div class="register-section six columns" id="basic-details-section">
            
            					<?php /***** Basic Account Details ******/ ?>
            
            					<h4><i class="fa fa-user-plus"></i> <?php _e( 'Account Details', 'buddypress' ); ?></h4>
                                <br>
            					<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="<?php bp_signup_password_value(); ?>" class="password-entry" />
                                <div id="pass-strength-result"></div>
            
            					<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="<?php bp_signup_password_confirm_value(); ?>" class="password-entry-confirm" />
                                <br><br>
            				</div><!-- #basic-details-section -->
            
            				<?php do_action( 'bp_after_account_details_fields' ); ?>
            
            				<?php /***** Extra Profile Details ******/ ?>
            
            				<?php if ( bp_is_active( 'xprofile' ) ) : ?>
            
            					<?php do_action( 'bp_before_signup_profile_fields' ); ?>
            
            					<div class="register-section six columns" id="profile-details-section">
            
            						<h4><i class="icon icon-user"></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 ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : 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 'six'; else echo 'twelve';?> columns">
                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
            
            								<?php
            								$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
            								$field_type->edit_field_html();
            
            								do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
            
            								if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
            									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
            									</p>
            
            									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
            										<fieldset>
            											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
            
            											<?php bp_profile_visibility_radio_buttons() ?>
            
            										</fieldset>
            										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
            
            									</div>
            								<?php else : ?>
            									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
            									</p>
            								<?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_1[]= bp_get_the_profile_group_field_ids();?>
            					
            
            						<?php endwhile; endif; endif; ?>
            
            					</div><!-- #profile-details-section -->
            	     </div>
                   <?php do_action( 'bp_after_signup_profile_fields' ); ?>
            
        				 <?php endif; ?>
              
              <dl class="tabs next-step">
                <dd><a class="button radius" href="#step2">Next Step <i class="icon icon-angle-right"></i></a></dd>
              </dl>
            
            </li>
            <li id="step2Tab">             				
            
            				<?php if ( bp_is_active( 'xprofile' ) ) : ?>
            
            					<?php do_action( 'bp_before_signup_profile_fields' ); ?>
            
            					<div class="register-section six columns" id="myself-details-section">
            
            						<h4><i class="icon icon-comment"></i> <?php _e( 'Myself Summary', 'buddypress' ); ?></h4>
            						<br>
            						<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
            						<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=2' ) ) : 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 'six'; else echo 'twelve';?> columns">
                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
            
            								<?php
            								$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
            								$field_type->edit_field_html();
            
            								do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
            
            								if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
            									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
            									</p>
            
            									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
            										<fieldset>
            											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
            
            											<?php bp_profile_visibility_radio_buttons() ?>
            
            										</fieldset>
            										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
            
            									</div>
            								<?php else : ?>
            									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
            									</p>
            								<?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_2[]= bp_get_the_profile_group_field_ids();?>
            
            						<?php endwhile; endif; endif; ?>
            
            					</div><!-- #profile-details-section -->
            	    
                   <?php do_action( 'bp_after_signup_profile_fields' ); ?>
                   
                   <?php do_action( 'bp_before_signup_profile_fields' ); ?>
            
            					<div class="register-section six columns" id="looking-details-section">
            
            						<h4><i class="fa fa-venus-mars"></i> <?php _e( 'Looking for', 'buddypress' ); ?></h4>
            						<br>
            						<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
            						<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=3' ) ) : 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 'six'; else echo 'twelve';?> columns">
                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
            
            								<?php
            								$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
            								$field_type->edit_field_html();
            
            								do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
            
            								if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
            									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
            									</p>
            
            									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
            										<fieldset>
            											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
            
            											<?php bp_profile_visibility_radio_buttons() ?>
            
            										</fieldset>
            										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
            
            									</div>
            								<?php else : ?>
            									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
            									</p>
            								<?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_3[]= bp_get_the_profile_group_field_ids();?>
            
            						<?php endwhile; endif; endif; ?>
            
            					</div><!-- #profile-details-section -->
            	     
                   <?php do_action( 'bp_after_signup_profile_fields' ); ?>
                   
                    
        				 <?php endif; ?>
                 
              <dl class="tabs next-step">
                <dd><a class="button radius" href="#step3">Next Step <i class="icon icon-angle-right"></i></a></dd>
              </dl>
                 
            </li>
            <li id="step3Tab">
                        
            				<?php if ( bp_is_active( 'xprofile' ) ) : ?>
            
            					<?php do_action( 'bp_before_signup_profile_fields' ); ?>
            
            					<div class="register-section six columns" id="myself-details-section">
            
            						<h4><i class="fa fa-bicycle"></i> <?php _e( 'Lifestyle', 'buddypress' ); ?></h4>
            						<br>
            						<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
            						<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=4' ) ) : 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 'six'; else echo 'twelve';?> columns">
                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
            
            								<?php
            								$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
            								$field_type->edit_field_html();
            
            								do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
            
            								if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
            									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
            									</p>
            
            									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>">
            										<fieldset>
            											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>
            
            											<?php bp_profile_visibility_radio_buttons() ?>
            
            										</fieldset>
            										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>
            
            									</div>
            								<?php else : ?>
            									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
            									</p>
            								<?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_4[]= bp_get_the_profile_group_field_ids();?>
            
            						<?php endwhile; endif; endif; ?>
            
            					</div><!-- #profile-details-section -->
            	    
                   <?php do_action( 'bp_after_signup_profile_fields' ); ?>
                   
                   <?php do_action( 'bp_before_signup_profile_fields' ); ?>
            
            					<div class="register-section six columns" id="physical-details-section">
            
            						<h4><i class="fa fa-eye"></i> <?php _e( 'Physical', 'buddypress' ); ?></h4>
            						<br>
            						<?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
            						<?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=5' ) ) : 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 'six'; else echo 'twelve';?> columns">
                                        <div<?php bp_field_css_class( 'editfield' ); ?>>
            
            								<?php
            								$field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
            								$field_type->edit_field_html();
            
            								do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
            
            								if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?>
            									<p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a>
            									</p>
            
            									<div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id()?>">        										
                                <fieldset>
            											<legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>        
            											<?php bp_profile_visibility_radio_buttons() ?>        
            										</fieldset>
            										<a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a>        
            									</div>
            								<?php else : ?>
            									<p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>">
            										<?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?>
            									</p>
            								<?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_5[]= bp_get_the_profile_group_field_ids();?>
            						<input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php $arr = array($fields_ids_1,$fields_ids_2,$fields_ids_3,$fields_ids_4,$fields_ids_5); $compil=implode(",",$arr); echo $compil;?>" />
            
            						<?php endwhile; endif; endif; ?>
            
            					</div><!-- #profile-details-section -->
            	     
                   <?php do_action( 'bp_after_signup_profile_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' ); ?>
      
            </li>
          </ul>
          
          <!-- end multistep -->
          
          
    
    			
    
    				<?php if ( bp_get_blog_signup_allowed() ) : ?>
    
    					<?php do_action( 'bp_before_blog_details_fields' ); ?>
    
    					<?php /***** Blog Creation Details ******/ ?>
    
    					<div class="register-section" id="blog-details-section">
    
    						<h4><?php _e( 'Blog Details', 'buddypress' ); ?></h4>
    
    						<p><label for="signup_with_blog"><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 site', 'buddypress' ); ?></label></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 ( is_subdomain_install() ) : ?>
    								http:// <input type="text" name="signup_blog_url" id="signup_blog_url" value="<?php bp_signup_blog_url_value(); ?>" /> .<?php bp_blogs_subdomain_base(); ?>
    							<?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( 'Site 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(); ?>" />
    
    							<label><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?>:</label>
    							<?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', 'buddypress' ); ?></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', 'buddypress' ); ?></label>
    
    						</div>
    
    					</div><!-- #blog-details-section -->
    
    					<?php do_action( 'bp_after_blog_details_fields' ); ?>
    
    				<?php endif; ?>
    
    				<?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!', 'kleo_framework' ); ?></h2>
    
    				<?php do_action( 'template_notices' ); ?>
    				<?php do_action( 'bp_before_registration_confirmed' ); ?>
    
    				<?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 do_action( 'bp_after_registration_confirmed' ); ?>
    
    			<?php endif; // completed-confirmation signup step ?>
    
    			<?php do_action( 'bp_custom_signup_steps' ); ?>
    
    			</form>
    
    		</div>
            
    		<?php do_action( 'bp_after_register_page' ); ?>
                    <div class="clearfix"></div>
            <br/><br/>
        </div><!--end twelve-->
        
        </div><!--end row-->
      </div><!--end main-->
    
    </section>
    <!--END MAIN SECTION-->
    <div id="myModal" class="reveal-modal small">
      <h2>Oops!</h2>
      <p class="lead">You did not complete all of the required fields...</p>  
      <a class="close-reveal-modal">×</a>
      <a class="close-reveal-modal button">OK</a>
    </div>
    
    	<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' ).change( function() {
                    if(jQuery(this).is(':checked')) {
                        jQuery('div#blog-details').fadeIn();
                    }
                    else {
                        jQuery('div#blog-details').fadeOut();
                    }
    			});
          
          jQuery('.next-step a, .tabs.signup-steps a').click(function(e){
            e.preventDefault();
            var pass=true;
            jQuery('.tabs-content li.active .required-field input, .tabs-content li.active .required-field textarea').each(function(){
              if (!jQuery(this).val()) { pass=false; jQuery(this).prev('label').css('color','red'); } 
              else { jQuery(this).prev('label').css('color','#4D4D4D');  }
            });        
            jQuery('.tabs-content li.active .required-field .custom.dropdown a.current').each(function(){          
              if (jQuery(this).text()=='----') { pass=false; jQuery(this).parent().prev().prev('label').css('color','red'); } 
              else { jQuery(this).parent().prev().prev('label').css('color','#4D4D4D'); }
            });
            jQuery('#basic-details-section input').each(function(){
              if (!jQuery(this).val()) { pass=false; jQuery(this).prev('label').css('color','red'); }
              else { jQuery(this).prev('label').css('color','#4D4D4D'); } 
            });        
            
            if (pass==true) {
              var href = jQuery(this).attr('href'); 
              jQuery('.tabs.signup-steps dd').removeClass('active');
              jQuery('.tabs.signup-steps dd').each(function(){
                if (jQuery(this).children('a').attr('href')==href) { jQuery(this).addClass('active'); }
              });
              jQuery('html, body').animate({scrollTop : 0},800);    
            } else {
              jQuery('#myModal').reveal();
              e.stopPropagation();          
            }      
          });
                
          jQuery('input#signup_submit').click(function(e){ 
            var finalpass=false;
            jQuery('.tabs-content li.active .required-field option').each(function(){
              if (this.selected) { finalpass=true; }
            });
            if (finalpass==false) { e.preventDefault(); jQuery('#myModal').reveal(); jQuery('.tabs-content li.active .required-field label').css('color','red'); }
          });      
          
    		});
    	</script>
    
    <?php get_footer( 'buddypress' ); ?>
    
    in reply to: Improve the registration page #100536
     logobby
    Participant

    Ok. Thanks for your suggestion but I searched a lot and I found where the problem come from so if you have an idea how to fix it I will be very happy.

    When I instal the Polylang plugin to translate the strings, all the input types (except the Number, Text Box and URL input type ) that I assign to required doesn’t working (they don’t be in red color).
    And if I deactivate the plugin, all it’s working well.

    An idea?

    Regards,

    in reply to: Improve the registration page #99721
     logobby
    Participant

    Thanks

    in reply to: Improve the registration page #99270
     logobby
    Participant
    This reply has been set as private.
    in reply to: Improve the registration page #99269
     logobby
    Participant
    This reply has been set as private.
    in reply to: How to translate from child ? #86302
     logobby
    Participant

    Ok if somebody wish to add his translation in sweetdate-child/languages, just add the following code in your function.php of the child theme.

    // i18n
    load_theme_textdomain(‘kleo_framework’, get_template_directory() . ‘/languages’);

    /* add translation po in child theme */
    add_action( ‘after_setup_theme’, ‘my_child_theme_setup’ );
    function my_child_theme_setup() {
    load_child_theme_textdomain( ‘kleo_framework’, get_stylesheet_directory() . ‘/languages’ );
    }
    add_action( ‘after_setup_theme’, ‘sweetdate_setup’, 8 );

    It’s working for me 🙂

    Good luck!

    in reply to: How to translate from child ? #86300
     logobby
    Participant

    No it doesn’t work for me.
    And why you don’t have any function like other themes do to have the possibility to upload the translate file in the child theme/languages???
    Something like creastic has write…

    in reply to: Translation contribution #63118
     logobby
    Participant

    Thanks Abe but I know that and that’s what I did.
    But I will need it in english also, how can I do it?

    Best regards,

    in reply to: Translation contribution #62867
     logobby
    Participant

    I means to the string like “Smoking”, “About me” “Myself Summary” etc.

    in reply to: Translation contribution #62866
     logobby
    Participant

    Hello,

    Thanks for the translation.
    I use the french language but I can’t see the change in the inscription/edit profile. I needed to translate all the string myself in the backoffice :/

    Best regards

     logobby
    Participant

    @abe according my message you’re right that we understand that I created 2 menus but I really created only 1 menu and the bug evocated above is here.

    Thanks for your reply

     logobby
    Participant

    Hi Abe,
    Thanks for your reply.

    Your plugin seems good but he have a one bug.

    I created menus (1 for logged users and 1 for non logged users) in the primary menu sweetdate, and I put ! is_home() for items that I don’t wish to appear in none-logged menu and ! is_user_logged_in() for items that I don’t wish they appear to logged menu.

    Unfortunately, when I click on blog item of the menu, he do a bug – he give me as follows:
    1. non-logged menu:
    – when I’m on the home page or click on it…I have all items and its error;
    – when I click on all other items…the blog item disabled;
    – when I click on blog item…I get the right menu non-logged but without blog item.

    2. logged menu
    – when I’m on the home page or click on it…I have the right menu;
    – when I click on all other items…the blog item disabled;
    – when I click on blog item…I get items that I didn’t gave a tag (because I want them to appear for non-logged menu an also logged menu).

    I missing something?

    best regards

    in reply to: Logged in users straight to activity page #47823
     logobby
    Participant

    Hello,

    I searched in all the forum but I didn’t find.
    How can I do it but for Sweet-date template?

    I want to redirect my users after that they logged in, to the members page or to another page.

    Thanks in advance.

     logobby
    Participant

    Dear Laura,

    As already said, I’m on localhost.

    Can you connect to my computer via Teamviewer?

    I have only activate the plugin and create a new menu but the search icon has disappeared

     logobby
    Participant

    Hello,

    bbPress
    BuddyPress
    Contact Form 7
    Dynamic Menu for Logged In Users (the plugin for the tow menus)
    Paid Memberships Pro
    Revolution Slider
    rtMedia for WordPress, BuddyPress and bbPress
    WooCommerce
    WordPress Importer

    Here is are plugins that activated.

     logobby
    Participant

    Hello, which plugin I must to disable?

     logobby
    Participant

    Hi,

    Thanks for your relpy.
    I’m on localhost for the moment.
    If you can guide me how to set it it’s will be perfect
    otherwise, maybe via Teamviewer??

     logobby
    Participant

    Hello,

    Thanks, I needed that.

    But why the search icon doesn’t appear in the Logged menu now??
    How can I add?

Viewing 18 posts - 1 through 18 (of 18 total)

Log in with your credentials

Forgot your details?