WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Social Login
[resolved] Does this work with existing registered BuddyPress users? (37 posts)

  1. Tux Kapono
    Member
    Posted 1 year ago #

    I have 2300 registered WordPress/BuddyPress users. Would installing this allow them to use their Facebook/Twitter/Google email/password to login instead, or is this only for new users?

    http://wordpress.org/extend/plugins/wordpress-social-login/

  2. Miled
    Member
    Plugin Author

    Posted 1 year ago #

    wsl will attempt to reconize users based on their emails (this only when users authenticate through Facebook, Google, Yahaoo or Foursquare as these provides verified emails). if not, a new account will be created.

    on another completely unrelated note, this plugin is not designed nor intended to be bbPress or BuddyPress compatible.

  3. latinosamorir
    Member
    Posted 1 year ago #

    Thank you for this.

    When you say:

    "on another completely unrelated note, this plugin is not designed nor intended to be bbPress or BuddyPress compatible. "

    does it just mean you have not tested it out yet and you have no idea how it will interact with Buddypress installs?

    Do you have plans in the future to make it BP compatible?

    Thank you.

  4. Miled
    Member
    Plugin Author

    Posted 1 year ago #

    both..

    and i have no plan for that at the moment but if i get enough requests i might consider making wsl fully compatible w/ bp.

  5. latinosamorir
    Member
    Posted 1 year ago #

    ok, make this a request for it! ;)

    would be a great addition to buddypress.

    http://lamsocialclub.com, 4680+ members and counting. using a modified version of WPFB Autoconnect to import all the profile data but would love to add the LinkedIN capabilities.

    Thanks!

  6. Tux Kapono
    Member
    Posted 1 year ago #

    There is literally no option whatsoever out there, and hasn't been for years, a Facebook/Twitter/Google social login that's BuddyPress compatible. Here's what's out there:

    BuddyPress compatible
    LoginRadius – External service. Customizing registration page requires $49/mo. option.
    WP-FB-AutoConnect – Facebook only. Creates duplicate users?
    BuddyPress Facebook Connect+ – Facebook only. $30 (3-months) to $99 (year) to update plugin.
    OneAll Social Login – External service. Not very customizable. Free up to 2500 users.

    Not designed to be BuddyPress compatible
    WordPress Social Login - Facebook/Twitter/Google etc. customizable login.
    SocialAuth-WordPress - Facebook/Twitter/Google etc. customizable login.
    AddThis Social Sign In - Facebook/Twitter/Google etc. customizable login.

  7. faospark
    Member
    Posted 1 year ago #

    so i have not encountered any problems with wsl with bp and if there is its pretty much manageable via the settings. but it would be epic if wsl will be officially be compatible with bp.

  8. latinosamorir
    Member
    Posted 1 year ago #

    thanks @faospark,

    it would be awesome if you can map fields from xprofile to fields from the different social networks.

  9. jalejo
    Member
    Posted 1 year ago #

    Hi guys, I have been working in a site with buddypress and the Nextend Social Connect plugins (http://www.nextendweb.com/social-connect-plugins-for-wordpress.html) and they works fine the first time, the user is registered and logged-in, and the website shows the user correctly logged-in (also in the backend the user appear as registered fine), but if I refresh the home page or load any other page, the user is logged out without any reason.
    Any ideas?

    In other sites I have been used this settings (buddypress and nextend social connect plugins) and they works fine.
    Somebody know what plugin can cause conflict with the user sessions duration?

  10. Rocio Valdivia
    Member
    Posted 1 year ago #

    Hi @Miled! here you have another request for BP compatible! ;)

    +1000 @ latinosamorir -> "It would be awesome if you can map fields from xprofile to fields from the different social networks."

    Cheers!

  11. Tux Kapono
    Member
    Posted 1 year ago #

    As the OP, Miled, you definitely have my vote, given this lack of option to compete with Ning, which has 90,000 communities. See LinkinPark's register page on Ning with custom fields alongside the social sign-in: http://www.linkinpark.com/main/authorization/signUp? - this is what is all but prohibitive to set up competitively using BuddyPress without having to hire someone to do a custom plugin.

    That's 90,000 potential users :)

  12. intimez
    Member
    Posted 1 year ago #

    Another vote for buddypress support

  13. Miled
    Member
    Plugin Author

    Posted 1 year ago #

    I guess I'll give it a try.

    If anyone is interested in helping me test this (when it become available), please email me at hybridauth@gmail

    Just to mention, @Tux Kapono, this is not about potential users or any of that s.. In fact numbers are really irrelevant.
    One reason is because it was rightly pointed out and the whole project aims to provide the community with an entirely open source and independently operating alternative.

  14. Tux Kapono
    Member
    Posted 1 year ago #

    It'll free people to do a lot of good things, no question. Ning's proprietary system limits creativity. For our own purpose, we know it'll get more people to participate in their own physical communities if it was easier for them to login :) Kudos for helping the open source community be more effective.

  15. ivnus
    Member
    Posted 1 year ago #

    +1000

    I'm also interested in buddypress compatibility. Can't find an open source solution anywhere.

    Twitter login doesn't create an account when buddypress is active and email bouncer is turned on.

  16. Miled
    Member
    Plugin Author

    Posted 1 year ago #

    @ivnus, its already done deal. and also, in the current state and when it come to bp, wsl is barely able to display the widget where it should be and to auth users. so there is no point reporting issue related to that..

    and btw, I'm still waiting for the coffe :P

  17. rekabis
    Member
    Posted 1 year ago #

    bbPress vote here. I would *really* like it if it were compatible out of the box (haven't tried yet, but the default new user categories - different between the WordPress and bbPress sections - are what makes me think it won’t work right out of the box).

    Now, if you could confirm that a new user would be given both the WordPress and bbPress default groups automatically, that would probably be what makes it 99% compatible.

  18. Tux Kapono
    Member
    Posted 1 year ago #

    @Miled, a friendly inquiry re if this is still on the road map? Just checking to see if I should keep checking.

  19. Miled
    Member
    Plugin Author

    Posted 1 year ago #

    yea it is.. um just.. procrastinating

  20. Henry
    Member
    Posted 1 year ago #

    Miled - great to hear BuddyPress compatibility is on the roadmap. I've tried many social connect plugins none of which work fully with BuddyPress. My +1 here!

  21. Alex
    Member
    Posted 1 year ago #

    looking forward to the BuddyPress addition, thanks @Miled. Can you post in here when the new update is ready? I guess we'll get notified in the backend as well...

    And one more question, will wsl be compatible with WP + BP + bbPress combined :) ?

  22. ivnus
    Member
    Posted 1 year ago #

    Still brewing the coffee @Miled. Let me know if you need a tester.

  23. radioseara
    Member
    Posted 1 year ago #

    another vote here

  24. makbeta
    Member
    Posted 1 year ago #

    Another vote for Buddy Press support.
    I've recently coded a filter function to use wsl_image if Buddy Press returns default avatar. Will be more than happy to share the code upon request.

  25. yaydo
    Member
    Posted 1 year ago #

    @makbeta

    Yes, please share your code in this thread! Looking forward to using it on a production site currently in the works. Thank you ahead of time!

  26. Martin
    Member
    Posted 1 year ago #

    Just testing on my localhost BP install and first discovered Yahoo test just goes to a blank login page. BP 1.7.2

    Gets my vote for BP!

  27. Jet
    Member
    Posted 1 year ago #

    I am working on transforming my website at work and having a social network login is crucial to be compatible with BuddyPress and bbPress!
    Z

  28. makbeta
    Member
    Posted 1 year ago #

    here's the code I've used successfully to fix my issue:

    add_filter( 'bp_core_fetch_avatar', 'bfg_bp_core_fetch_avatar', 15, 2 );
    /**
     * bfg_bp_core_fetch_avatar()
     *
     * Modifieds the BuddyPress avatar with WP Social Login avatar if default avatar is rendered
     *
     *
     * @param string $bp_avatar Avatar image returned by BuddyPress
     * @param array $args Determine the output of this function
     * @return string Formatted HTML <img> element, or raw avatar URL based on $html arg
     */
    
    	function bfg_bp_core_fetch_avatar($bp_avatar, $args = '') {
    
    	 	$params = wp_parse_args( $args, array(
    			'item_id'    => false,
    			'object'     => $def_object, // user/group/blog/custom type (if you use filters)
    			'type'       => $def_type,   // thumb or full
    			'avatar_dir' => false,       // Specify a custom avatar directory for your object
    			'width'      => false,       // Custom width (int)
    			'height'     => false,       // Custom height (int)
    			'class'      => $def_class,  // Custom <img> class (string)
    			'css_id'     => false,       // Custom <img> ID (string)
    			'alt'        => '',    	     // Custom <img> alt (string)
    			'email'      => false,       // Pass the user email (for gravatar) to prevent querying the DB for it
    			'no_grav'    => false,       // If there is no avatar found, return false instead of a grav?
    			'html'       => true,        // Wrap the return img URL in <img />
    			'title'      => ''           // Custom <img> title (string)
    		) );
    		extract( $params, EXTR_SKIP );
    		//modify only user's avatars and
    		if(!empty ($bp_avatar) && $object == 'user' && get_option('wsl_settings_users_avatars')) {
    
    			if(empty($email) && !empty($item_id)) {
    				$email = get_userdata($item_id)->user_email;
    			}
    
    			if($item_id || $email) {
    
    				if(is_default_gravatar($email)) {
    					$user_thumbnail = get_user_meta ($item_id, 'wsl_user_image', true);
    
    				  if ($user_thumbnail !== false && strlen(trim($user_thumbnail)) > 0) {
    	          $user_thumbnail = preg_replace ('#src=([\'"])([^\\1]+)\\1#Ui', "src=\\1" . $user_thumbnail . "\\1", $bp_avatar);
    	          if (!is_ssl()) {
    							$user_thumbnail = str_replace('https', 'http', $user_thumbnail);
    						}
    						return $user_thumbnail;
    	        }
    				}
    
    			}
    		}
    
    		return $bp_avatar;
    
    	}
    
    	//given user e-mail tests if gravatar exits or a default image is rendered
    	//returns true if default image is going to be used, false if a valid gravatar image exists
    	function is_default_gravatar($email) {
    		// Craft a potential url and test its headers
    		$hash = md5(strtolower(trim($email)));
    		$uri = 'http://www.gravatar.com/avatar/' . $hash . '?d=404';
    		$headers = @get_headers($uri);
    		return !preg_match("|200|", $headers[0]);
    
    	}

    Hope this helps.

  29. Martin
    Member
    Posted 1 year ago #

    @makbeta
    I tried your functions.php snippet and it does seem to me to work.
    Default avatar is still being used, despite Social Login shows avatars from the likes of Facebook and Instagram.
    Are you using the latest BuddyPress or have any other thoughts why your code might not work?

  30. makbeta
    Member
    Posted 1 year ago #

    Martin,
    My code is running on the latest version of the BuddyPress and works without a hitch in my install.

    To debug your issues I would suggest first trying to see if the function is being called at all. Put print "I'm here" in bfg_bp_core_fetch_avatar().
    If the function is being called then I would jump to see what is_default_gravatar() returns on your user. If you site is secure you might want to modify the $url to start with https:// rather than http://

    Hope this helps to get you started.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.