Log in

View Full Version : Where is the hack that gives a different color background on navbar w/ new PM?


oldford
05-22-2006, 05:26 AM
I know this hack exists, but for the life of me I can't find it. Maybe I'm just having a bad day, but I've tried searching every way I know and no luck.

The hack changes the background color on your welcome bar (in navbar) when you get a new PM.

Does anyone know which hack this is? Thanks!

Boofo
05-22-2006, 05:47 AM
The blinking background?

oldford
05-22-2006, 05:55 AM
No, I just looked at that one and it isn't it. Thanks though. :)

This one had you add some CSS in your "additional CSS definitions". Looked like this:

/***** new pms in the navbar *****/
.newpmblock, .newpmblock:active {
background-color: #9F594D;
color: #000000;
}

Boofo
05-22-2006, 06:31 AM
No, I just looked at that one and it isn't it. Thanks though. :)

This one had you add some CSS in your "additional CSS definitions". Looked like this:

/***** new pms in the navbar *****/
.newpmblock, .newpmblock:active {
background-color: #9F594D;
color: #000000;
}

If you find the hack let me know.

peterska2
05-22-2006, 07:35 PM
In your navbar find

<td class="alt2" valign="top" nowrap="nowrap"

replace with

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

then just create a class newpmblock in the additional CSS definitions like the one you have done above.

This will change the color of the block in the navbar with your userinfo in to the color as defined in newpmblock from alt2 when there is a new pm.

oldford
05-22-2006, 08:26 PM
Thanks. I found an old test install where I had that hack done and it looks like you're exactly on track peterska2. It's slightly different, but I'm sure acheives the same thing:

<td <if condition="$bbuserinfo['pmunread'] > 0 AND $show['pmstats']">class="newpmblock"<else />class="alt2"</if> valign="top" nowrap="nowrap">

I looked through all my plugins and products on that test install and it's not there, so it must have just been a template hack.

peterska2
05-22-2006, 08:36 PM
That does exactly the same thing oldford.

And, yes it is a straightforward template mod.