MyBB Support

years of service support

Submitted by Tutti Frutti, , Thread ID: 46643

Thread Closed
11-09-2017, 10:55 PM
#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.

Users browsing this thread: 3 Guest(s)