The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
|||
|
|||
![]()
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.
|
#3
|
|||
|
|||
![]()
you could use:
<if condition="$timenow=TIMENOW"> UNIX Timestamp: $timenow </if> However you cant use most functions in if conditions. |
#4
|
|||
|
|||
![]()
thanks to both of you
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|