MyBB Community Forums

Full Version: Tweak in MyAlerts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey

I've been and trying to tweak MyAlerts as much as possible but my knowledge is now a bit limited.

As the attachment follows i've add a notification bell icon with the {$mybb->user['unreadAlerts']} tag to count how many alerts the user have.

What i wanted is that if that count is 0 then it would hide the 0 and if the number is something else than 0 add a rounded orange background to the number

Also kinda wanted that icon hidden from guest members.
Is that possible to do?


Much appreciated
techinbermudas.com

Well i've partially did it following this thread:

https://community.mybb.com/post-1357653.html
<if $mybb->user['unreadAlerts'] > 0 then>
drop your code here 
</if>