PDA

View Full Version : Background Color New PM Notification


jdk10
19 Aug 2006, 23:04
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:
<td class="alt2" valign="top" nowrap="nowrap">

Replace with:
<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.

.pmbg { background-color: #33CCFF; color: #000000;}

Hit save and you are done.

Don't forget to click INSTALL

Kirk Y
20 Aug 2006, 00:24
You may want to attach a screenshot for the unimaginative, just for future reference.

jdk10
20 Aug 2006, 00:27
Ok thanks. Will do.

Snake
20 Aug 2006, 11:32
Thanks, pretty nice!

abosaleh
20 Aug 2006, 20:57
thanks Mr acidburn0520

Ben Wilkins
20 Aug 2006, 23:26
Awsome, is there a way i can make it flash back to white then back to blue and so on?

jdk10
21 Aug 2006, 04:28
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
21 Aug 2006, 06:55
cool... awsome mod. added to my forum... :)

bolly.beats
23 Aug 2006, 19:35
cool buddy really Great :D

o0Hubba0o
26 Aug 2006, 20:30
Well, not bad for your first, and I'll try to be nice. However didn't you get this from ericgtr's hack? (http://www.vbulletin.org/forum/showpost.php?p=1056083&postcount=27) 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
26 Aug 2006, 20:37
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
26 Aug 2006, 20:38
Well, not bad for your first, and I'll try to be nice. However didn't you get this from ericgtr's hack? (http://www.vbulletin.org/forum/showpost.php?p=1056083&postcount=27) 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
27 Aug 2006, 20:44
great mod! thanks!

o0Hubba0o
28 Aug 2006, 18:21
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
28 Aug 2006, 19:20
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
28 Aug 2006, 20:14
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
28 Aug 2006, 21:09
I believe it was already discussed in Eric's original thread - he didn't sound too happy, but he wasn't freaking out.

TheBlackPoet
06 Sep 2006, 06:27
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
19 Sep 2006, 18:41
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
20 Sep 2006, 01:12
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
23 Sep 2006, 11:34
This doesnt work with 3.6.1

iran.gs
17 Oct 2006, 00:18
Installed good job

PoetJA-1975
17 Oct 2006, 05:03
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
02 Dec 2006, 14:43
Installed and Working 100%. thanks

RockMTP
02 Dec 2006, 22:26
Thanks to whoever created this...it works on my 3.6.1

obmob
14 Feb 2007, 21:10
Oh, i was looking for this :D

pollon
15 Feb 2007, 07:46
thanks. it works on 3.6.4

amirlol
16 Jan 2008, 22:01
very nice - thanks a lot

TCE Killa
23 Feb 2008, 02:47
What would be cool is to make the background color flash on and off when a user has a new PM.

Hamednet
01 Mar 2008, 17:10
Dear how do blink this ?

thanx

carrlos
10 Apr 2008, 05:08
Thanks for this one!

thedvs
23 May 2009, 19:13
this works fine in 3.8.2