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.

jdk10 08-26-2006 07:37 PM

He gave the code to change the background color. He didn't give any code to show if there is a new message or not. Its a stupid little hack to change the background color. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.

jdk10 08-26-2006 07:38 PM

Quote:

Originally Posted by o0Hubba0o
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.

:rolleyes:

therocks 08-27-2006 07:44 PM

great mod! thanks!

o0Hubba0o 08-28-2006 05:21 PM

Quote:

Originally Posted by jdk10
He gave the code to change the background color. He didn't give any code to show if there is a new message or not. Its a stupid little hack to change the background color. If someone told me the hex for the color white text and I go create a hack changing text white, it doesn't mean they told me how to write the mod.

hex color and changing the font color isn't quite the same thing, sorry, nice try. the table class: pmbg and adding it to the css was told to you by eric in his post. Basically you just took what he told you to do and made it your's without giving credit.

If this is what people want for their pm's great, you provided a seperate thread with this idea, but you didn't write it yourself, just released it after getting the info from eric.

Kirk Y 08-28-2006 06:20 PM

Who cares? It's all open-source anyway; technically you're stealing from the person who created PHP - or HTML, in this case. :p

Paul M 08-28-2006 07:14 PM

Who cares ? - the person who wrote it might care - you can't just go around copying other peoples code and releasing it as your own. I suggest you contact eric and ask. :)

Kirk Y 08-28-2006 08:09 PM

I believe it was already discussed in Eric's original thread - he didn't sound too happy, but he wasn't freaking out.

TheBlackPoet 09-06-2006 05:27 AM

I was hating that my members had to look up and see they had a msg TEN MINUTES AGO..... this is a great idea and my mems preciate it~

trainer 09-19-2006 05:41 PM

Quote:

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


couldn't you use this code to set the background as a flashing .gif image? that would allow you to have it flashing

MRGTB 09-20-2006 12:12 AM

Quote:

Originally Posted by acidburn0520
Who cares? It's all open-source anyway; technically you're stealing from the person who created PHP - or HTML, in this case. :p

agree

Jealousy10312 09-23-2006 10:34 AM

This doesnt work with 3.6.1

iran.gs 10-16-2006 11:18 PM

Installed good job

PoetJA-1975 10-17-2006 04:03 AM

What about setting the variable to where its NEW PM as opposed to UNREAD PM?
At anyrate - thanx - very nice sharing ((even though the drama! ;) ))

Jacquii INSTALLS

MrPHD 12-02-2006 01:43 PM

Installed and Working 100%. thanks

RockMTP 12-02-2006 09:26 PM

Thanks to whoever created this...it works on my 3.6.1

obmob 02-14-2007 08:10 PM

Oh, i was looking for this :D

pollon 02-15-2007 06:46 AM

thanks. it works on 3.6.4

amirlol 01-16-2008 09:01 PM

very nice - thanks a lot

TCE Killa 02-23-2008 01:47 AM

What would be cool is to make the background color flash on and off when a user has a new PM.

Hamednet 03-01-2008 04:10 PM

Dear how do blink this ?

thanx

carrlos 04-10-2008 04:08 AM

Thanks for this one!

thedvs 05-23-2009 06:13 PM

this works fine in 3.8.2


All times are GMT. The time now is 06:05 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.01135 seconds
  • Memory Usage 1,769KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)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