The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New users registered with FB connect don't get the set timezone
Hi~
I set the default timezone in admincp, however for those users who register via Facebook Connect (with auto-registration enabled) their timezones are not set correctly (still use GMT instead of the timezone set in admincp). Anyone knows how to correct it? Thanks. Joe |
#2
|
||||
|
||||
The user may just go to their Settings > General Settings page and set it correctly.
|
#3
|
|||
|
|||
Thanks Lynne
But I am looking to correct this at my end instead of asking users to do it. |
#4
|
||||
|
||||
I don't know that you will be able to do this easily. I'm not sure if facebook passes timezone information over to your site when they use it to register.
|
#5
|
|||
|
|||
No, I don't need to use Facebook to pass timezone information. I just want to use the timezone I set in admincp even though the user is registered through Facebook Connect.
|
#6
|
|||
|
|||
You could try this: create a plugin using hook fb_auto_register and this code:
Code:
if (!isset($info['timezone'])) { $userdata->set('timezoneoffset', $vbulletin->options['timeoffset']); } But I have no way to test so it's a bit of a guess. |
Благодарность от: | ||
joehuang |
#7
|
|||
|
|||
Quote:
Thanks, mate. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|