(2017-02-13, 10:34 PM)Wage Wrote: Show us the code that you're using.
This is in my postbit_classic:
<if $post['regdate']+(60*60*24*30) <= TIME_NOW then><div class="postbit-time-1month">1 month on MMH</div></if>
<if $post['regdate']+(60*60*24*61) <= TIME_NOW then><div class="postbit-time-2month">2 months on MMH</div></if>
<if $post['regdate']+(60*60*24*182) <= TIME_NOW then><div class="postbit-time-halfyear">1/2 year on MMH</div></if>
<if $post['regdate']+(60*60*24*365) <= TIME_NOW then><div class="postbit-time-year">1 year on MMH</div></if>
And this is in my global.css on my theme:
.postbit-time-1month {
width: 140px;
font-size: 11px;
text-align: center;
margin: 3px auto 0px auto;
padding: 4px 0px;
background: #181818;
border-radius: 3px;
}
.postbit-time-2month {
width: 140px;
font-size: 11px;
text-align: center;
margin: 3px auto 0px auto;
padding: 4px 0px;
background: #181818;
border-radius: 3px;
}
.postbit-time-halfyear {
width: 140px;
font-size: 11px;
text-align: center;
margin: 3px auto 0px auto;
padding: 4px 0px;
background: #181818;
border-radius: 3px;
}
.postbit-time-year {
width: 140px;
font-size: 11px;
text-align: center;
margin: 3px auto 0px auto;
padding: 4px 0px;
background: #181818;
border-radius: 3px;
}