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
  #212  
Old 01-13-2003, 04:10 AM
time4akshun's Avatar
time4akshun time4akshun is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I make this hack also appear on vbHome? It is working on Forums Home but I would like it on my vBHome homepage also.

Any help would be appreciated!

Time
Reply With Quote
  #213  
Old 01-13-2003, 04:13 AM
time4akshun's Avatar
time4akshun time4akshun is offline
 
Join Date: Dec 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.teckwizards.com/forum/showthread.php?s=&threadid=180&highlight=vbHome+bl ink" target="_blank">http://www.teckwizards.com/forum/sho...t=vbHome+blink</a>

Think I found my answer.

Time
Reply With Quote
  #214  
Old 02-03-2003, 11:03 PM
esoin esoin is offline
 
Join Date: Jan 2002
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on 2.2.9! thanks

eso
Reply With Quote
  #215  
Old 02-16-2003, 11:57 AM
mini2 mini2 is offline
 
Join Date: Nov 2001
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed 'as-is' and this screwed up my forum display (I have a fixed width forum), it made the forum wider than it should have been.

I changed the code in index.php and this cured my problem, this is how:

PHP Code:
  // PM Blink Hack
  
if ($unreadpm['messages']==0) {
    
$pmblink='';
  } else {
    
$pmblink="<script language=\"JavaScript\">
<!-- Begin
pmBox.bgColor='#1D6AA0';
setInterval(\"Timer()\", 500);
x=1;
 function Timer() {
    set=1;
    if(x==0 && set==1) {
        pmBox.bgColor='#336D95" 
background="https://vborg.vbsupport.ru/images/catagory_backing.gif';
        x=1;
        set=0;
    }
    if(x==1 && set==1) {
        pmBox.bgColor='#1C5780';
        x=0;
        set=0;
    }
}
// End -->
</script>"
;
  } 
And changed the forumhome_pmloggedin template to simply:

$allpm[messages] total messages in all your folders.)</smallfont></td>
</tr>
$pmblink

Hope that's useful to others.


LOL vBulletin parses the code ^^^ never realised that before (ie the background color etc).

Well, hopefully you can figure it out if you need to!
Reply With Quote
  #216  
Old 02-17-2003, 02:18 PM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using it. Works fine. Just edit the bottom colour value in the template as you see fit I say (regarding 'same-colour' problems);

Code:
pmBox.bgColor='insert colour value';

		x=0;
		set=0;
	}
}
// End -->
</script>
Reply With Quote
  #217  
Old 02-17-2003, 02:20 PM
mini2 mini2 is offline
 
Join Date: Nov 2001
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sure it will work fine in most instances, but for some reason it completely screwed up my fixed width forum, the changes above meant no problems what so ever, and will also work for other forums (not just fixed width).

Reply With Quote
  #218  
Old 02-17-2003, 02:52 PM
maligno's Avatar
maligno maligno is offline
 
Join Date: Jun 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font size="5">thanks </font> :knockedout: :knockedout:
Reply With Quote
  #219  
Old 02-21-2003, 10:43 PM
Paraone Paraone is offline
 
Join Date: Feb 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
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]


YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...
Reply With Quote
  #220  
Old 02-22-2003, 12:01 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a piece of code that will give you blinking text (instead of a blinking background) that works in IE AND Netscape, if anyone is interested.
Reply With Quote
  #221  
Old 02-22-2003, 12:07 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Paraone




YES THANK YOU, this made my 2.3.0 start blinking...I LOVE YOU...
No problem. I'll let the wife know she has competition now. Maybe it'll straighten her out.
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 10:18 AM.


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.04390 seconds
  • Memory Usage 2,304KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)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