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
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-09-2001 Last Update: Never Installs: 281
 
No support by the author.

This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!

NO MORE!

Install this very easy hack and no one will be able to ignore the PM again.

This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.

Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.

To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it.

Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests.

Anyway, have fun!

Show Your Support

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

Comments
  #162  
Old 07-07-2002, 05:33 PM
Peace Peace is offline
 
Join Date: Apr 2002
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #163  
Old 07-10-2002, 12:49 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #164  
Old 07-13-2002, 01:36 AM
sung sung is offline
 
Join Date: Feb 2002
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack man.
Reply With Quote
  #165  
Old 07-15-2002, 04:35 PM
Heineken77 Heineken77 is offline
 
Join Date: Jul 2002
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #166  
Old 07-16-2002, 05:24 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #167  
Old 07-16-2002, 05:39 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #168  
Old 07-16-2002, 07:23 AM
RaZor Edge's Avatar
RaZor Edge RaZor Edge is offline
 
Join Date: Jan 2002
Location: Quebec city
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note: Strange.... if you put { tableheadbgcolor } (without space) in this message... it will be change to #1D6AA0... gre:
Reply With Quote
  #169  
Old 07-29-2002, 05:46 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #170  
Old 08-02-2002, 05:12 AM
Thunderpuck Thunderpuck is offline
 
Join Date: Jan 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #171  
Old 08-04-2002, 06:53 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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:30 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.07158 seconds
  • Memory Usage 2,320KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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
  • (2)pagenav_pagelinkrel
  • (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