WordPress.org

Ready to get started?Download WordPress

Forums

Simplr Registration Form Plus+
[Plugin: Simplr User Registration Form] Using with MultiSite and Symposium (3 posts)

  1. steliodj
    Member
    Posted 3 years ago #

    Hi there,

    Thanks for the awesome plugin.

    Anyone can advice on how i can modify the fields of the registration in order to include the necessary fields for Multisite and Symposium, for example multisite registration form asks the user if he want a site with his registration or just a username and Symposium asks for nickname in addition to the username.

    Thanks in advance
    Stelios

    http://wordpress.org/extend/plugins/simplr-registration-form/

  2. mpvanwinkle77
    Member
    Plugin Author

    Posted 3 years ago #

    At this time, this plugin cannot be used to replace the default multisite registration. It can be used to add registration forms to individual sites on a multisite installation.

    As for adding additional fields, there are hooks for this. See this page:
    http://www.mikevanwinkle.com/wordpress/registration-forms-whats-new-in-1-5/

    Just create a function for the input field:

    add_filter('simplr_add_form_fields','my_custom_reg_field');
    function my_custom_reg_field($form) {
     $form .=  '<div>';
     $form .=  '<label for="nickname">Nickname:</label>';
     $form .=  '<input type="text" name="nickname" value="'.$_POST['nickname'] .'"/><br/>';
     $form .=  '</div>';
     return $form;
    }

    Then add a function for saving the field:

    add_action('simplr_profile_save_meta','save_nickname');
    function save_nickname($user_id) {
    if(isset($_POST['nickname'])) { add_user_meta($user_id, 'nickname', $_POST['nickname']); }
    return $user_id;
    }

    In the latest version there are filters for each section.

  3. Takaya213
    Member
    Posted 3 years ago #

    Thanks for this one, been looking everywhere. Is it possible to make this custom field required?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic