2019-06-27, 11:04 PM
(2019-05-30, 12:52 PM)Serpius Wrote: [ -> ](2019-05-10, 06:58 AM)FaridAzhar777 Wrote: [ -> ]
Required
- Template Conditionals [Download]
<div class="smalltext" style="background: #212121;padding: 7px;margin: 5px 0;"> <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 of Service</span> <elseif $post['regdate']+(60*60*24*730) <= TIME_NOW then><span style="color: #FF00BF;">2 Years of Service</span> <elseif $post['regdate']+(60*60*24*365) <= TIME_NOW then><span style="color: #FF00FF;">1 Year of Service</span> <elseif $post['regdate']+(60*60*24*330) <= TIME_NOW then><span style="color: #0080FF;">11 Months of Service</span> <elseif $post['regdate']+(60*60*24*300) <= TIME_NOW then><span style="color: #00FFFF;">10 Months of Service</span> <elseif $post['regdate']+(60*60*24*270) <= TIME_NOW then><span style="color: #00FF80;">9 Months of Service</span> <elseif $post['regdate']+(60*60*24*240) <= TIME_NOW then><span style="color: #00FF00;">8 Months of Service</span> <elseif $post['regdate']+(60*60*24*210) <= TIME_NOW then><span style="color: #FF4000;">7 Months of Service</span> <elseif $post['regdate']+(60*60*24*180) <= TIME_NOW then><span style="color: #FF8000;">6 Months of Service</span> <elseif $post['regdate']+(60*60*24*150) <= TIME_NOW then><span style="color: #FFBF00;">5 Months of Service</span> <elseif $post['regdate']+(60*60*24*120) <= TIME_NOW then><span style="color: #FFFF00;">4 Months of Service</span> <elseif $post['regdate']+(60*60*24*90) <= TIME_NOW then><span style="color: #F4FA58;">3 Months of Service</span> <elseif $post['regdate']+(60*60*24*60) <= TIME_NOW then><span style="color: #D8D8D8;">2 Months of Service</span> <elseif $post['regdate']+(60*60*24*30) <= TIME_NOW then><span style="color: #848484;">1 Month of Service</span> <elseif $post['regdate']+(60*60*24*0) <= TIME_NOW then><span style="color: #848484;">Less Than a Month</span></if> </div>
Tested on v1.8.20
Demo: https://forum.sinfulsite.com/thread-1169-post-4032.html
This tutorial is lacking a few steps.
You did not indicate WHERE that code is supposed to go to. No one has any idea where that code goes.
You did not indicate HOW someone can change the colors of the postbit fonts.
You did not indicate HOW to change the font styling to something different if someone prefers a different default font styling of their theme.
Those items needs to be explained in detail.
Take Crazycat's idea and make this a plugin. You can add the plugin in the MyBB 'Extend' section for everyone to view and download.
Why would he need to tell you where to place it. Everyone has a different postbit template. He gave you the full element, you just paste it in your desired spot in the postbit.