The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
About PM notification condition
Hello..
i want to make if user have PM, then show a, if no PM, then show b. Code:
<vb:if condition="$notifications_total"> show A <vb:else /> show B </vb:if> Thanks |
#2
|
|||
|
|||
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.
|
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
Quote:
I think you might be able to use $bbuserinfo['pmunread']. |
#5
|
|||
|
|||
thank you, its work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|