vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - New Notification Image (https://vborg.vbsupport.ru/showthread.php?t=166124)

ericgtr 12-24-2007 10:00 PM

New Notification Image
 
Now that we have notifications, I have modified my previous New PM hack to go along with the new setup. This will display when ever there is a new PM or Notification to grab the users attention.

In the navbar template find:
Code:

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
</td>

Add this right under:
Code:

<if condition="$show['notifications']">
<td class="alt2" valign="top" nowrap="nowrap">
<img src="$stylevar[imgdir_misc]/notification.jpg" alt="You have a new Notification" border="0"></a>
</td>
</if>

Upload the attached "notification.jpg" to your /images/misc directory

~Please click Install if you use this~

SwollenCranium 12-25-2007 09:01 PM

What Jpg ?

SwollenCranium 12-25-2007 09:12 PM

Quote:

Originally Posted by Mike-D (Post 1409051)
That pic what is in his first Post. What else :)


I was hoping it wasn't that ...:eek:

** Joking ^^ of course I know I can change the pic.

ericgtr 12-25-2007 09:12 PM

Quote:

Originally Posted by SwollenCranium (Post 1409057)
I was hoping it wasn't that ...

Yeah, it's sort of hard to notice that it's separated from the screenshot.

Hornstar 12-27-2007 10:17 AM

Thanks, I was waiting for this to be released since vbulletin changed there minds in doing it.

Question tho, when a user has no pms, or no notifications, what is displayed then? (hopefully something is still displayed. Thanks.

ericgtr 12-27-2007 03:36 PM

Quote:

Originally Posted by hornstar1337 (Post 1410038)
Thanks, I was waiting for this to be released since vbulletin changed there minds in doing it.

Question tho, when a user has no pms, or no notifications, what is displayed then? (hopefully something is still displayed. Thanks.

It's based on a condition that you have a notification, so if there are no notifications it doesn't display anything, just the default. :)

nerofix 01-02-2008 08:52 PM

you should fix your code, there it's a .gif but you say we should upload the .jpg :)

ericgtr 01-03-2008 01:56 PM

Quote:

Originally Posted by nerofix (Post 1414104)
you should fix your code, there it's a .gif but you say we should upload the .jpg :)

Changed, thanks.

Aziz Elkbiry 01-03-2008 10:11 PM

thank you

Howell 01-06-2008 08:39 PM

I changed the image into a flashing gif image and used that instead as it makes the user more aware of the notification.


All times are GMT. The time now is 03:08 PM.

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.01203 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete