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
  #32  
Old 04-16-2002, 04:06 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but does becomes invisible right after you checked the messages?
once you clicked on the link, it should dissapear.
Reply With Quote
  #33  
Old 04-16-2002, 08:36 PM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, it doesn't. vB still classifies it as "new" even after I read it, it still blinks in the header and still says I have one new message on the forum home too (in the PM section).
Reply With Quote
  #34  
Old 04-16-2002, 08:45 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that explains why it still blinks. the script grabs the status of your new messages. when your message is not considered "new" (in pm section), your link will stop blinking.
Reply With Quote
  #35  
Old 04-16-2002, 10:52 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nakkid
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.
It doesn't slow down the server, it only slows down the loading up of pages because of the javascript added to each page, that's all. If it works for people, great. Don't get me wrong, the text does blink with new PMs - I was hoping for something more similar to Firefly's which blink only for new UNREAD PMs, not new READ PMs.

It's a great hack, well done. Keep up with the great hacks. Sorry if I came across as though I was complaining - I was just pointing out what I found, that's all.
Reply With Quote
  #36  
Old 04-16-2002, 11:22 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for unread pm's replace:
PHP Code:
$headpm=$DB_site->query_first("SELECT count(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers"); 
with:
PHP Code:
$headpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers"); 
Reply With Quote
  #37  
Old 04-17-2002, 03:54 AM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's in the global.php too, for those that are wondering. Back to the slow loading times, I don't see a difference as I am on a cable modem, but I bet dial up users will feel some lagging. Any way to add the extra javascript to only the new posting pages?
Reply With Quote
  #38  
Old 04-17-2002, 03:57 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"That's in the global.php too"?? what do you mean?
you only change the code in global.php.
Reply With Quote
  #39  
Old 04-17-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

I know, but in your post you didn't mention it, so I had to load up the install file again and checked the file, instead of just editing it through vBengine like I do with most other hack updates
Reply With Quote
  #40  
Old 04-17-2002, 04:07 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is no need to mention it.. the changes are done only in global.php (where the $headpm variable appears).
in the install file is marked clearly that you mod forum/global.php, not other files.
Reply With Quote
  #41  
Old 04-17-2002, 04:25 AM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but again, I don't have your hack/install file memorized, so a simple "In global.php" would have been nice, so I wouldn't have had to open up the file again. I've installed many hacks, I don't remember which hacks edit which files.
Reply With Quote
  #42  
Old 04-17-2002, 04:31 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is better to read the hack readme before you install it, or do any changes. i do this all the time with any hacks i reedit, so i have it fresh in my head the procedure.

as i said before, we are talking about this hack, not another. so it reffers only to global.php file.
Reply With Quote
  #43  
Old 04-17-2002, 04:38 AM
Unknown553's Avatar
Unknown553 Unknown553 is offline
 
Join Date: Oct 2001
Location: Las Vegas, NV, USA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, but I just cleared it up in case someone was wondering what file that was from, is that so wrong?
Reply With Quote
  #44  
Old 04-17-2002, 04:48 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no. thanks.
alot of people get confused (at least me ) when other users post lines in hack threads... like:
"That's in the global.php too".

just wanted to make sure is all clear. that's all.
Reply With Quote
  #45  
Old 04-23-2002, 10:23 AM
Entourage Entourage is offline
 
Join Date: Apr 2002
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very very very cool !!! Tnx mate !
Reply With Quote
  #46  
Old 06-28-2002, 06:26 PM
Sweet Evil Sweet Evil is offline
 
Join Date: Nov 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

after checking pm's it is still flashing "5 New PM(s)" :ermm:

nice Hack anyhow...
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 04:40 AM.


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.07031 seconds
  • Memory Usage 2,358KB
  • Queries Executed 30 (?)
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_php
  • (1)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
  • (3)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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