vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   User PMs (https://vborg.vbsupport.ru/showthread.php?t=179538)

Nkay 05-17-2008 12:40 PM

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 01:37 PM

Quote:

Originally Posted by Nkay (Post 1522577)
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:

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>


Nkay 05-17-2008 01:45 PM

Quote:

Originally Posted by Lynne (Post 1522633)
Maybe add an else in the statement:

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>


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 01:48 PM

Quote:

Originally Posted by Nkay (Post 1522642)
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.

Nkay 05-17-2008 02:04 PM

Quote:

Originally Posted by Lynne (Post 1522645)
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 02: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.

Nkay 05-17-2008 03:00 PM

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.


All times are GMT. The time now is 07:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01676 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete