Home › Forums › Legacy Support › Support queries › Setup issues › Registration form
Tagged: registration
- This topic has 21 replies, 6 voices, and was last updated 4 years, 10 months ago by Veronica.
-
AuthorPosts
-
July 15, 2019 at 10:04 am #218379wailokccBlockedDear Vibe, Would you share the custom code with me, so that the registration form has only the following fields:
- Name (Not the same as email/username)
- Password
- Confirm password
July 15, 2019 at 11:57 am #218399wailokccBlockedThis reply has been marked as private.July 16, 2019 at 12:24 pm #218571maximusMember@wailokcc Dear friend, We can add some fields with the buddypress registration form. If you want to show only these 4 fields on the registration page then you need to search any third party plugin for this because in our theme we can't show only 4 fields on the registration. But we never recommend any third party plugin.July 17, 2019 at 5:57 am #218672wailokccBlockedHi, @VibeThemes replied that this can be achieved via custom code. https://snag.gy/TPdL9w.jpgJuly 17, 2019 at 5:59 am #218674DianaParticipant@wailokcc An alternative, is that use custom registration form of wplms Go to wp-admin > LMS > Settings > Registration Forms > create a form like this: http://prntscr.com/og3tjh Paste this shortcode on a page and connect that page in wp-admin > WPLMS > BuddyPress > http://prntscr.com/og3u3t It will look like this: http://prntscr.com/og3uvqJuly 17, 2019 at 6:02 am #218676wailokccBlockedYes I know this alternative. But as I know the custom form will not have the "confirm password" field via this way.July 17, 2019 at 6:26 am #218682MrVibeKeymastersharing code...July 17, 2019 at 7:39 am #218715MrVibeKeymasteradd_action('wp_footer',function(){ if(!is_page(vibe_get_bp_page_id('register'))) return; ?><script> jQuery(document).ready(function($){ function string_to_slug (str) { str = str.replace(/^\s+|\s+$/g, ''); // trim str = str.toLowerCase(); // remove accents, swap ñ for n, etc var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; var to = "aaaaeeeeiiiioooouuuunc------"; for (var i=0, l=from.length ; i<l ; i++) { str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); } str = str.replace(/[^a-z0-9 -]/g, '') // remove invalid chars .replace(/\s+/g, '-') // collapse whitespace and replace by - .replace(/-+/g, '-'); // collapse dashes return str; } $('#profile-details-section').remove(); $('#field_1').on('change',function(event){ $('#signup_username').val(string_to_slug(event.target.value)); }); $('#signup_username').after('<input id="field_1" name="field_1" type="text" value="" aria-required="true" required="" aria-labelledby="field_1-1" aria-describedby="field_1-3">'); $('#signup_username').attr('type','hidden'); }); </script><?php });July 17, 2019 at 7:40 am #218716MrVibeKeymasteradd above code in child theme - functions.phpJuly 17, 2019 at 8:41 am #218728wailokccBlockedHi Mr.Vibe, Thank you for your help! I added the code to the child's functions.php, but it shows that "the site is experiencing technical difficulties". So, I have commented out the code. Would you please have a look?July 17, 2019 at 12:25 pm #218770DianaParticipant@wailokcc There was a syntax error in the above code. Updated the above code. Please copy again and then paste. It will work nowJuly 17, 2019 at 12:55 pm #218774wailokccBlockedThank you Diana. The error is fixed and the form looks good now. But when I tried to register,- no successful/failed message has been displayed; and
- no account (even the pending account) has been created
July 18, 2019 at 11:19 am #218938maximusMemberThis reply has been marked as private.July 18, 2019 at 11:47 am #218947wailokccBlockedThis reply has been marked as private.July 20, 2019 at 5:54 am #219125Anshuman SahuKeymasterchecking.... -
AuthorPosts
- The topic ‘Registration form’ is closed to new replies.