The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
User PMs
If anyone can answer this question, i'd greatly appreciate it
I want to display a picture when users do not have any unread PM's. I know that the code to use to display a picture if a user does have a new PM is: <if condition="$bbuserinfo['pmunread']"> <img src="http://www.thinkhabboforum.net/images/misc/newpm.gif"> </if> How do i make it show a picture if a user doesn't have any unread messages? I tried "pmread" instaed of undread but that didn't work Thanks in advance |
#2
|
||||
|
||||
Quote:
HTML Code:
<if condition="$bbuserinfo['pmunread']"> <img src="http://www.thinkhabboforum.net/images/misc/newpm.gif"> <else /> <img src="http://www.thinkhabboforum.net/images/misc/nonewpm.gif"> </if> |
#3
|
||||
|
||||
Quote:
As i've just upgraded to the latest version of vb, do you know how to make an image display if a user has a new notification whether that be a PM, new fried request, unread visiot message etc? I'm guessing it will be in the same sort of format but i have no idea how to code it :P Thanks again and hopefully you'll be able to help |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
Quote:
Thanks |
#6
|
||||
|
||||
The notifications are defined by $notifications_total. So, you would actually have to search the code to find where that is defined. I'm really not that familiar with 3.7 since I'm not running it and therefore having gotten around to modding it.
|
#7
|
||||
|
||||
hmmmm, so any ideas how to code it so it says if notification = 0 then do this and if notification is 1 or more do this.
thanks again. if anyone else knows it'll be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|