View Full Version : Blinking PM notification bar for vB3.0.3
Steve St.Lauren
08-08-2004, 10:00 PM
*** PM Notify Blink R.9
I based this off of Chen's Vb2 PM Notify Hack. I had released this for 2.0 as well - mine was a bit different from his. I rewrote it for vB3 and wasn't going to release it but have seen a couple requests for something like it so here it is. I do not have stock templates on my forums (and didn't keep a copy of them on there) so I'm not sure that the template lines I am having you look for are exactly what I have in this file. Please let me know what you find and I'll change the text. The screen shots show the two colors that it blinks between by default.
shadiguy1
08-09-2004, 04:35 AM
works awsome took like a whole 5 mins to install
integra99
08-09-2004, 06:09 AM
I installed a slightly modified version of the hack.
All work is (c) of original poster.
Open template navbar and find:
<if condition="$bbuserinfo['userid']">
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
and replace with:
<if condition="$bbuserinfo['userid']">
<td id="pmNotifybox" bgcolor="#F8F8F8" valign="top" nowrap="nowrap"><font color="#000000">
<div class="smallfont">
then find:
<!-- / breadcrumb, login, pm info -->
and add below it:
<if condition="$bbuserinfo['pmunread']">
<script language="JavaScript">
<!-- Begin
$pmblink pmNotifybox.bgColor='#f8f8f8';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmNotifybox.bgColor='#f8f8f8';
x=1;
set=0;
}
if(x==1 && set==1) {
pmNotifybox.bgColor='#999999';
x=0;
set=0;
}
}
// End -->
</script>
</if>
Voila! The table cell that contains your user info and pm count will blink the color you specify. It is set now to exactly as I have it on my forum.
Logikos
08-09-2004, 11:24 AM
This can be done with condtions, no need to hack.
This can be done with condtions, no need to hack.
i been trying to do it that way... any hints?
Beermonster
08-09-2004, 01:16 PM
Thanks works fine :)
* Beermonster clicks install
Logikos
08-09-2004, 01:53 PM
i been trying to do it that way... any hints?
Sure. Use something like this.
<if condition="$bbuserinfo['pmunread']"> w/e you want here </if>
The things you can do with conditions are wonderful.
This is what im doing. See attachment. And if you don't want gues to see it, then simply use.
<if condition="$bbuserinfo['userid']"> blah </if>
integra99
08-09-2004, 06:42 PM
Livewire and Polo: I posted the hack above using only conditionals.
Logikos
08-09-2004, 07:24 PM
I didn't even see your post, i got my info from, https://vborg.vbsupport.ru/showthread.php?t=62903
Livewire and Polo: I posted the hack above using only conditionals.
this only works on ie? or is supported by most browsers?
integra99
08-10-2004, 12:49 PM
this only works on ie? or is supported by most browsers?
I dunno, go test it :)
Natch
08-10-2004, 10:17 PM
There are a couple of modifications on vBT - Gary's works on IE, mine works cross-browser (IE,Moz,Opera,etc) ...
EDIT: integra: your code above is not valid html - try <script type="text/javascript"> instead of <script language="Javascript">.... also it's best never to hard-code bgcolor anymore - this also is deprecated: try using CSS style definitions... it will make your code move down the style parent/child structure better as well...
integra99
08-11-2004, 01:26 AM
There are a couple of modifications on vBT - Gary's works on IE, mine works cross-browser (IE,Moz,Opera,etc) ...
EDIT: integra: your code above is not valid html - try <script type="text/javascript"> instead of <script language="Javascript">.... also it's best never to hard-code bgcolor anymore - this also is deprecated: try using CSS style definitions... it will make your code move down the style parent/child structure better as well...
I got ya started, have at it! :P
cnczone
08-11-2004, 02:06 AM
Does not flash using firefox.
Natch
08-11-2004, 04:16 AM
I got ya started, have at it! :P
No comment - in fact I got ya started - please reference where you got your code from OK?
integra99
08-12-2004, 04:02 AM
No comment - in fact I got ya started - please reference where you got your code from OK?That's ok, I'll pass on that. People on here get too ate up with who made what, who gets the credit for this or that. I'm not the greatest at this, but what I do is out there for anyone to use. If you want to take what I started and make it your own, have at it. If it makes your wang bigger to think you wrote it all by yourself, more power to you.. I don't care.
That script works for my board just fine. If someone wants to make it intercompatible, have at it. I won't be.
On a side note, I've had a half dozen people contact me with questions regarding what I did. I don't mind helping people out, I'm just not going to twiddle away hours of my time writing something I don't need. If anyone has questions or needs help, PM/IM is acceptable.
Natch
08-12-2004, 03:53 PM
Tosspot - it's got nothing to do with my or anyone else's wang ...
/me sighs
It's obviously a waste of time to explain intellectual property - if you check out the code you "wrote" and then visit the thread on vBt started by Gary W relating to THIS EXACT HACK - the javascript you "wrote" is IDENTICAL. Now I have no idea about his or your wang (whatever that has to do with writing PHP and javascript) - he wrote this javascript - he should get the credit.
Additionally, check out the datestamp on the thread links from my sig - "Hover Effect..." you will 1) find code that works cross-browser to provide this same functionality dated months ago and 2) realise you are (as I mentioned above) a tosspot.
/me waves bu-bye
integra99
08-12-2004, 05:15 PM
Tosspot - it's got nothing to do with my or anyone else's wang ...
* Natch sighs
It's obviously a waste of time to explain intellectual property - if you check out the code you "wrote" and then visit the thread on vBt started by Gary W relating to THIS EXACT HACK - the javascript you "wrote" is IDENTICAL. Now I have no idea about his or your wang (whatever that has to do with writing PHP and javascript) - he wrote this javascript - he should get the credit.
Additionally, check out the datestamp on the thread links from my sig - "Hover Effect..." you will 1) find code that works cross-browser to provide this same functionality dated months ago and 2) realise you are (as I mentioned above) a tosspot.
* Natch waves bu-bye
Maybe you should talk to the creator of this thread, because I took what he had, mixed it up a bit to suit my needs, then just posted it back on the internet. I don't recall seeing any copyrights in his thread.. Nor do I recall putting my name on it anywhere.
It's one thing to steal someone's book and copy it, or a 10 page term paper.. but I posted what, 10 lines of code that I speifically said "HEY, I REWROTE THIS FOR MY NEEDS, YOU CAN USE IT." Also, what's a tosspot? Is that like the a nice way of calling someone a .... ;)
I'm fully aware of intellectual property rights, I deal with them frequently trying to keep employees from bringing their opies of Office in and installing them on our systems here at work.
Natch
08-12-2004, 05:35 PM
Then you didn't read the terms of use of vbulletin.org - all work is copyright to the original poster!
integra99
08-12-2004, 05:44 PM
Happy?
Logikos
08-12-2004, 07:13 PM
I don't see where Colin said he wrote it and wants all credit. :confused:
Natch
08-12-2004, 11:42 PM
Sorry Live Wire - I don't see how that's relevant - but for mine, I've wasted too much time trying to explain concepts as simple as bread or milk to this guy - I give up.
I don't see why a tempalte edit is being disvussed so heavily here anyway -
Logikos
08-13-2004, 11:14 PM
Ya, take to vbt you too :p
sjaakie
09-01-2004, 10:05 AM
Someone has an idea how I can make this work in Mozilla? In IE it is working fine, mozilla it is one color.
ChuanSE
11-21-2004, 01:24 AM
*edit* :x
i allready thought that i used to find this hack over at vbt like more then a year ago hehehe
not gonna discuss bout, Natch said it all :p
CSS59
11-21-2004, 11:05 PM
[QUOTE=integra99]
What is navbar under? Forums? I cant find it :(
ChuanSE
11-22-2004, 05:46 AM
the template i presume, is called navbar...
JohnBee
11-29-2004, 04:44 PM
I for one would like to see the line:
Private message <blink> that would be so clean and much easier to intergrate :)
boo.3
12-09-2004, 09:31 PM
where is the template navbar?
boo.3
12-09-2004, 09:46 PM
nvm i found it
I installed this and got it to work but the blinking portion is on the left side in it's own bar. I tried modifing the alight=center to right and it made no difference.
Can someone help me, Even better would be if there was no text and the box on the upper right where the PM info is located just blinked.
Sorry I'm new to all this and trying to learn as I go
T3MEDIA
12-10-2004, 07:07 PM
Happy?
LOL best response I have read to date!
JohnBee
12-14-2004, 07:16 PM
I know this is far off from this hack but i'm hoping someone can help me.
I would like to have the
private Messages: 0 Unread, Total 15.
the bold part of this from my user welcome block to flash "say red & blue" typa thing
insdead of a huge honkin' bar flashing, is there a way to make text flash using html
or a java script instead of the bar thingy?
that would make a really clean and clear attractive PM notifier imo. for my site :)
any help is appreciated.
JohnBee
12-21-2004, 10:44 PM
I have completed the mod, thanks to anyone who considered it :rolleyes:
Scooterpig
05-11-2005, 05:55 AM
Anyone worked out how to get the flashy thingy going in Firefox or do we have a new hack somewhere that I've missed?..:)
notsonormal
11-18-2005, 10:20 AM
nevermind
sbryan
12-07-2005, 12:54 AM
nevermind
does this work in 3.5.1?
peterska2
12-07-2005, 01:00 AM
no, it only works on the 3.0.x series
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.