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)

350Chevy 11-17-2002 03:35 AM

Anyway to add a random .wav file to play along with this?

Great hack btw!

alkatraz 11-17-2002 04:02 AM

works great! thx!

Dynamic One 11-20-2002 01:55 PM

Thanks for this hack FireFly

XFLBret 11-28-2002 07:17 AM

OK, I got it working, but I thought of a good improvement to it...

Just so my forums look cleaner, this is what I'd like...

Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.

i would do it, but know absolutely nothing about coding. could someone else make this happen?

Sebastian 11-28-2002 07:33 AM

Quote:

Originally posted by XFLBret
OK, I got it working, but I thought of a good improvement to it...

Just so my forums look cleaner, this is what I'd like...

Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.

i would do it, but know absolutely nothing about coding. could someone else make this happen?

Code:

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

See {tableheadbgcolor } and {categorybackcolor } change it to the colors you want, you can use #000000 for black #FFFFFFF for white, etc..

XFLBret 11-28-2002 08:08 AM

well, yeah, i got that part. but that flashes just the background. i was inquiring on how I could get the text to flash also in sync with the background flashing. I want where it says "private message" to flash also, but different colors then what the background is flashing

did i make sense this time? i don't know if i'm expressing myself well here...

BigCheeze 11-29-2002 09:55 PM

Works Great! Thanks!!

XFLBret 12-06-2002 06:46 AM

hello? anyone know the answer to my questions two posts above? i would really like to make this happen. thanks.

flup 12-18-2002 04:34 PM

Great hack! thx

Lionel 01-06-2003 06:36 PM

I have been using that hack for the longest time and it works fine. But is it possible to have just the text blink instead of the entire <td>?

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. ;)

XFLBret 03-05-2003 07:15 AM

Quote:

Originally posted by XFLBret
OK, I got it working, but I thought of a good improvement to it...

Just so my forums look cleaner, this is what I'd like...

Is it possible to make the text flash also? what i'd like is to make the bar flash to that the background and the text alternate colors. example: if it is normally white text on black background, i'd like to see it so that it flashes back and forth from white text on black background to black text on white background.

i would do it, but know absolutely nothing about coding. could someone else make this happen?

still waiting for an answer...for months now thank you. how about some help here?

pixelpunk 03-09-2003 06:19 AM

Ok... one question.

On my forum index page the PM title BG is blue. However I can't find the part of code to change this to to the dark grey like the rest of the forum headers.

Why is it blue? Or where do I change this?

ImportPassion 03-13-2003 06:44 PM

I changed it up a bit and made it a little more efficient. For me at least anyway.
PHP Code:

<script language="JavaScript1.2">
//configure interval btw flash (1000=1 second)
$pmblink var flashspeed=500
function flashme(){
    var 
flashtable=document.getElementByIddocument.getElementById("pmBox") : document.alldocument.all.pmBox ""
    
if (flashtable){
        var 
col1 "{ firstaltcolor }";
        if (
flashtable.style.borderColor.indexOf(col1.toLowerCase())!=-1
            
flashtable.style.borderColor="{ tableheadbgcolor }"
        
else
            
flashtable.style.borderColor="{ firstaltcolor }"
            
}
    }
$pmblink setInterval("flashme()"flashspeed)
</
script

I also added this to the TD
style="border: medium solid { firstaltcolor };"
remove the spaces inside the {}

D

Boofo 03-13-2003 06:48 PM

Will this work with all browsers?

ImportPassion 03-13-2003 07:04 PM

unfortunately no, but should work with IE and NS6. Does not work with Mozilla 1.2, and I had it working with Opera, but it doesn't seem to want to work anymore.

I was looking for an all-in-one solution too.

D

Boofo 03-13-2003 07:29 PM

Well, you're in luck then. I have one that works with mozilla and IE and I think Netscape for sure. Want it? ;)

Boofo 03-13-2003 07:31 PM

Oh, I forgot to mention, mine only flashes the text.

ImportPassion 03-13-2003 07:37 PM

text i can do. need border or cell to flash.
thanks tho.

D

Boofo 03-13-2003 07:39 PM

Could probably re-work the code to do that. ;)

ImportPassion 03-13-2003 08:02 PM

send it over and let me see. :cool:

Boofo 03-13-2003 08:09 PM

Use the following javascript in the header of the page and put

<blink>Text goes here</blink>

where ever you want it to go. If you get it working for the background, let me know. ;)

Quote:

<SCRIPT>
<!--
function doBlink() {
var blink = document.all.tags("BLINK")
for (var i=0; i<blink.length; i++)
blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : ""
}

function startBlink() {
if (document.all)
setInterval("doBlink()",500)
}
window.onload = startBlink;
// -->
</SCRIPT>

ImportPassion 03-13-2003 08:15 PM

doesn't work in Opera 7.01

WIll see what i can do with it, but I i know u can't change the visibility on colors.

Boofo 03-13-2003 08:19 PM

I just do this to get color:

Quote:

<blink>
<font color="red"><b>$bbuserinfo[username], you have $unreadpm[messages] new private messages</font>
</blink>
and it works fine here. ;)

ImportPassion 03-13-2003 09:09 PM

again, i am not talking about text. cells and borders

AllMadden.net 03-15-2003 05:25 PM

Mine flashes red one time...and then doesn't do anything else. Any idea why?

pixelpunk 03-19-2003 08:17 PM

Mine flashes ok but the normal color is IE's default color which is uaually a color that doesn't match A THING on my site.

Does anyone know how to set the default color?

pixelpunk 03-24-2003 06:22 PM

bump

leitel 04-02-2003 01:52 PM

Does the link on the first post point to the latest hack? Sometimes hack threads do sometimes they don't. :)

Master Computer 04-03-2003 07:49 PM

Does this work with vB 2.2.8?

350Chevy 04-03-2003 09:19 PM

Quote:

Today at 09:49 PM Master Computer said this in Post #239
Does this work with vB 2.2.8?

Yes.. works with 2.2.9 and 2.3.0 as well..


All times are GMT. The time now is 05:11 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.01610 seconds
  • Memory Usage 1,832KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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