• Resolved darksilence

    (@darksilence1990)


    Dear Nextend Social Login,

    I am using your plugin with Theme MY Login.
    Your Twitter Login creates a problem (only Twitter Login btw 🙁 ), it enables admin bars for my newly registered users, which is a problem, I kept admin bar hidden from all users except administrations, I am using hideadminbar plugin. Please find me a way around this.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Ramona

    (@nextend_ramona)

    Hi @darksilence1990

    I’m sorry for the trouble.

    Please note that Nextend Social Login is just a simple login/register plugin, it does not do anything with the WordPress admin bar. So if you have any issues with the admin bar not hidden I’m afraid that has nothing to do with Nextend Social Login’s codes.

    I tried the Hide admin bar plugin and also tried the codes from here: http://www.wpbeginner.com/wp-tutorials/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators/
    and the admin bar remained hidden correctly for all users in both cases.

    Do you possibly add a custom role for the users who register via Twitter? Maybe the admin bar is not hidden for that user role.

    I also find it possible that some other plugin interferes, so please try disabling every other plugin but Nextend Social Login and Hide Admin bar and check it like that. You could also try switching back your a default WordPress theme, such as TwentyFifteen to ensure that the problem is not coming from the theme.

    Thread Starter darksilence

    (@darksilence1990)

    Thank you for your Reply,

    I have tested it from multiple scenario, Only TWITTER login causes the ISSUE, I have tried everything that you have asked, still no change. I don’t know why the plugin Twitter login overites other plugins, is it because how the Call back URL is defined?

    Please Help me 🙁 I am in desperate need for this solution.

    Thread Starter darksilence

    (@darksilence1990)

    iSSUE has been resolved, PLEASE NOTE HIDE ADMIN BAR IS NOT FULLY COMPATIBLE WITH YOUR PLUGIN!!

    Plugin Author Nextendweb

    (@nextendweb)

    Hi @darksilence1990,
    could you tell us the details about what was the solution in your case?

    Thread Starter darksilence

    (@darksilence1990)

    I installed another plugin named Hide Admin Bar From Non-admins, previous plugin was buggy! didnt execute after twitter login! had a loop hole.

    There’s a much better way you can do this…

    Disable Admin Bar for All Users Except for Administrators
    Paste this code in your theme’s functions.php file or your site-specific plugin.

    add_action('after_setup_theme', 'remove_admin_bar');
     
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }

    Disable Admin Bar for All Users
    If you want to disable it for all users, then simply put use this code in your theme’s functions.php file or your site-specific plugin.

    /* Disable WordPress Admin Bar for all users but admins. */
      show_admin_bar(false);
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Twitter Login Enables Admin bar by force.’ is closed to new replies.