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
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
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 :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.