MyBB Community Forums
Warning level in postbit - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Warning level in postbit (/thread-192973.html)



Warning level in postbit - Eldenroot - 2016-05-14

Hi,

I need to show warning level in postbit only when it is higher than 0 %. If there is no warning level -> hide it. Is that possible? Thank you!


RE: Warning level in postbit - Corey H - 2016-05-14

You should be able to use Template Conditionals to accomplish this.


RE: Warning level in postbit - Eldenroot - 2016-05-14

I was thinking about this but I am not sure how to


RE: Warning level in postbit - .m. - 2016-05-14

^ template => postbit_warninglevel
<if intval($post['warningpoints']) > 0 then><br />{$lang->postbit_warning_level} <a href="{$warning_link}">{$warning_level}</a></if>



RE: Warning level in postbit - Eldenroot - 2016-05-14

Thank you, works fine!