The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Calling these two functions within template?
Hi,
I have a variable in my "results_bit" like this: $row[column_2]; It's a unix timestamp, so I'd like to format it into a time/date. I know I can do it in Smarty so I imagine I can do it with VBulletin. The other function I request is to get the username string from this variable: $row[user_id]; Is this possible? Thanks! |
#2
|
||||
|
||||
You may want to bookmark the API - http://members.vbulletin.com/api/
Look up vbdate for your date/time (also, look for examples of it's use in the code). For the username, you may want to fetch it directly in your query (just JOIN to the user table if you need to). |
#3
|
||||
|
||||
Remember that the admin has specified a timestamp style they want to use - so use the vBulletin option variable for the date output style.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|