vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Blink PM bar on new PM! (https://vborg.vbsupport.ru/showthread.php?t=32299)

Admin 11-09-2001 10:00 PM

This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!

NO MORE! :)

Install this very easy hack and no one will be able to ignore the PM again.

This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.

Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.

To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it. :)

Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests. ;)

Anyway, have fun!

JTMON 11-10-2001 01:22 PM

I made the necessary changes but for some reason it doesn't work for me:(

Sc0rpion 11-10-2001 02:01 PM

yep followed instructions to the letter,and it also does not work for me.

maverick1236 11-10-2001 04:40 PM

Nope:(

Neo 11-10-2001 05:19 PM

i believe its a javascript error, it worked for me so :p

oh and thanks for another great hack

snyx 11-10-2001 05:20 PM

Works GREAT man!
Only problem I had is that both my categorybackcolor and my tableheadbgcolor are the same.
So at first I thought it wasnt blinking (cuz they were the same)
So like before anyone starts to say it doesnt work, try using THIS as your JS to test it:

Code:

<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
 function Timer() {                x=1;
                set=0;
        }
        if(x==1 && set==1) {
                pmBox.bgColor='{*categorybackcolor*}';
        set=1;
        if(x==0 && set==1) {
                pmBox.bgColor='#336D95';

                x=0;
                set=0;
        }
}
// End -->
</script>

stick that in the end of forumhome_pmloggedin, REMOVE! the ** from {*categorybackcolor*} and send yourself a PM, and if it doesnt blink then, you probolly did something wrong.

snyx

Sc0rpion 11-10-2001 05:26 PM

synx i don't even need to try,i know thats my problem,thanks for pointing that out.

:stupid: Doh

JTMON 11-10-2001 05:38 PM

Quote:

So at first I thought it wasnt blinking (cuz they were the same)
DOH DOH DOH DOH!!!:(

Great Hack Firefly! Me stupid! Thanks Snyx!

FWC 11-10-2001 05:49 PM

Works great, FireFly! Thanks. :)

snyx 11-10-2001 05:57 PM

see, snyx knew it!
(first and last time you will ever here that sentance) :D


All times are GMT. The time now is 01:31 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.01365 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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