Not Solved <blank> years of service
#16
Not Solved
(2016-08-21, 05:16 PM)Cryptexinside Wrote: 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.

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:

<if $post['regdate']+(60*60*24*182) <= TIME_NOW then><div class="postbit-time-halfyear">Half year of service</div></if>

.postbit-time-halfyear {
width: 140px;
font-size: 11px;
text-align: center;
margin: 3px auto 0px auto;
padding: 4px 0px;
background: #181818;
border-radius: 3px;
}

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.
Reply


Messages In This Thread
<blank> years of service - by LucidiousXIV - 2015-07-19, 08:02 AM
RE: <blank> years of service - by Sazze - 2015-07-19, 08:15 AM
RE: <blank> years of service - by Krytic - 2015-07-19, 09:10 AM
RE: <blank> years of service - by LucidiousXIV - 2015-07-19, 05:17 PM
RE: <blank> years of service - by Destroy666 - 2015-07-20, 01:04 AM
RE: <blank> years of service - by LucidiousXIV - 2015-07-20, 02:16 AM
RE: <blank> years of service - by Krytic - 2015-07-28, 08:50 AM
RE: <blank> years of service - by luciferakasatan - 2015-11-12, 09:41 PM
RE: <blank> years of service - by Zeeks - 2016-01-08, 10:44 AM
RE: <blank> years of service - by Corey H - 2016-01-08, 12:47 PM
RE: <blank> years of service - by .m. - 2016-01-08, 11:08 AM
RE: <blank> years of service - by Dr_The_One - 2016-01-09, 06:37 AM
RE: <blank> years of service - by Corey H - 2016-01-09, 12:38 PM
RE: <blank> years of service - by Dr_The_One - 2016-08-21, 03:08 AM
RE: <blank> years of service - by Cryptexinside - 2016-08-21, 05:16 PM
RE: <blank> years of service - by eNvy - 2016-08-21, 07:46 PM
RE: <blank> years of service - by Cryptexinside - 2016-08-21, 09:16 PM
RE: <blank> years of service - by Nasyr - 2016-11-22, 10:45 PM
RE: <blank> years of service - by DaNnIbOi - 2017-02-13, 10:10 PM
RE: <blank> years of service - by Corey H - 2017-02-13, 10:34 PM
RE: <blank> years of service - by DaNnIbOi - 2017-02-14, 06:09 PM
RE: <blank> years of service - by SvePu - 2017-02-14, 06:24 PM
RE: <blank> years of service - by DaNnIbOi - 2017-02-14, 06:35 PM
RE: <blank> years of service - by SvePu - 2017-02-14, 07:24 PM
RE: <blank> years of service - by DaNnIbOi - 2017-02-14, 07:41 PM
RE: <blank> years of service - by Livewire - 2017-09-09, 08:06 PM
RE: <blank> years of service - by User 120799 - 2018-12-19, 10:05 PM
RE: <blank> years of service - by DiegoPino - 2020-01-16, 11:12 PM
RE: <blank> years of service - by Kiddo Monster - 2020-06-08, 07:25 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)