PDA

View Full Version : Notifcation Condition?


TheRealso0sick
06-25-2012, 12:10 PM
Hey,
does anyone know the condition i can use in a template wether
a user has new notifications or not?

What i want to achive is smth like a facebook notificaition.

http://img221.imageshack.us/img221/2817/201206251508.png

With the current variable ($notifications_total)
it would only show a "0" if there are no notifications.
But i want it to not display at all.


Can anyone help me out?

kh99
06-25-2012, 01:56 PM
You should be able to use something like this:

<if condition="$notifications_total">
// show your notification count
<else />
// user has no notifications
</if>

TheRealso0sick
06-25-2012, 02:30 PM
Yes, thanks
I've already figured it out
That's what i use:

<if condition="$show['notifications'] AND $show['popups']">
..
<else />
..
</if>

I don't know why but without the

AND $show['popups']

it didn't work.

Ty for helping out