Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • GreyWyvern
    Participant

    @greywyvern

    That’s where it is. A few lines of context code included:

    ...
    
    				<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="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
    
    				<?php do_action( 'bp_account_details_fields' ); ?>
    
    <!-- Test question -->
    <label for="signup_test">Challenge question? <?php _e( '(required)', 'buddypress' ); ?></label>
    <?php do_action( 'bp_signup_test_errors' ); ?>
    <input type="text" name="signup_test" id="signup_test" value="" />
    
    			</div><!-- #basic-details-section -->
    
    			<?php do_action( 'bp_after_account_details_fields' ); ?>
    
    ...

    From your responses I’m getting the feeling that what I’m doing should be working, but it isn’t. I’m probably overlooking something simple. 😐


    GreyWyvern
    Participant

    @greywyvern

    I activated the twentythirteen theme and uploaded the edited register.php file here:

    /wp-content/themes/twentythirteen/buddypress/members/register.php

    I double checked to make sure that the register.php file I uploaded was from:

    \wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.php

    … and also that my challenge question code was included. It’s inserted at line 51 of the file as follows:

    <!-- Test question -->
    <label for="signup_test">Challenge question? <?php _e( '(required)', 'buddypress' ); ?></label>
    <?php do_action( 'bp_signup_test_errors' ); ?>
    <input type="text" name="signup_test" id="signup_test" value="" />

    After clearing any caching plugins, the challenge question DID NOT appear on the signup form while the twentythirteen theme was active. I have reverted back to the blackfyre template for now.

    Any thoughts?


    GreyWyvern
    Participant

    @greywyvern

    Thank you for the reply. Just so you know, I am an experienced PHP coder, but I’m quite unfamiliar with the WP and Buddypress plugin API, which is why I was adding the challenge question manually right in the PHP files before. So I’m not sure where I would put the bp_signup_validate code you linked. Some specific file?

    I copied my edited register.php (with the challenge question) to the following folder of the theme we’re using:

    /wp-content/themes/blackfyre/buddypress/members/

    There was no file named register.php in this directory previously.

    After clearing any caching plugins, the signup form still only displays the default questions. You can see it here: http://realmsunchained.com/user-registration/

    There should be an additional field under the “Confirm Password” field. Before Buddypress 2.4.x just editing the files I mentioned in the OP caused instant changes to this page. Now the registration form seems to be drawing its code from somewhere completely different.

    Am I going wrong somewhere?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar