Running custom code before registration page.
-
Hello everyone!
I am trying to make a checkbox before ‘Account Details’ on registration page.
Step 1.
Is there any way so that when user click continue, Rest of registration page loads through AJAX or something?:
Step 2.
More like step registration?
Here’s my code for step 1:
function tos_register() { ?> <p><input type="checkbox" name="tos" value="termsandconditions"> By clicking continue you are agreeing to the <a href="">Terms and Conditions.</a><br></p> <div class="submit"> <input type="submit" name="signup_continue" id="signup_continue" value="<?php esc_attr_e( 'Continue', 'buddypress' ); ?>" /> </div> <?php } add_action( 'register_form', 'tos_register' ); function tos_intial() {?> <div class="register-section" id="profile-details-section"> <?php do_action('register_form'); ?> </div> <?php } add_action('bp_before_account_details_fields', 'tos_intial',20);
I was able to code everything but I am not able to use
break and continue
in php with registration page. Maybe through Nonce? I shall be very grateful for your suggestions.Looking forward for replies.
Thanks a lot!
- You must be logged in to reply to this topic.