![]() |
Template condition to calculate days since last post
Is it possible to calculate the amount of days since the last post using a template conditional?
The reason I want to do this is to put a warning message next to the reply button for posts older than a year. This is for VB 3.8. Thanks |
You could try
Code:
<if condition="$thread['lastpost'] < (TIMENOW - (365 * 86400))"> ETA...I tried it in "threadbit". Also, you might also want to enclose it in another if to check to make sure that $thread['lastpost'] is set, so that in case it isn't the message won't show up. |
Thanks, will give it a try!
|
All times are GMT. The time now is 12:37 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:
|