WordPress.org

Ready to get started?Download WordPress

Forums

AddThis Social Sign In
Few Issues (12 posts)

  1. fouldsy99
    Member
    Posted 1 year ago #

    After I activate this plugin, I goto the settings page to enter the facebook and twitter info. Then I check the login and register page and see no sign of facebook or twitter options to login or register?

    Website: http://worldinsport.com

    Regards

    http://wordpress.org/extend/plugins/addthis-social-sign-in/

  2. Sol
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    Hi, can you verify the settings for Facebook and Twitter were saved by going back to the Settings page and make sure they appear. There is a "Save" button at the bottom of the page that you need to click to commit the changes to the database.

    I also noticed that your login page has been modified. If it's a custom page, you'll need to add the following code to your page:

    <?php addthis_ssi();?>

    Let me know if either of these fix the problem for you.

  3. fouldsy99
    Member
    Posted 1 year ago #

    The Facebook and Twitter settings were saved as they were still there when I logged back in.

    I have since removed the custom login and reverted back to the original one, yet I'm still having the same problem.

    Regards

  4. Sol
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    You are correct, I just checked the source code and our code is being inserted correctly. However, I just noticed that there is a Javascript error being thrown:

    Uncaught TypeError: Cannot read property 'style' of null

    Seems to be coming from googleCards.min.js, not sure what plugin this is related to (or possibly the theme), but I think because of the uncaught exception, it is preventing our code from adding the buttons to the page. If it's something you can easily remove, I think it should fix the problem.

  5. fouldsy99
    Member
    Posted 1 year ago #

    I'm not sure what that googlecards.min.js is, I've certainly not got google cards installed as a plugin.

    I'm a novice, so not sure how to remove the error you found.

  6. fouldsy99
    Member
    Posted 1 year ago #

    Hi I've managed to get it working now which shows on the login page, but how do I add it to the register page?

    Regards

  7. Sol
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    Glad you got it working on the login page. Looking into it, we think there is a conflict with the Wibiya bar and we're working on a fix for that. As for adding the buttons to the register page, we don't have that feature enabled currently, but we can have it in the next update. If you need to have it sooner, let me know and I can tell you what changes to make to your plugin to manually enable it.

  8. fouldsy99
    Member
    Posted 1 year ago #

    Can you let me know how to do it manually please?

    Regards

  9. Sol
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    You will need to modify the plugin code from the Admin Dashboard -> Plugins -> Editor

    Select "AddThis Social Sign In" (drop down list in upper right of screen)

    The select the file addthis-social-sign-in/addthis_social_sign_in.php

    Go to the bottom of the file and right before the line with "?>" paste the following text:

    add_action( 'register_form', 'addthis_ssi_render_buttons' );
    add_action( 'register_form', 'addthis_ssi_render_fields' );

    The last few lines should look like:

    if (! function_exists('get_user_meta'))
    {
    	function get_user_meta($user_id, $key = '', $single = false) {
    		return get_metadata('user', $user_id, $key, $single);
    	}
    }
    
    add_action( 'register_form', 'addthis_ssi_render_buttons' );
    add_action( 'register_form', 'addthis_ssi_render_fields' );
    
    ?>
  10. fouldsy99
    Member
    Posted 1 year ago #

    I tired that code you suggested, all it does on register page is after clicking facebook or twitter links it connects to the account with Authenticating message. Then it disappears and returns back to register page without the user being logged in or registered.

    Regards

  11. Sol
    AddThis Samurai
    Plugin Author

    Posted 1 year ago #

    Sorry, I jumped the gun and didn't fully test the scenario. You need to make one more change to the same file Admin -> Pugins -> Editor -> AddThis Social Sign In -> addthis_social_sign_in.php.

    Look for the following code:

    document.getElementById("loginform").submit();

    And replace the entire line with the following:

    try { document.getElementById("loginform").submit(); } catch (err) { document.getElementById("registerform").submit(); }

    This isn't the most elegant solution, but it will work until we update the plugin. Please give this a try and let me know if it works for you.

  12. fouldsy99
    Member
    Posted 1 year ago #

    Yeah that works, as you said it isn't the most elegant solution but hey it works.

    Thanks for your help, looking forward to the update.

    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.