PDA

View Full Version : Remove "zero notifications"


EWGF
02 Nov 2008, 14:01
This tutorial reduces the number of notifications in your navbar. When your only notification is one unread personal message, you will also see that you have zero friend requests, zero visitor messages, etcetera. With this particular situation, you will only see one unread personal message after this tutorial.

Go to Style - Navigation/Breadcrumb templates - navbar_notifications_menubit

Add at the beginning:
<if condition="$notification['total'] > 0">

Add at the end:
</if>

Although not necessary, you could remove the other if's in this template as they aren't needed. Please click "install" if you have find this tutorial usefull.

Princeton
02 Nov 2008, 20:12
moved to articles

gutelaune
09 Jun 2009, 17:49
thanks :)

AMcKay
13 Jun 2010, 23:12
This is brilliant. Should be a standard feature. And to think that it actually requires LESS conditionals to be evaluated than the default.