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
  #52  
Old 10-26-2003, 02:37 AM
MaxScript MaxScript is offline
 
Join Date: Sep 2003
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any luck on vb3 b7 ?
Reply With Quote
  #53  
Old 10-26-2003, 05:41 PM
digital vettes digital vettes is offline
 
Join Date: Jan 2003
Location: Tippy top of Illinois
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Unknown553
Works fine for me, blinks with new messages (read and unread) and server is seeing no increase whatsoever. Using IE 6.
Very nice hack. Worked well! Thank you.

www.digitalcorvettes.com
Reply With Quote
  #54  
Old 02-04-2004, 05:15 PM
sgtmaj sgtmaj is offline
 
Join Date: Jan 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK
ya. it does, until you read them all.
for some reason this isn't working for me. Could it possibly be due to the fact that I use a backgound image, instead of background color for my table headers???
Reply With Quote
  #55  
Old 04-19-2004, 03:14 PM
Emmy2 Emmy2 is offline
 
Join Date: Jan 2004
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack, thank you!
Reply With Quote
  #56  
Old 04-30-2004, 12:11 AM
DenzoForums DenzoForums is offline
 
Join Date: Apr 2004
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Emmy2
Very nice hack, thank you!
anybody know where i can get this or something like it for vb 3.0.1?
Reply With Quote
  #57  
Old 07-29-2004, 12:48 PM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Teck: Nice, but do you have a current js script for the blink part?

visibility: show/hide for firefox i.e.?

Does work perfect in IE but not in Gecko

Thanks,
-Tom


/edit: Got one

Update JS code to this (delete old, add the following):
Code:
<script type="text/javascript">
<!--
// interval length (in seconds)
var intervalLength = .7;
function emulateBlink() {
 objs = document.getElementsByTagName("span");
 for(x = 0; x < objs.length; x++) {
  if(objs[x].className == "blink") {
   if(objs[x].style.visibility == "hidden") {
	objs[x].style.visibility = "visible";
   } 
   
   else {
	objs[x].style.visibility = "hidden";
   }
  }
 }
 window.setTimeout("emulateBlink();",(intervalLength * 1000));
}
if(document.getElementsByTagName) {
 emulateBlink();
}
-->
</script>
and then change the new pm link in the template header_pm to look like this:

Code:
<span class="blink">something</span>
Great!
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:35 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.04716 seconds
  • Memory Usage 2,265KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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