The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello,
In showthread template I would like to add a message to all threads that are older than X days, can anybody point me in the right direction for this? |
|
#2
|
|||
|
|||
|
You'd need something like this in a template (e.g. showthread)
Code:
<if condition="$thread['dateline'] < (TIMENOW - (28 * 24 * 60 * 60))">
YOUR MESSAGE HERE
</if>
You may need to try $threadinfo if $thread does not work. |
|
#3
|
|||
|
|||
|
Unfortunately, when trying that I get the following error:
Quote:
After a little fiddling the following works: <if condition="$thread['dateline'] < TIMENOW - 2419200"> <p>test - this should only display in threads older than a month</p> </if> The VB parser obviously doesnt like the (x * y * z) part |
![]() |
|
|