MyBB Support

Need help customising Years of Service.

Submitted by Specific, , Thread ID: 24111

Thread Closed

RE: Need help customising Years of Service.

OP
This post was last modified: 19-11-2016, 05:22 PM by Specific
#7
19-11-2016, 05:18 PM
Faded Wrote:
Template Conditionals.

Yeah I already have that added, unless there's a setting after adding the plugin.

Ok the problem Im having now is that it shows the wrong status..

It's showing 6 months while my account is registered for over 2 years, so it should show the 2 years one instead.

Code:
<if $post['regdate']+(60*60*24*182) <= TIME_NOW then><div class="time.6.months" style="margin-top: 1px;color: gold;">6 Months of Service</div>
<elseif $post['regdate']+(60*60*24*365) <= TIME_NOW then><div class="time.12.months" style="margin-top: 1px;color: purple;">One Year of Service</div>
<elseif $post['regdate']+(60*60*24*730) <= TIME_NOW then><div class="time.24.months" style="margin-top: 1px;color: red;">Two Years of Service</div></if>

Anyone know what Im doing wrong here?

Users browsing this thread: 3 Guest(s)