Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #282  
Old 01-05-2004, 06:37 AM
Amavisca Amavisca is offline
 
Join Date: Oct 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Li i got same problem as u. PPl help plz...
Reply With Quote
  #283  
Old 01-07-2004, 05:48 AM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is inside of a td tag - it's not on a line all by itself. In 2.2.7 (the version we run) it's the 2nd line of that template. Here's the first part of that line:

<td bgcolor="{categorybackcolor}" colspan="6">

you should change it to this:

<td id="pmBox" bgcolor="{categorybackcolor}" colspan="6">
Reply With Quote
  #284  
Old 01-20-2004, 12:54 PM
sdp777's Avatar
sdp777 sdp777 is offline
 
Join Date: Nov 2003
Location: Jacksonville, FL
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Honestly, this is such a simple thing...why its not working I cant tell.

I have followed this entire 19 page thread....and no luck.

I am having no problems following the instructions...but no matter what I have done per the instructions on thread I am getting no flashing on 2.3.0 Candidate 2. I do get a color change...and a java error.

See attached. Line 310 doesnt have a 'set'. Not sure...sometimes this error says the same thing but 'x' replaces set. Same line number.

Any insight would be really helpful.
Reply With Quote
  #285  
Old 01-20-2004, 05:14 PM
buro9 buro9 is offline
 
Join Date: Feb 2002
Location: London, UK
Posts: 585
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sdp777
Honestly, this is such a simple thing...why its not working I cant tell.

I have followed this entire 19 page thread....and no luck.

I am having no problems following the instructions...but no matter what I have done per the instructions on thread I am getting no flashing on 2.3.0 Candidate 2. I do get a color change...and a java error.

See attached. Line 310 doesnt have a 'set'. Not sure...sometimes this error says the same thing but 'x' replaces set. Same line number.

Any insight would be really helpful.
I registered on your board to sort this one out for you... what I found is that your javascript is indeed broken.

It currently produces this:

Quote:
<script language="JavaScript">
<!-- Begin
pmBox.bgColor='#000080';
setInterval("Timer()", 500);
x=1;
function Timer() { x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#7690DA';
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#000080';

x=0;
set=0;
}
}
// End -->
</script>
And that really wouldn't work... you've moved brackets around for starters!

What you want to end up with is this:
Quote:
<script type="text/javascript" language="JavaScript">
<!-- Begin
pmBox.bgColor='#000080';
setInterval("Timer()", 500);
x=1;
function Timer() {
set=1;
if(x==0 && set==1) {
pmBox.bgColor='#7690DA';
x=1;
set=0;
}
if(x==1 && set==1) {
pmBox.bgColor='#000080';
x=0;
set=0;
}
}
// End -->
</script>
So take the above example code... put in your replacement vars for the colours... and then drop that into the pmloggedin template thingy (you know the one... search your templates for pmBox if you don't... there's only one of them).

Then it will work.



Cheers

David K

PS: Can you delete the account 'testing' from your vBulletin please... I'd rather not leave accounts all over the Internet for things that I forget about
Reply With Quote
  #286  
Old 01-24-2004, 12:18 AM
Razor-X Razor-X is offline
 
Join Date: Dec 2003
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a wonderful hack, but is there a way to do this in vB 3?
Reply With Quote
  #287  
Old 01-26-2004, 10:09 PM
AKAAirborne AKAAirborne is offline
 
Join Date: Aug 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody have another solution to the pm bar blinking continuously even when the pm's have been deleted.

On a side note I have made the changes to the index.php pages and it still blinks all the time.
Reply With Quote
  #288  
Old 02-18-2004, 06:48 PM
rms10 rms10 is offline
 
Join Date: Jan 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Razor-X
This is a wonderful hack, but is there a way to do this in vB 3?
http://www.vbulletintemplates.com/mo...6712#post46712
Reply With Quote
  #289  
Old 03-06-2004, 03:07 PM
kr?mel kr?mel is offline
 
Join Date: Feb 2003
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good hack =D
Reply With Quote
  #290  
Old 04-21-2004, 11:09 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:disappointed: ok, I am a newbie idiot I guess when it comes to this. I've done a few hacks but I have a hell of a time everytime...

OK...I was supossed to find something in the index.php and it is not there... Where is it?? Am I looking in the right index.php file??

Believe me..I am trying as hard as I can to learn but I still have to keep asking stupid questions like this...
Reply With Quote
  #291  
Old 04-21-2004, 11:19 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am more of an idiot than I thought... I was trying to install this in vb3--

I found the proper hack and it woeks like a charm...Thanks
Reply With Quote
Reply

Thread Tools

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:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04785 seconds
  • Memory Usage 2,303KB
  • 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_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
  • (1)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