The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I want to make a new page which shows news, .. however I would like to format the time from my queries based on the offset the users put in their profile.
take this code for example: PHP Code:
my time field is stored as a datetime type, .. i can change it to integer14 and store the unix timestamp if that is necessary. thanks |
#2
|
||||
|
||||
![]()
Here's what I did for my users online today part of forumhome and it seems to work great for each user's time offset.
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
![]()
thanks a lot boofoo =) your help is much appreciated!
|
#4
|
|||
|
|||
![]()
err wait, .. that does help me figure out how to display the user's current time .. and query against that, .. but when i display my news, it will always display the same news articles. there will be no 'where' clause.
when i loop through the news, i need to display the time as the user's current time. .. heh and as i think about it, would i do something like this? PHP Code:
|
#5
|
|||
|
|||
![]()
=/ now that i tried it, i can't figure out where vbmktime() is located.
i'm including global.php, do i need to include something else for that function? |
#6
|
||||
|
||||
![]()
I'm sorry, I forgot to add this:
PHP Code:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|