![]() |
passing a variable to style templates
how do i create a new variable that can be used in the style templates?
eg, suppose in php i have: $x=time(); and in a postbit template i have <tr><td>the unix time is $x Where do i define the $x variable so that the template can use it? |
that depends on where you want the variable to show in vbulletin. You would need to add the variable into a plugin. For the postbit you would use the 'postbit_display_start' plugin.
|
you could use:
<if condition="$timenow=TIMENOW"> UNIX Timestamp: $timenow </if> However you cant use most functions in if conditions. |
thanks to both of you
|
All times are GMT. The time now is 11:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|