• Resolved moderworks

    (@moderworks)


    A good and necessary plugin, but there is one problem. Works incorrectly with Nextend Social Login and Register plugin. Error messages in the username are not overridden (when the option to manually enter the username is enabled in the Nextend Social Login plugin). Default WordPress messages are displayed instead of these: wp-admin/options-general.php?page=restrict_usernames_emails_characters&tab=error_messages

    Field code:

    <label for=”user_login”>Username<br>
    <input type=”text” name=”user_login” id=”user_login” class=”input” value=”” size=”20″>
    </label>

    Is it possible to override this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benaceur

    (@benaceur)

    I activated the plugin to try it but did not find this option “manually enter the username” please give me an image

    Thread Starter moderworks

    (@moderworks)

    Pro version, a page with a username confirmation form created using a shortcode.

    Page url looks like this: https://site.com/register/?loginSocial=google

    PHP can be seen here: nextend-facebook-connect\includes\userData.php (free version)

        public function customRegisterFlowShortcode() {
            $errors = $this->errors;
            if (is_wp_error($errors)) {
                $html = array();
                if ($errors->get_error_messages()) {
                    foreach ($errors->get_error_messages() as $error) {
                        $html[] = '<div class="error">' . $error . '</div>';
                    }
                }
                if (!empty($html)) {
                    echo '<style>.nsl-messages .error{background-color: #e2401c;border-left: .6180469716em solid rgba(0,0,0,.15);padding: 1em 1.618em;margin-bottom: 2.617924em;color:#fff;}</style>';
                    echo '<div class="nsl-messages">' . implode('', $html) . '</div>';
                }
            }
            $this->errors = array();
    
            return $this->render_registration_form();
        }

    I can’t deal with it. Tried to override via functions.php, didn’t work.

    Error message shown: “This username is invalid because it uses illegal characters. Please enter a valid username.” Even if the case is in other violations by the user.

    Or: “Please enter a value for your username.” If the user has not completed the form.

    These are the error warnings from the wordpress.

    Your plugin works flawlessly on other pages of the site (in a modal window), the problem is only with error messages on one page.

    Plugin Author Benaceur

    (@benaceur)

    I’m sorry, but the plugin didn’t work for me, so I can’t fix the problem.

    Thread Starter moderworks

    (@moderworks)

    I managed to solve the problem. The Nextend Social Login plugin had a higher priority for reporting errors.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Compatibility issue with Nextend Social Login and Register plugin’ is closed to new replies.