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)

Peace 07-07-2002 05:33 PM

Do this hack work with 2.2.6? I followed the directions correctly, I went over the steps 10 times or more, and it still won't Blink. I even tried FWC's modified version of the PM Blink hack. It still didn't Blink. What could be the problem?

Massiel 07-10-2002 12:49 AM

I installed this and I don't see anything either, has the original been updated with the background color that needs to be changed? Where do I need to include that?

sung 07-13-2002 01:36 AM

great hack man.

Heineken77 07-15-2002 04:35 PM

Ahh nice firefly!!

This is a beautiful hack!! I am currently running vBPortal v3.0b with my site. Is there any way to make the Private Message side box blink the same way that the Private Message bar does on the forum index page?

Cheers! :)
Heineken

Ryan McBain 07-16-2002 05:24 AM

this is what i have and when i get an private message the box changes color but it does not blink

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

Boofo 07-16-2002 05:39 AM

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]


RaZor Edge 07-16-2002 07:23 AM

Note: Strange.... if you put { tableheadbgcolor } (without space) in this message... it will be change to #1D6AA0... :ogre:

Boofo 07-29-2002 05:46 AM

Can anyone please tell me how to have the blinking continue after moving the mouse off of mouseover? It blinks fine until you mouseover it and then it stops blinking and will not start back up until you refresh the page.

PHP Code:

<tr>
    <
td id="pmBox" bgcolor="#13486D" colspan="5" 
onMouseOver="this.style.backgroundColor='#1C5780'; 
this.style.cursor='hand';" 
onMouseOut="this.style.backgroundColor='#13486D';" 
onClick="window.location.href='private.php?s=$session[sessionhash]'" title="Click Here to Open Your Private Messages $inboxname">
<
center>
<
b><normalfont>$bbuserinfo[username]'s Private Message Information</normalfont></b><br>
<smallfont>You have <b>$newpm[messages]</b> new private messages since your last visit.<br>
(You currently have <b>$unreadpm[messages]</b> unread messages and <b>$allpm[messages]</b> total messages, out of <b>$pmquota</b> allowed, in all of your folders.)
</center></smallfont>
    </td></tr>

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


Thunderpuck 08-02-2002 05:12 AM

I don't think I've ever seen so many people have so many problems with such a small hack. ;) I just read the entire thread and am very disappointed to find that nobody else has the same problem as I do.

The hack works fine with my 2.2.6, but for some strange reason the off.gif next to the words "Personal Messages" does not show up. Instead I get that red X that I.E. puts when an image is missing. I right click to get the properties and it says the file is ".gif" no name in front of the period, just .gif - and of course there is no .gif so I'm getting the red X.

Any advice would be greatly appreciated...

mauisun 08-04-2002 06:53 PM

I would love to get this hack going but unfortunately, php is far from my forte. I started by looking in index.php for the code you said to look for, nothing remotely close to it is in there. I am using v2.2.6
======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: |

and the newpm, messages or even lightbulb is nowhere to be found anywhere in index.php. can you give me some kind of idea as to why none of these words are even in that file? is this based on some other hack that was supposed to be already added or something? excuse my ignorance, my learning curve is pretty huge right now
.....mauisun

Boofo 08-04-2002 06:57 PM

You are wrong. On line 27 of an unhacked index.php from version 2.2.6 is the following:

PHP Code:

 if ($newpm['messages']==0) {
    
$lightbulb='off';
  } else {
    
$lightbulb='on';
  }
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";"); 

Quote:

Originally posted by mauisun
I would love to get this hack going but unfortunately, php is far from my forte. I started by looking in index.php for the code you said to look for, nothing remotely close to it is in there. I am using v2.2.6
======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: |

and the newpm, messages or even lightbulb is nowhere to be found anywhere in index.php. can you give me some kind of idea as to why none of these words are even in that file? is this based on some other hack that was supposed to be already added or something? excuse my ignorance, my learning curve is pretty huge right now
.....mauisun


mauisun 08-04-2002 07:12 PM

could just smack myself in the head because I searched that whole friggin document and did not see any of those words. sorry to waste your time, haven't a cluse as to why I missed it, will be more cautious int he future. will let you know once it is working good, thank you for the help
....mauisun

mauisun 08-04-2002 07:23 PM

/======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/ /======================================\ | Open index.php, and find this: | \======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: | \======================================/ if ($unreadpm['messages']==0) { $pmblink='//'; } else { $pmblink=''; } /======================================\ | Save index.php and upload. | \======================================/ /======================================\ | In the template forumhome_pmloggedin | | find this: | \======================================/ bgcolor="{categorybackcolor}" /======================================\ | Before that, add this code: | \======================================/ id="pmBox" /======================================\ | In the same template find this: | \======================================/ /======================================\ | And after that, add this script: | \======================================/ /======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/


this is an exact copy and paste of the readme text file. after you add the id="pmBox" part of the code it says to add this next and there is nothing there to add, it says after that to add this script, nothing there to add, does anyone else know what the missing code is here?
....mauisun

Boofo 08-04-2002 07:27 PM

After this:

PHP Code:

</smallfont></td>
</
tr

add this:

PHP Code:

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

is the rest of it.

mauisun 08-04-2002 07:46 PM

worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun

Boofo 08-04-2002 07:51 PM

Wrong again. :) It is in the file in the first post of this thread. Right at the bottom. :) You might want to re-download it. ;)

Quote:

Originally posted by mauisun
worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun


