Title: Few Issues
Last modified: August 20, 2016

---

# Few Issues

 *  [fouldsy99](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/)
 * 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](http://worldinsport.com)
 * Regards
 * [http://wordpress.org/extend/plugins/addthis-social-sign-in/](http://wordpress.org/extend/plugins/addthis-social-sign-in/)

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

 *  Plugin Author [Sol](https://wordpress.org/support/users/solchea/)
 * (@solchea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176793)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176794)
 * 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](https://wordpress.org/support/users/solchea/)
 * (@solchea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176795)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176797)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176816)
 * 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](https://wordpress.org/support/users/solchea/)
 * (@solchea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176824)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176825)
 * Can you let me know how to do it manually please?
 * Regards
 *  Plugin Author [Sol](https://wordpress.org/support/users/solchea/)
 * (@solchea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176827)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176828)
 * 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](https://wordpress.org/support/users/solchea/)
 * (@solchea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176829)
 * 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](https://wordpress.org/support/users/fouldsy99/)
 * (@fouldsy99)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176831)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis-social-sign-in.svg)
 * [AddThis Social Sign In](https://wordpress.org/plugins/addthis-social-sign-in/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis-social-sign-in/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis-social-sign-in/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis-social-sign-in/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis-social-sign-in/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis-social-sign-in/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [fouldsy99](https://wordpress.org/support/users/fouldsy99/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/few-issues/#post-3176831)
 * Status: not resolved