• 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

    https://www.ads-software.com/extend/plugins/simplr-registration-form/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mpvanwinkle77

    (@mpvanwinkle77)

    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:
    https://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.

    Takaya213

    (@takaya213)

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

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Simplr User Registration Form] Using with MultiSite and Symposium’ is closed to new replies.