years of service support 09-12-2017, 10:00 PM
#1
I have this code placed inside my postbit_classic..
One problem though it's showing 0 years of service on everyones user info, someone told me to add if statement but how would I be able to do that?
Thanks.
Code:
<setvar years>floor((TIME_NOW-$post['regdate'])/(60*60*24*365))</setvar>
<div class="years-tags yearly-tags-{$GLOBALS['tplvars']['years']}">{$GLOBALS['tplvars']['years']} Years of Service</div>
One problem though it's showing 0 years of service on everyones user info, someone told me to add if statement but how would I be able to do that?
Thanks.