PDA

View Full Version : Background Color New PM Notification


jdk10
08-19-2006, 10:00 PM
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
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? (https://vborg.vbsupport.ru/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
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
Well, not bad for your first, and I'll try to be nice. However didn't you get this from ericgtr's hack? (https://vborg.vbsupport.ru/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
08-27-2006, 07:44 PM
great mod! thanks!

o0Hubba0o
08-28-2006, 05:21 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.
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
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
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