The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template if conditions
I'm a bit stuck on a conditional statement - basically, I've got an array of UNIX timestamps that I want to compare with the current UNIX timestamp - generated from time():
The two values I want to compare are: Code:
{vb:raw current_timestamp} {vb:raw times.this_time} Code:
<vb:if condition="{vb:number current_timestamp} < {vb:number times.this_time}"> ... </vb:if> Quote:
|
#2
|
||||
|
||||
The variable syntax in an if statement in vb4 is the same as for vb3. So something like:
HTML Code:
<vb:if condition="$current_timestamp < $times['this_time']"> ... </vb:if> |
#3
|
|||
|
|||
Ah ok, thanks - will try that this evening
This is my first attempt at creating extra pages/apps for vB - the forum on my site has always been standalone from the rest of the site, which is WordPress-based. Not for long, though... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|