Baptizer 09-02-2002 08:06 PM

I upgraded from 2.0.3 to 2.2.7 and i am having a problem. I double checked the hack and it is still intact, but the flashing wont stop! even when i dont have any messages in my box! i even deleted them all! does anyone know how to get it to stop blinking when there are no messages??? ACCCK!!! heh

Baptizer 09-02-2002 08:33 PM

I got it fixed me thinks...call off the search dogs!! I just reinstalled it again and left out the wheel over stuff....and then re-added wheel over! thanks!

Gohan 09-02-2002 10:54 PM

i've install on 2.2.7 and work prefect :)

DarkyB 09-03-2002 05:30 PM

That hax rox0rs

Greystang302 09-06-2002 02:07 AM

BTW, this hack is also working on Version 2.2.7. I will report any bugs that I find.

Mirri 09-09-2002 12:42 AM

meh. It wont work for me, i'm using 2.2.6 :ogre: I even un and re installed it 2 times! IT WONT BLINK! I DID CHANGE THE COLORS! *mad* Maybe this just isn't the hack for me..

GaleForce 09-09-2002 01:20 AM

This doesn't work for me. It only half works. When someone recieves a new private message, the bar turns red, but it doesn't proceed to blink.

Craigr 09-15-2002 02:21 PM

Works great for me.

Great hack.
Thanks, Craig

[email protected] vbmenu_register("postmenu_301799", true); 09-23-2002 12:59 AM

Is there anyway to make the same thing happen on other pages. Not just the main page.

Mark

Sia Bani 10-19-2002 06:31 PM

does this work properly for anyone on 2.2.8? I get blank pages when this is installed!

BeatDown 10-19-2002 09:00 PM

Quote:

Originally posted by Sia Bani
does this work properly for anyone on 2.2.8? I get blank pages when this is installed!
Yes.

I've also integrated it into my "vbHome (Lite)" page successfully.

sklwer 10-20-2002 10:07 PM

Works like charm on 2.28

dotagious 10-21-2002 04:32 AM

This is working fine for me on 2.2.8.

BUT

It's using the correct Table Heading Background Color, but is NOT using the correct Category Strip Background Color. I'm not sure what is causing this... or how I can fix it. Any ideas?

dotagious 10-21-2002 04:35 AM

Ok.. it appears my Category Strip Background Color uses a .gif as part of it's path. So, in the forumhome_pmloggedin template, I just added the color code minus the .gif and it works fine. :)

dotagious 10-21-2002 04:38 AM

Bah... I noticed now my mouse pointer arrow "hour glasses" every time it blinks. I know it's kind of running a script, but (a) being on a cable modem, and (b) being on a site with VERY low traffic... should this be happening?

Deimos 10-23-2002 01:49 PM

Nice hack :)
Is there anyway to MOVE the whole PM bit to the top of the main page? If so....can someone tell me how?
I don't wanna bugger up my forums.

waddy 10-24-2002 02:07 AM

Has anyone got this working properly with background images?

BeatDown 10-24-2002 02:13 AM

Quote:

Originally posted by waddy
Has anyone got this working properly with background images?
Kinda depends on what you mean "properly". I use background images for all of my tables, and I do have this hack installed. The background image blinks with a "color" (red on my site). The only thing I don't care for is that for every blink, the image reloads from the server. I believe it's because vB is not allowing the client to cache anything (which makes sense).

I did have to increase the timing factor, though. It was way too fast for me otherwise.

Littlebit 10-26-2002 05:03 AM

I have it working great with 2.2.8 on IE, but I'm getting a javascript error (pmBox is not defined) on Netscape. Any quick fixes for this?

Fiyah 11-08-2002 12:50 AM

OK, I'm gonna show you how fresh I really am.......My mind is going blank and I don't know where to start to add this hack. I found "the template forumhome_pmloggedin" and can change taht but where do I start to find the "index.php"? to add the changes there.

Don't laugh too loudly......

Jesus Chio 11-08-2002 04:11 AM

it rocks! :) took me 3 minutes, thanks

!!!cyr0n_k0r 11-10-2002 02:33 AM

I installed this hack and even when I dont have any unread PM's it still blinks.

Quote:

<tr id="cat">
<td id="pmBox" bgcolor="#B2B0A3" colspan="3"><a href="private.php?s=$session[sessionhash]" title="Click Here to Open Your Private Messages $inboxname"><normalfont color="{categoryfontcolor}"><b>Private Messages</normalfont></b></a></td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" align="center" valign="top">
<a href="private.php?s=$session[sessionhash]"><img src="{imagesfolder}/sendpm.gif" alt="" border="0">
</td>
<td bgcolor="{firstaltcolor}" colspan="5"><smallfont>
<b>$bbuserinfo[username]</b> - You have $newpm[messages] new message(s) since your last visit.<br>
(You have $unreadpm[messages] unread messages and $allpm[messages] total messages in all your folders.)</smallfont></td>
</tr>

<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#B2B0A3';
$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='B2B0A3';
x=0;
set=0;
}
}
// End -->
</script>

Cyberhouse 11-10-2002 08:05 AM

Works great on 2.2.7 ;)
thanks :D

TheEDIGuy 11-10-2002 11:53 AM

Just installed on 2.2.8, works great, took about 3 minutes total.

Excellent hack, as usual, FireFly!


All times are GMT. The time now is 05:04 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.02090 seconds
  • Memory Usage 1,853KB
  • 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
  • (4)bbcode_php_printable
  • (5)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