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)

time4akshun 01-13-2003 04:10 AM

How can I make this hack also appear on vbHome? It is working on Forums Home but I would like it on my vBHome homepage also.

Any help would be appreciated!

Time

time4akshun 01-13-2003 04:13 AM

<a href="http://www.teckwizards.com/forum/showthread.php?s=&threadid=180&highlight=vbHome+bl ink" target="_blank">http://www.teckwizards.com/forum/sho...t=vbHome+blink</a>

Think I found my answer.

Time

esoin 02-03-2003 11:03 PM

works great on 2.2.9! thanks

eso

mini2 02-16-2003 11:57 AM

I installed 'as-is' and this screwed up my forum display (I have a fixed width forum), it made the forum wider than it should have been.

I changed the code in index.php and this cured my problem, this is how:

PHP Code:

  // PM Blink Hack
  
if ($unreadpm['messages']==0) {
    
$pmblink='';
  } else {
    
$pmblink="<script language=\"JavaScript\">
<!-- Begin
pmBox.bgColor='#1D6AA0';
setInterval(\"Timer()\", 500);
x=1;
 function Timer() {
    set=1;
    if(x==0 && set==1) {
        pmBox.bgColor='#336D95" 
background="https://vborg.vbsupport.ru/images/catagory_backing.gif';
        x=1;
        set=0;
    }
    if(x==1 && set==1) {
        pmBox.bgColor='#1C5780';
        x=0;
        set=0;
    }
}
// End -->
</script>"
;
  } 

And changed the forumhome_pmloggedin template to simply:

$allpm[messages] total messages in all your folders.)</smallfont></td>
</tr>
$pmblink

Hope that's useful to others.


LOL vBulletin parses the code ^^^ never realised that before (ie the background color etc).

Well, hopefully you can figure it out if you need to!

Zelda-King 02-17-2003 02:18 PM

I'm using it. Works fine. Just edit the bottom colour value in the template as you see fit I say (regarding 'same-colour' problems);

Code:

pmBox.bgColor='insert colour value';

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


mini2 02-17-2003 02:20 PM

I am sure it will work fine in most instances, but for some reason it completely screwed up my fixed width forum, the changes above meant no problems what so ever, and will also work for other forums (not just fixed width).

:)

maligno 02-17-2003 02:52 PM

<font size="5">thanks </font> :knockedout: :knockedout:

Paraone 02-21-2003 10:43 PM

Quote:

Originally posted by Boofo
Ryan,

Try this EXACT code and let me know if it works. Also, if you have any pop-up killers running, shut them down to test this. They can cause problems too. :)

Code:

[disable]<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
 function Timer() {
        set=1;
        if(x==0 && set==1) {
                pmBox.bgColor='#FF0000';
                x=1;
                set=0;
        }
        if(x==1 && set==1) {
                pmBox.bgColor='#1D6AA0';
                x=0;
                set=0;
        }
}
// End -->
</script>
[/disable]




YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...

Boofo 02-22-2003 12:01 AM

I have a piece of code that will give you blinking text (instead of a blinking background) that works in IE AND Netscape, if anyone is interested.

Boofo 02-22-2003 12:07 AM

Quote:

Originally posted by Paraone




YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...

No problem. I'll let the wife know she has competition now. Maybe it'll straighten her out. ;)


All times are GMT. The time now is 07:51 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.01961 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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