vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where is the hack that gives a different color background on navbar w/ new PM? (https://vborg.vbsupport.ru/showthread.php?t=116353)

oldford 05-22-2006 04:26 AM

Where is the hack that gives a different color background on navbar w/ new PM?
 
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 04:47 AM

The blinking background?

oldford 05-22-2006 04: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:

Code:

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


Boofo 05-22-2006 05:31 AM

Quote:

Originally Posted by oldford
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:

Code:

/***** 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 06:35 PM

In your navbar find

Code:

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

Code:

<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 07: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:

Code:

<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 07:36 PM

That does exactly the same thing oldford.

And, yes it is a straightforward template mod.


All times are GMT. The time now is 07:27 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.02197 seconds
  • Memory Usage 1,723KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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