Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New PM's in Header (blinking text or image) Details »»
New PM's in Header (blinking text or image)
Version: 1.00, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-13-2002 Last Update: Never Installs: 44
 
No support by the author.

Since I don't really like the the PM window notification alert built in VB, I wanted to have a little link in the header that blinks and tell me (no matter what page i view at the moment) that I have a new PM from one of the users.

The link is invisible by default. When you get a message, it starts to [high]blink[/high].

The good part about this hack is that you don't have to edit the database and also that you can customise it through the VB template system. The Java script that makes the link to blink doesn't insert any [high]onLoad();[/high] in <body>, so it will work independently from any other Java scripts you inserted in your pages.
This hack will work in both, IE and Netscrape.

ESTIMATED INSTALL TIME: 3 minutes
TESTED IN VERSION: 2.2.5

NOTE: As a thank you for using my hack, please click on the INSTALL button. You will receive updates in your email, whenever I add new features to it and it will let me evaluate better the quality of my hacks.
[high]Also post a reply with your comments. Your oppinion is important to me.[/high]

[high]HACK UPDATES[/high]
Version 1.1 Released
-------------------------------------------
Added the choice between 'blinking text' or 'blinking image'


To download the latest version of this hack, click below:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-15-2002, 07:22 AM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]
Quote:
Originally posted by -=dm=-
cool!!
installed

but it didnt work for me in the postbit.
neither for me... but I got it to wotk in header...
Reply With Quote
  #23  
Old 04-15-2002, 08:11 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The headinclude script does slow down the loading of my pages quite a bit for some reason. Also, the PM text is blinking even after you have read your message - it blinks when you have new messages since your last visit, not when you have unread messages (unlike Firefly's PM bar blink hack).
Reply With Quote
  #24  
Old 04-15-2002, 08:12 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack and all, but in the install file it says that you've been having trouble with the div tags. You don't even need the div tag, the A tag has the id attribute too (oh yeah, and there is no title attribute in the A tag either), so you can change

Code:
<div id="pm"><a href="private.php?s=$session[sessionhash]" title="Private Messages"><smallfont>$headpm[messages] New PM(s)</smallfont></a></div>
<script language="javascript">
blink('pm');
</script>
to
Code:
<a href="private.php?s=$session[sessionhash]" id="pm"><smallfont>$headpm[messages] New PM(s)</smallfont></a>
<script language="javascript">
blink('pm');
</script>
And it works fine, with no concern for HTML errors.
Reply With Quote
  #25  
Old 04-15-2002, 11:07 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool.. thanks alot for the tip.. you see?? i get help from everyone..
i will mod this.. but before can anyone else try it? i guess is done this way for netscape..

can anyone with netscape test it? thanks.
Reply With Quote
  #26  
Old 04-15-2002, 11:12 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
The headinclude script does slow down the loading of my pages quite a bit for some reason. Also, the PM text is blinking even after you have read your message - it blinks when you have new messages since your last visit, not when you have unread messages (unlike Firefly's PM bar blink hack).
hmm it should not slow you down at all.. there are few people who test it on their servers, no probs at all.

and this is not a hack inspired from firefly's.
Reply With Quote
  #27  
Old 04-15-2002, 11:15 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]1) I can assure u, that it doesn't slow down your forums at all...
2) works just great at mine forums, no errors, no blinking after u have read all messages
3) Firefly's hack and this one is two different things...
Reply With Quote
  #28  
Old 04-15-2002, 11:21 PM
wooolF[RM]'s Avatar
wooolF[RM] wooolF[RM] is offline
 
Join Date: Jan 2002
Posts: 524
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

]works fine, thanx

Quote:
Originally posted by Unknown553
Great hack and all, but in the install file it says that you've been having trouble with the div tags. You don't even need the div tag, the A tag has the id attribute too (oh yeah, and there is no title attribute in the A tag either), so you can change

Code:
<div id="pm"><a href="private.php?s=$session[sessionhash]" title="Private Messages"><smallfont>$headpm[messages] New PM(s)</smallfont></a></div>
<script language="javascript">
blink('pm');
</script>
to
Code:
<a href="private.php?s=$session[sessionhash]" id="pm"><smallfont>$headpm[messages] New PM(s)</smallfont></a>
<script language="javascript">
blink('pm');
</script>
And it works fine, with no concern for HTML errors.
Reply With Quote
  #29  
Old 04-16-2002, 03:03 AM
trainer trainer is offline
 
Join Date: Nov 2001
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Erwin
The headinclude script does slow down the loading of my pages quite a bit for some reason. Also, the PM text is blinking even after you have read your message - it blinks when you have new messages since your last visit, not when you have unread messages (unlike Firefly's PM bar blink hack).
i had the same problem, it still flashs when i have already read the PM. i would rather it only flash when there is unread PM's, i uninstalled it because of this issue. great hack that i think should be added to vb3 instead of the pop-up
Reply With Quote
  #30  
Old 04-16-2002, 03:11 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is wierd. i get 2 comments. one that is working perfect and the other that it slows down the server and it doesnt blink only on new pm's.

well, it does blink only in new pm's. and it doesnt slow down my server. so far i got 3 people telling me on messenger that it works perfect (blinks the right way, server ok) and 2 here, that it doesnt.

can you be more specific? what browser do you use?
is all related to browser.
Reply With Quote
  #31  
Old 04-16-2002, 04:02 AM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine for me, blinks with new messages (read and unread) and server is seeing no increase whatsoever. Using IE 6.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07127 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete