D&D Forums - MyBB Plugins & Themes
how to change postbit star colors - Printable Version

+- D&D Forums - MyBB Plugins & Themes (https://developement.design/forum)
+-- Forum: MyBB Ressources (https://developement.design/forum/forumdisplay.php?fid=5)
+--- Forum: Premium MyBB Themes (https://developement.design/forum/forumdisplay.php?fid=9)
+---- Forum: Support (https://developement.design/forum/forumdisplay.php?fid=18)
+---- Thread: how to change postbit star colors (/showthread.php?tid=962)



how to change postbit star colors - kuttysoft - 11-26-2019

how to change postbit star colors ... for  separate users groups  Like this on screenshot 


[Image: Screenshot_336.png]


RE: how to change postbit star colors - AmazOuz - 11-27-2019

Can you give me your postbit template ?


RE: how to change postbit star colors - kuttysoft - 11-27-2019

i want add there warning level also sir .. in our theme that's missing

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<div class="post classic {$unapproved_shade}" style="{$post_visibility}" id="post_{$post['pid']}">
<div class="post_flexible">
<div class="post_author scaleimages">
<center><strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}{$post['authorchange']}</center>
{$post['useravatar']}<br>
<div class="author_information">

<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['karmastar']}
{$post['groupimage']}{$post['ougc_agi']}
</span>
</div>
<div class="author_statistics">
{$post['user_details']}{$post['newpoints_postbit']}<br />{$post['champions']}<br/>Best Answers : {$post['countsba']} {$post['im']}{$post['usercountry']}{$post['ougc_awards']}{$post['attached_accounts']}

</div>
<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>
{$post['achivementspostbit']}
</div>

<div class="{$post['ts_class']}">
<div class="post_head">
{$post['badge']}
{$post['posturl']}
{$post['icon']}
<span class="post_date"><i class="fa fa-clock-o"></i> {$post['postdate']} <span class="post_edit" id="edited_by_{$post['pid']}">{$post['editedmsg']}{$post['edithistory']}</span></span>
{$post['subject_extra']}
</div>
<div class="post_body scaleimages{$post['abp_solveit_css']}" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']} {$post['extendedpolls']}
{$post['signature']}
<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</div>
</div>
{$post['myreactions']}<div class="post_controls">
<div class="postbit_buttons author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}{$post['ougc_feedback_button']}{$post['button_ba']}{$post['button_del_ba']}
</div>
<div class="postbit_buttons post_management_buttons float_right">
{$post['button_solveit']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quickrestore']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_mention']}{$post['button_report']}{$post['button_warn']}{$post['button_purgespammer']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</div>
</div>{myadvertisements[zone_3]}

[Image: Screenshot_349.png]
[Image: Screenshot_350.png]


Warning Level & Total Feedback (ougc feedback plugin) both are show in default theme

please add both in my template too

Thank You


RE: how to change postbit star colors - AmazOuz - 12-21-2019

As i don't know how OUGC feedback plugin works (i don't have enough time to look at details right now), i cannot give a solution now.
For warning stuff i'm replying here : https://developement.design/forum/Thread-warning-not-showing-in-postbit-extended-theme
For stars colors for each group, i guess it's not a default functionality in MyBB, perhaps i will write a tutorial about it when i have time Wink


RE: how to change postbit star colors - kuttysoft - 12-22-2019

(12-21-2019, 02:37 AM)AmazOuz Wrote: As i don't know how OUGC feedback plugin works (i don't have enough time to look at details right now), i cannot give a solution now.
For warning stuff i'm replying here : https://developement.design/forum/Thread-warning-not-showing-in-postbit-extended-theme
For stars colors for each group, i guess it's not a default functionality in MyBB, perhaps i will write a tutorial about it when i have time Wink

ok sir hope u give us tut for different color stars