The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
oh, congratulations, if i understand that right
![]() hmm, you have to use the vbdate function and then just use the normal datefunction syntax for it, it'll automatically checks the timezone of a user and so on.. |
#12
|
||||
|
||||
![]() Quote:
You understood ir tight. Twins boys. ![]() Quote:
Code:
$post['localtime'] = date($timeformat, time()+($post['timezoneoffset']-$timeoffset)*3600); $post['localdate'] = date($dateformat, time()+($post['timezoneoffset']-$timeoffset)*3600); $post['localday'] = day($dayformat, time()+($post['timezoneoffset']-$timeoffset)*3600); ![]() |
#13
|
||||
|
||||
![]()
things you want to show up in every post belong to functions.php
section getpostbit ![]() |
#14
|
||||
|
||||
![]()
Is the code above correct for getting the day? Putting it there won't work for the forumhome page though, will it?
|
#15
|
||||
|
||||
![]()
$post['localday'] = date("D", time()+($post['timezoneoffset']-$timeoffset)*3600);
would be correct for displaying for Example "Sun" |
#16
|
||||
|
||||
![]()
Ahhh, ok, I see now. The D is just the php code for how you want the day to show up. That's pretty simple. I should have known that one. See what happens when you are away too long?
![]() |
#17
|
||||
|
||||
![]()
as you don't need it anywhere else, jsut put it before this line:
PHP Code:
|
#18
|
||||
|
||||
![]()
I'd like to be bale to do it globally for all of the timezone variables on all of the pages. Can it be done that way?
|
#19
|
||||
|
||||
![]()
you can just change the standart date/time format in vb-options for that...
|
#20
|
||||
|
||||
![]()
Sorry about this.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|