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
  #172  
Old 08-04-2002, 06:57 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are wrong. On line 27 of an unhacked index.php from version 2.2.6 is the following:

PHP Code:
 if ($newpm['messages']==0) {
    
$lightbulb='off';
  } else {
    
$lightbulb='on';
  }
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";"); 
Quote:
Originally posted by mauisun
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
  #173  
Old 08-04-2002, 07:12 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could just smack myself in the head because I searched that whole friggin document and did not see any of those words. sorry to waste your time, haven't a cluse as to why I missed it, will be more cautious int he future. will let you know once it is working good, thank you for the help
....mauisun
Reply With Quote
  #174  
Old 08-04-2002, 07:23 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/ /======================================\ | Open index.php, and find this: | \======================================/ if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } /======================================\ | After that, add this code: | \======================================/ if ($unreadpm['messages']==0) { $pmblink='//'; } else { $pmblink=''; } /======================================\ | Save index.php and upload. | \======================================/ /======================================\ | In the template forumhome_pmloggedin | | find this: | \======================================/ bgcolor="{categorybackcolor}" /======================================\ | Before that, add this code: | \======================================/ id="pmBox" /======================================\ | In the same template find this: | \======================================/ /======================================\ | And after that, add this script: | \======================================/ /======================================\ | By Chen 'FireFly' Avinadav | | chen.avinadav@vbulletin.com | \======================================/


this is an exact copy and paste of the readme text file. after you add the id="pmBox" part of the code it says to add this next and there is nothing there to add, it says after that to add this script, nothing there to add, does anyone else know what the missing code is here?
....mauisun
Reply With Quote
  #175  
Old 08-04-2002, 07:27 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After this:

PHP Code:
</smallfont></td>
</
tr
add this:

PHP Code:
<script language="JavaScript">
<!-- 
Begin
$pmblink pmBox
.bgColor='{tableheadbgcolor}';
$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='{tableheadbgcolor}';
        
x=0;
        
set=0;
    }
}
// End -->
</script
is the rest of it.
Reply With Quote
  #176  
Old 08-04-2002, 07:46 PM
mauisun mauisun is offline
 
Join Date: Jul 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun
Reply With Quote
  #177  
Old 08-04-2002, 07:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong again. It is in the file in the first post of this thread. Right at the bottom. You might want to re-download it.

Quote:
Originally posted by mauisun
worked like a charm, my thanks Boofo I appreciate it, wonder why that string of java is not in the original text file at the beginning of this thread? well, anyways, thanks I appreciate it
.....mauisun
Reply With Quote
  #178  
Old 09-02-2002, 08:06 PM
Baptizer Baptizer is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I upgraded from 2.0.3 to 2.2.7 and i am having a problem. I double checked the hack and it is still intact, but the flashing wont stop! even when i dont have any messages in my box! i even deleted them all! does anyone know how to get it to stop blinking when there are no messages??? ACCCK!!! heh
Reply With Quote
  #179  
Old 09-02-2002, 08:33 PM
Baptizer Baptizer is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it fixed me thinks...call off the search dogs!! I just reinstalled it again and left out the wheel over stuff....and then re-added wheel over! thanks!
Reply With Quote
  #180  
Old 09-02-2002, 10:54 PM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've install on 2.2.7 and work prefect
Reply With Quote
  #181  
Old 09-03-2002, 05:30 PM
DarkyB DarkyB is offline
 
Join Date: Aug 2002
Location: Norway, Oslo
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That hax rox0rs
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 07:22 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.13413 seconds
  • Memory Usage 2,316KB
  • 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
  • (3)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
  • (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