Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2008, 01:40 PM
Nkay's Avatar
Nkay Nkay is offline
 
Join Date: Jan 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-17-2008, 02:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nkay View Post
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>
Reply With Quote
  #3  
Old 05-17-2008, 02:45 PM
Nkay's Avatar
Nkay Nkay is offline
 
Join Date: Jan 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #4  
Old 05-17-2008, 02:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nkay View Post
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
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.
Reply With Quote
  #5  
Old 05-17-2008, 03:04 PM
Nkay's Avatar
Nkay Nkay is offline
 
Join Date: Jan 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #6  
Old 05-17-2008, 03:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-17-2008, 04:00 PM
Nkay's Avatar
Nkay Nkay is offline
 
Join Date: Jan 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:50 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.04878 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete