The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I am not sure how I can calculate the difference between current date and join date in a template Something like: <if condition="$post['joindate'] AND $currentdate AND Days($currentdate) - Days($post['joindate']) > 30)"> Do something </if> Anyone? |
#2
|
||||
|
||||
![]()
I don't think you can do it in the template because the dates are already made to 'look nice'. You can do it in the php code before the dates are reformatted for output though (when it is still in it's unix timecode format).
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|