The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am writing some PHP that will only allow access to a certain modification on certain days depending on the server's timezone. the code is ready and implements perfect. Even tho i have to compensate for the difference in timezones, the server is located in a different time zone.
But some of the forum users are from a different time zone. i know i can add multiple || && to the booleans but, is there not a VB variable that controls various functions that is set by the timezone set by the user in the forum control panel? |
#2
|
||||
|
||||
![]() PHP Code:
PHP Code:
|
#3
|
||||
|
||||
![]()
Or:
Code:
$userinfo['tzoffset'] = $userinfo['timezoneoffset']; if ($userinfo['dstonoff']) { // DST is on, add an hour $userinfo['tzoffset']++; } |
#4
|
|||
|
|||
![]()
well i try that , but dosen't work for me i use vbulleting 3.8.3 , a may be the reason ??
please help |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|