PDA

View Full Version : About PM notification condition


Gripi
01-07-2013, 06:07 AM
Hello..

i want to make if user have PM, then show a, if no PM, then show b.


<vb:if condition="$notifications_total">
show A
<vb:else />
show B
</vb:if>


the code above wont work.. Could someone help me.

Thanks

kh99
01-07-2013, 11:51 AM
What template are you putting that in? It isn't going to work unless the $notifications_total has been registered to that template. Also, $notifications_total is the total nummber of notifications, not just the unread PMs.

Gripi
01-07-2013, 03:46 PM
hello..

I just figure out that the problem is not in the code, my mistake..

do you know the condition for Unread PM only? not all notification.

thanks

kh99
01-07-2013, 09:31 PM
do you know the condition for Unread PM only? not all notification.



I think you might be able to use $bbuserinfo['pmunread'].

Gripi
01-08-2013, 05:08 PM
I think you might be able to use $bbuserinfo['pmunread'].

thank you, its work :)