[For 1.8] years of service in Postbit mybb without plugin
#1
Preview 

[Image: Screenshot-85.png]

Tutorial:
  • Go to acp>Home » Template Sets » Your theme Template » Postbit
  • now copy this code 
    <div class="user-service user-service--postbit">
    	<if $post['regdate']+(60*60*24*1095) <= TIME_NOW then><span style="color: #FF0040;">4 Years of Service</span>
    	<elseif $post['regdate']+(60*60*24*1095) <= TIME_NOW then><span style="color: #FF0080;">3 Years</span>
    	<elseif $post['regdate']+(60*60*24*730) <= TIME_NOW then><span  style="color: #FF00BF;">2 Years</span>
    	<elseif $post['regdate']+(60*60*24*365) <= TIME_NOW then><span  style="color: #FF00FF;">1 Year</span>
    	<elseif $post['regdate']+(60*60*24*330) <= TIME_NOW then><span  style="color: #0080FF;">11 Months</span>
    	<elseif $post['regdate']+(60*60*24*300) <= TIME_NOW then><span  style="color: #00FFFF;">10 Months</span>
    	<elseif $post['regdate']+(60*60*24*270) <= TIME_NOW then><span  style="color: #00FF80;">9 Months</span>
    	<elseif $post['regdate']+(60*60*24*240) <= TIME_NOW then><span  style="color: #00FF00;">8 Months</span>
    	<elseif $post['regdate']+(60*60*24*210) <= TIME_NOW then><span  style="color: #FF4000;">7 Months</span>
    	<elseif $post['regdate']+(60*60*24*180) <= TIME_NOW then><span  style="color: #FF8000;">6 Months</span>
    	<elseif $post['regdate']+(60*60*24*150) <= TIME_NOW then><span  style="color: #FFBF00;">5 Months</span>
    	<elseif $post['regdate']+(60*60*24*120) <= TIME_NOW then><span  style="color: #FFBF00;">4 Months</span>
    	<elseif $post['regdate']+(60*60*24*90) <= TIME_NOW then><span style="color: #aaa;">3 Months</span>
    	<elseif $post['regdate']+(60*60*24*60) <= TIME_NOW then><span  style="color: #aaa;">2 Months</span>
    	<elseif $post['regdate']+(60*60*24*30) <= TIME_NOW then><span  style="color: #aaa;">1 Month</span>
    	<elseif $post['regdate']+(60*60*24*21) <= TIME_NOW then><span  style="color: #aaa;">3 Weeks</span>
    	<elseif $post['regdate']+(60*60*24*14) <= TIME_NOW then><span  style="color: #aaa;">2 Weeks</span>
    	<elseif $post['regdate']+(60*60*24*7) <= TIME_NOW then><span  style="color: #aaa;">1 Week</span>
    	<elseif $post['regdate']+(60*60*24*6) <= TIME_NOW then><span  style="color: #aaa;">6 days</span>
    	<elseif $post['regdate']+(60*60*24*5) <= TIME_NOW then><span  style="color: #aaa;">5 days</span>
    	<elseif $post['regdate']+(60*60*24*4) <= TIME_NOW then><span  style="color: #aaa;">4 days</span>
    	<elseif $post['regdate']+(60*60*24*3) <= TIME_NOW then><span  style="color: #aaa;">3 days</span>
    	<elseif $post['regdate']+(60*60*24*2) <= TIME_NOW then><span  style="color: #aaa;">2 days</span>
    	<elseif $post['regdate']+(60*60*24*1) <= TIME_NOW then><span  style="color: #aaa;">1 day</span>
    	<elseif $post['regdate']+(60*60*24*0) <= TIME_NOW then><span  style="color: #aaa;">Few hours</span></if>
    	</div>

  • then go to Home » Themes » Your theme » Add Stylesheet 
  • name years of service.css
  • write my own content
  • paste this css
  • .user-service {
        padding: 5px 20px;
        color: #bcbcbc;
        text-align: center;
        border-radius: 3px;
        font-size: 11px;
        text-shadow: none;
        border: 0px;
        text-transform: uppercase;
        margin: 0 auto;
        font-weight: 600;
        background: #1b1b1b;
        border-width: 2px;
        display: table;
        width: 90%
    }
    
    .user-service--postbit {
        margin-left: auto;
        margin-right: auto
    }
    
    .user-service span {
        color: Snow;
        font-weight: bold;
        font-size: 12px
    }
    



if you need in profile let me know 
Regards,
Xferno
XferXferno

My Services
Telegram @Xferno

[Image: standard.gif]
Reply
#2
These codes do not work mybb
Reply
#3
Requires ZingaBurga's Template Conditionals plugin.
Reply
#4
(2025-02-27, 09:00 PM)Snl Wrote: These codes do not work mybb
http://mybbhacks.zingaburga.com/showthread.php?tid=464 uae this plugin

My Services
Telegram @Xferno

[Image: standard.gif]
Reply
#5
(2025-02-28, 12:47 PM)Xferno Wrote:
(2025-02-27, 09:00 PM)Snl Wrote: These codes do not work mybb
http://mybbhacks.zingaburga.com/showthread.php?tid=464 uae this plugin


I have no idea how to add this plugin.
Reply
#6
(2025-03-01, 08:14 PM)Snl Wrote:
(2025-02-28, 12:47 PM)Xferno Wrote:
(2025-02-27, 09:00 PM)Snl Wrote: These codes do not work mybb
http://mybbhacks.zingaburga.com/showthread.php?tid=464 uae this plugin


I have no idea how to add this plugin.

download it upload the .php file on inc/plugin/ folder then go to to plugins from admin panel and install template condition plugin

My Services
Telegram @Xferno

[Image: standard.gif]
Reply
#7
WoW..... thanks you for this guide <3
Reply
#8
(2025-04-21, 01:22 AM)alberx Wrote: WoW..... thanks you for this guide <3

thanks for your kind word

My Services
Telegram @Xferno

[Image: standard.gif]
Reply
#9
(2025-02-28, 12:47 PM)Xferno Wrote:
(2025-02-27, 09:00 PM)Snl Wrote: These codes do not work mybb
http://mybbhacks.zingaburga.com/showthread.php?tid=464 uae this plugin

Debo copiar las casillas de los HTML en un documento txt y eso o como deberia hacerlo? aunque creo que en la pagina de mybb oficial es decir en la zona de descargas debes haber uno mas actualizado supongo?. Pero debo copiar todas las casillas de este enlace.. las que salen en el primer post?
Reply
#10
This user has been denied support. This user has been denied support.
Thankyou
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)