Registration form

Home Forums Legacy Support Support queries Setup issues Registration form

Tagged: 

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #218379
    wailokcc
    Blocked
    Dear Vibe, Would you share the custom code with me, so that the registration form has only the following fields:
    1. Name (Not the same as email/username)
    2. Email
    3. Password
    4. Confirm password
    Thank you!
    #218399
    wailokcc
    Blocked
    This reply has been marked as private.
    #218571
    maximus
    Member
    @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.
    #218672
    wailokcc
    Blocked
    Hi, @VibeThemes replied that this can be achieved via custom code. https://snag.gy/TPdL9w.jpg
    #218674
    Diana
    Participant
    @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/og3uvq
    #218676
    wailokcc
    Blocked
    Yes I know this alternative. But as I know the custom form will not have the "confirm password" field via this way.
    #218682
    MrVibe
    Keymaster
    sharing code...
    #218715
    MrVibe
    Keymaster
    add_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 });
    #218716
    MrVibe
    Keymaster
    add above code in child theme - functions.php
    #218728
    wailokcc
    Blocked
    Hi 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?
    #218770
    Diana
    Participant
    @wailokcc There was a syntax error in the above code. Updated the above code. Please copy again and then paste. It will work now
    #218774
    wailokcc
    Blocked
    Thank 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
    Would you please have a look?
    #218938
    maximus
    Member
    This reply has been marked as private.
    #218947
    wailokcc
    Blocked
    This reply has been marked as private.
    #219125
    Anshuman Sahu
    Keymaster
    checking....
Viewing 15 posts - 1 through 15 (of 22 total)
  • The topic ‘Registration form’ is closed to new replies.