I have this code placed inside my postbit_classic..
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?
Ugh you coul've said you don't know squat about php beforehand. Replace
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>
KituKatu Wrote: Ugh you coul've said you don't know squat about php beforehand. Replace
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>