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. And thank you for the congratulations. 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? Last question, I figured out that to have it show up on the forumhome, I need to put it in the index.php file. Can you tell me where it would need to go in there, please? Or is there a way to include it in the timezone variable?
|
#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. I'm not explaining myself very well. I don't want all of the date and times like that, only for the forumhome timezones that are also at the bottom of each page. The Forums and Threads listings would be too long with all of that.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|