Google Login and Register into WordPress

Hi : Does WPMU offer any plugins that allow a user to register and/or login to WordPress by using their existing Google account?

We prefer a plugin which WPMU supports.
Please Advise...

  • VirtualArtists

    Hi : Thanks - we have installed: OneAll Social Login

    We need to replace all "SignUp" forms to block normal WordPress or Membership2 SignUp. We must replace all SignUp pages on our site to only allow our new Social Login provider. They have provided short code we can drop on any page.

    Question: How do replace Memberhsip2 SignUp with our own custom page with only one short code?
    This page is correct for first step - we must allow user to select membership : http://musicwiz.club/membersignup/
    It lists our Memberships they select a membership, and click SignUp.

    This page "Create an Account" is incorrect:
    http://www.screencast.com/t/5dLE4p5PdL
    All form fields should be deleted and only leave the Social Login button.
    Then we need the user to ONLY see Social Login option from any Membership2 Signup pages.

    Support Access Active
    Please Advise...

  • Adam Czajczyk

    Hello VirtualArtists!

    To replace Membership 2 Pro registration with your own registration page

    - first please create your registration page,
    - then on "Membership 2 -> Settings -> General" page select that page as "Registration" page
    - and then add following line to "functions.php" file of your current theme:

    add_filter('ms_frontend_handle_registration', '__return_false');

    This should switch off Membership 2 Pro registration handling and set default page to your page so your plugin (Social Login in this case) should "take over".

    Let me know please if that worked for you.

    Best regards,
    Adam

  • VirtualArtists

    Hi : That sounds promising, but one question:
    We still need Membership 2 to handle first step of allowing user to select "Which Membership" -
    All users still must "SignUp Into" one of our Membership2 existing memberships.

    We really only need to replace the Virtual Page which opens when user clicks:
    "SIGN UP MY ACCOUNT" button.
    Virtual Page: [ms-membership-signup]

    Please Advise...

  • Adam Czajczyk

    Hello VirtualArtists!

    The base of such setup would be what I described in my previous post here:

    https://premium.wpmudev.org/forums/topic/google-login-and-register-into-wordpress#post-1192601

    Let's say that you original Membership 2 Pro page was "yoursite.com/register". At this stage if you point user to this page the workflow would be:

    - user is presented with a choice of memberships
    - user selects a membership
    - user is presented with a registration form (from Membership 2) and a social login buttons

    - if user doesn't fill the form and uses the social login button, a user account is created and a membership is is assigned; user gets redirected to the account page.

    That would be pretty much what you wish to achieve but you will most likely also want to just hide the registration form. This can be done with simple CSS:

    #ms-shortcode-register-user-form {display:none;}

    Please note: you will want to hide the form instead of removing it because we need to carry the information about selected membership over.

    Now the workflow is:
    - user selects membership
    - then is given social login button
    - after clicking it user is "done" - registered, logged in and assigned a membership.

    To make it even more "foolproof" you may entirely disable core WP registration/login form by adding following code to the "functions.php" file of your current theme:

    function oa_social_login_hide_wordpress_login_form ()
    {
      ?>
        <style type="text/css">
          #login form p {display: none;}
        </style>
      <?php
    }
    add_action( 'login_enqueue_scripts', 'oa_social_login_hide_wordpress_login_form');

    Would that work for you?

    Best regards,
    Adam

  • VirtualArtists

    Hi : Thanks for your suggestion above - very close - but we found a bug with this method:

    - We click on SignUp
    - We selected a "paid" Membership
    - Clicked the "Google SignUp" button (M2 SignUp was hidden)
    - Instead of going to PayPal we were routed to a page specified in Social Login settings.

    Social Login settings will allow us to specify a page a URL to land/route on after Google SignUp.
    But this process needs to complete through Membership2 payment gateway.
    New user selected paid membership, but was SignedUp as "Visitor" in Membership2.
    It seems this method above will by pass PayPal - the most important step :slight_frown:

    Please Advise...

  • Dimitris

    Hey there VirtualArtists,

    hope you're doing good and don't mind chiming in!

    This kind of social login integration should require some custom coding in order for proper redirects to occur, carrying over all necessary data. For this kind of custom work, you can advise our Jobs & Pros section.

    Another workaround though, could be a social login page and after login, redirect your users to memberships page so they can then choose their desired membership.

    You can also create "Guest membership" which will be applied to all registered users without any other membership assigned. With this you can even limit your content between visitors and logged in users.

    Hope that was some help, let me know if more assistance is required! :slight_smile:

    Warm regards,
    Dimitris

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.