Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


years of service support filter_list
Author
Message
years of service support #1
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?

Thanks.

Reply







Users browsing this thread: 1 Guest(s)