Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sol

    (@solchea)

    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.

    Thread Starter fouldsy99

    (@fouldsy99)

    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

    Plugin Author Sol

    (@solchea)

    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.

    Thread Starter fouldsy99

    (@fouldsy99)

    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.

    Thread Starter fouldsy99

    (@fouldsy99)

    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

    Plugin Author Sol

    (@solchea)

    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.

    Thread Starter fouldsy99

    (@fouldsy99)

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

    Regards

    Plugin Author Sol

    (@solchea)

    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' );
    
    ?>
    Thread Starter fouldsy99

    (@fouldsy99)

    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

    Plugin Author Sol

    (@solchea)

    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.

    Thread Starter fouldsy99

    (@fouldsy99)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Few Issues’ is closed to new replies.