vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   End-User Options - Social Login - Login/Register with 35+ Social Networks (https://vborg.vbsupport.ru/showthread.php?t=319606)

aseapeople 01-17-2020 08:51 AM

Does this work on 5.5.6?

mdawg 05-08-2020 05:03 PM

I believe this stopped working at some point, at least, with 5.6.1 I see no trace of its login.

mdawg 05-19-2020 12:22 AM

The newest OneAll version 2.5.0 works with a code modification, in 5.6.1

WyldFyre 05-22-2020 10:32 AM

Quote:

Originally Posted by mdawg (Post 2602997)
The newest OneAll version 2.5.0 works with a code modification, in 5.6.1

What code modification?

mdawg 06-29-2020 04:14 AM

Use OneAll version 2.5.1 and apply this fix, if needed:

go into create_user() function into core/packages/oneallsociallogin/include/toolbox.php line 162, you can remove this line : $user->set ('logintype', 'fb');

(This allows the plugin to work for a NEW Google user (versus only one who has already registered for the forum via Google)).

This fix may already be applied to newer versions of OneAll.

Ashlar217 06-17-2022 01:01 AM

Installed without error on 5.6.7

mdawg 09-21-2023 02:47 PM

Still using on vb 5.7.5

One issue I do have is that whether through sign up via this mod or vbulletin's own social media registration process, the "Display Name" ends up blank which leads to the User Name not being displayed in posts.

https://i.imgur.com/nDTAfzYl.jpg

Also registration via social media doesn't seem to populate the Country / Location fields.

OneAll wrote to me as follows, I have not had a chance to check this code yet:

About lack of country / location, that is normal because Facebook is not sending them to your website so you will not be able to get them. You can use our node "loginLocation" by editing our toolbox.php plugin file into function called extract_social_network_profile line 769.
You can get the location using this :

$data['user_country'] = !empty($identity->loginLocation->country->short) ? $identity->loginLocation->country->short : '';
Then go into create_user function into same file. To add Display name, I think you could add this line at line 161.

$user->set('displayname', $vbulletin->db->escape_string($username));
I use the same value than username but feel free to use the field that you want. You can use all values saved into "$data" array from extract_social_network_profile function for example if you want to use the formatted name :

$user->set('displayname', $vbulletin->db->escape_string($data['user_formatted_name']));
And for location, I guess you can add this line still at line 161 (do not forget to add the line into extract_social_network_profile function) :

$user->set('location', $vbulletin->db->escape_string($data['user_country']));


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete