vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Background Color New PM Notification (https://vborg.vbsupport.ru/showthread.php?t=124426)

jdk10 08-19-2006 10:00 PM

Background Color New PM Notification
 
I couldn't find a mod for changing the background of the welcome box when the member has a new PM, so I decided to write one. This is my first mod so be nice ;)

I have tested it with vB 3.6.0 and it works flawlessly.

In the navbar template
Find:
Code:

<td class="alt2" valign="top" nowrap="nowrap">
Replace with:
Code:

<if condition="$bbuserinfo['pmunread']">
        <td class="pmbg" valign="top" nowrap="nowrap">
<else />
        <td class="alt2" valign="top" nowrap="nowrap">
</if>


Next, go to Style Manager > Main CSS and scroll to the very bottom. Under Additional CSS Definitions add the following to the bottom box.

Code:

.pmbg { background-color: #33CCFF; color: #000000;}
Hit save and you are done.

Don't forget to click INSTALL

Kirk Y 08-19-2006 11:24 PM

You may want to attach a screenshot for the unimaginative, just for future reference.

jdk10 08-19-2006 11:27 PM

Ok thanks. Will do.

Snake 08-20-2006 10:32 AM

Thanks, pretty nice!

abosaleh 08-20-2006 07:57 PM

thanks Mr acidburn0520

Ben Wilkins 08-20-2006 10:26 PM

Awsome, is there a way i can make it flash back to white then back to blue and so on?

jdk10 08-21-2006 03:28 AM

Screenshot added.

@Ben Wilkins - The only way to do that would be with a javascript. I am not sure if vbarrays will allow javascript to be ran.

upsetter 08-21-2006 05:55 AM

cool... awsome mod. added to my forum... :)

bolly.beats 08-23-2006 06:35 PM

cool buddy really Great :D

o0Hubba0o 08-26-2006 07:30 PM

Well, not bad for your first, and I'll try to be nice. However didn't you get this from ericgtr's hack? Which I guess is cool too, that's how I'm learning, from other peoples work, but you should give credit to where you got the idea.


All times are GMT. The time now is 10:25 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.01299 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_code_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