vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Blink the Welcome Bar when receiving a new PM! (https://vborg.vbsupport.ru/showthread.php?t=88474)

Gary W 02-14-2004 10:00 PM

Blink the Welcome Bar when receiving a new PM!
 
Some tiny bits and pieces of this hack was adapted from Chen's vB 2 version of this hack, so kudos to him



What this hack does is it makes the 'Welcome, $username' box in the navbar blink by changing colors whenever a user has a new PM, so that it will catch their attention and they won't miss the PM



You can view the hack in action by viewing the attached screenshot to this post! (Meaning that it will blink like it's supposed to )



Anyways, here are the instructions:



Open up the navbar template and find:
HTML Code:

        <td class="alt2" valign="top" nowrap="nowrap">
Replace with
HTML Code:

        <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>>
Find:
HTML Code:

    <else />

 

        <td class="alt2" nowrap="nowrap" style="padding:0px">

Above, add
HTML Code:

        <if condition="$bbuserinfo['pmunread']">
        <script type="text/javascript">
<!--
<!-- blink navbar on new pms -->

pmBox.bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()", 500);
x=1;
function Timer()
{
        set=1;
        if (x==0 && set==1)
        {
                pmBox.bgColor='$stylevar[tcat_bgcolor]';
                x=1;
                set=0;
        }
        if (x==1 && set==1)
        {
                pmBox.bgColor='$stylevar[thead_bgcolor]';
                x=0;
                set=0;
        }
}
-->
</script></if>



All done! You can view the hack in action by viewing the attached screenshot! (Meaning that it will blink like it's supposed to )

AN-net 02-15-2004 02:21 AM

nice hack, also plz format hack into a text file(forum rules):D

Gary W 02-15-2004 12:11 PM

Okay I will right now, sorry about that this is my first mod released here :p

Gary W 02-15-2004 12:16 PM

I also added the cool new screenshot I made :p

Azhrialilu 02-15-2004 02:41 PM

I get a debug error everytime I install this hack... says pmuser isn't specified? really odd lol

Gary W 02-15-2004 02:44 PM

Strange it's not like that for me, could you give me a screenshot?

Azhrialilu 02-15-2004 03:23 PM

Sure.. I'll reinstall it and grab a snapshot for you :)

btekcan 02-16-2004 08:18 AM

Yes same problem here......something is wrong...

rms10 02-17-2004 02:19 PM

I like this idea but will wait until the above issue is resolved :)

imported_badpacket 02-17-2004 03:21 PM

Same here.. I'd like to apply this when its working :)


All times are GMT. The time now is 02:07 AM.

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.01028 seconds
  • Memory Usage 1,735KB
  • 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
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete