registration validation
-
hi,
i am trying to find how (if) BP is doing validation
using BP 2.1.1on buddypress plugin\bp-templates\bp-legacy\css\buddypress.css
there is section 3.5 forms
for example here are a few lines:
#buddypress .standard-form input[type=text],
#buddypress .standard-form input[type=text],
#buddypress .standard-form input[type=color],
#buddypress .standard-form input[type=date],this seems to coincide with wp-content\themes\test_theme\buddypress\register.php
the action bp_signup_username_errors<!– here is an an example of the action hook for username validation –>
<label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?> <?php _e( ‘*’, ‘buddypress’ ); ?></label>
<?php do_action( ‘bp_signup_username_errors’ ); ?>
<input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” />
<p class=”description”>Usernames must be all one word.</p>so my question is, buddypress seems to have validation for username, password, and email address. there will be a red error message box popping up when the data isn’t in the correct format.
where is this functionality passed, and how can i build on it to include other fields like Xprofile fields and WP user profile fields?
_________________________________________
for example:‘describe yourself in 25 words or less’
while this isn’t on the register page, its on where/how would i hook into this field with an action.. and can i use the same function page as the above validation.. just copy and modify the syntax to include the requirements for the data (25 words or less, no urls, etc)
thanks in advance
- The topic ‘registration validation’ is closed to new replies.