The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User has not posted for x days
HI,
I see that the notcies system allows you to show a notice to someone who hasnt posted in X days. I am looking for somethig similar as a template conditional. So something like: <in condition="user has not posted in x days">fu</if> Is something like this is possible? --------------- Added [DATE]1260284142[/DATE] at [TIME]1260284142[/TIME] --------------- OK I see that there is a 'lastpost' field in the user table... so this is obviously possible using TIMENOW but I need help with the conditional syntax please. --------------- Added [DATE]1260285070[/DATE] at [TIME]1260285070[/TIME] --------------- <if condition="$bbuserinfo['lastpost'] > (TIMENOW - 86400)"> When I try that I get an error saving the templates saying the > is a function that can be used in a confditional.... I think i have the "> <" signs mixed up but when i try "<" it doesnt seem to work |
#2
|
||||
|
||||
This article should help you. Take a look at it and see if you can figure it out now - Perform simple calculations inside templates! (If you can't post what you last tried and I'll see what I can do.)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|