View Full Version : 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 :)
Lynne
05-17-2008, 02:37 PM
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 :)
Maybe add an else in the statement:
<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>
Maybe add an else in the statement:
<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>
Thanks alot :) That worked a treat!
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 :D
Lynne
05-17-2008, 02:48 PM
Thanks alot :) That worked a treat!
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 :D
I think you would just use the same format. Basically the if statement checks if it exists and then does something, or does the else. I'd just try it and see.
I think you would just use the same format. Basically the if statement checks if it exists and then does something, or does the else. I'd just try it and see.
Could you give me the code to do it? Like i don't know what to actually put. In the pm one it was "pmnread." What would it be for all of these nwew notifications in 3.7?
Thanks
Lynne
05-17-2008, 03:39 PM
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.
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.