![]() |
it work on local host but not showing years/months on running board.
what may be the issue? i use following code for months:
Following code for years:
Work fine on local host but not on running board. Below code is also not working. <if $post['regdate']+(60*60*24*30) <= TIME_NOW then>1 month services <elseif $post['regdate']+(60*60*24*330) <= TIME_NOW then>11 months services <else/></if> (2016-01-09, 06:37 AM)Dr_The_One Wrote: it work on local host but not showing years/months on running board. Did you remember to install the plugin on the running board as well?
How to show 0 years,1/2 year, 1 1/2 years of service?
any idea?
This goes to the postbit
<if $post['regdate']+(60*60*24*182) <= TIME_NOW then><div class="postbit-time postbit-time-halfyear" style="margin-top: 3px;">1/2 Year of Service</div></if> <if $post['regdate']+(60*60*24*365) <= TIME_NOW then><div class="postbit-time postbit-time-halfyear" style="margin-top: 3px;color: #85AE31;">One Year of Service</div></if> <if $post['regdate']+(60*60*24*700) <= TIME_NOW then><div class="postbit-time postbit-time-halfyear" style="margin-top: 3px;color: red;">Two Years of Service</div></span></if> </div> CSS: .postbit-time-halfyear { color: #2574A9 } .postbit-time { width: 140px; padding: 4px 0; text-align: center; border-radius: 3px; font-size: 11px; text-shadow: none; margin: 0 auto; font-weight: 500; background: #181818 } This was coded by me, Dont copy it to other forums. (2016-08-21, 05:16 PM)Cryptexinside Wrote: This goes to the postbit Yeah, don't copy that into other forums. He's using "postbit-time" and "postbit-time-halfyear" (two classes) to style all but at the same time is putting raw css in the same label (style="margin-top: 3px;color: red;"). ------------------------------ Instead, you can copy this code in what forum you want:
By the way, this was coded by me using CSS, an open source language that describes the style of an HTML document. I don't give support on PM.
@up Well, Yeah he dont need to make .postbit-time-halfyear
he can edit the color in the div this will make his work easier since he just need the .postbit-time
I love how the second example is what I did for another MyBB forum.
The signature does not exisit.
Can someone help me here? I have it working thanks to @eNvy
But now it's showing like this: How do I get rid of the first one, when the second one is due to kick in? |
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)