Jump to the post that solved this thread.
Solved: 6 Years, 1 Month, 1 Week ago Index widgets & Private Message system problem.
#10
Solved: 6 Years, 1 Month, 1 Week ago
I use template conditionals for this;

 <a href="{$mybb->settings['bburl']}/private.php">Private Messages &nbsp; <span class="upm badge"><if ($mybb->user['pms_unread'])>0 then>{$mybb->user['pms_unread']}<else>0</if></span></a>

Though I guess CSS might do it, like so:
 <a href="{$mybb->settings['bburl']}/private.php">Private Messages &nbsp; <span class="pm_count pm_count_{$mybb->user['pms_unread']}">{$mybb->user['pms_unread']}</span></a>

Then in your css, add two classes: pm_count and pm_count_0. make sure that pm_count_0 is AFTER pm_count in the css.

pm_count_0 is the greyed out, no pms css. pm_count is the red. Then it will work.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Index widgets & Private Message system problem. - by Leefish - 2015-04-03, 02:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)