This post is for clearing up and clarifying some of the issues on this hack..First of all I have UBB 6.05 with WOL 4.0.0, NewsFader 2.1,UBB Codebuttons 6.7, smilie mod 1.0, Country flag hack, and several other hacks installed on my board..
After installing this hack correctly, It worked perfectly..So if it isn't, you've done something wrong..
Another reason for this post is fix some errors in the code..FreeTV got this one right..(putting the '/' before 'ubb')
Many of you who have experienced problems with this not working or not displaying properly can have it easily fixed..Here's how..For clarity I will copy and paste my edited version of these instructions
---------------------------------------------
#############################
#ubb_forum_summary.cgi open #
#############################
######################
#find three times (3 instances of): #
######################
print "$ThisHTML";
###############################
#Above that ADD (do this for each instance):#
###############################
$howmuch='0';
if (-e "$vars_config{MembersPath}/pm_users/$user_number.pos") {
open (FILE, "<$vars_config{MembersPath}/pm_users/$user_number.pos");
&lock;
$in=
;
$howmuch=$in;
&unlock;
close (FILE);
if ($howmuch eq "yes") {$howmuch = "a"};
$search="";
$replace='
You have '.$howmuch.' new PM in your message inbox';
if ($howmuch ne "0") {
$ThisHTML =~ s/$search/$replace/gim;
}
else{
$ThisHTML =~ s/$search//gim;
}
}
---------------------------------------------
This now fixes the following errors:
$replace='
now becomes
$replace='
(by adding the / before ubb you have now pointed the gif to the right folder (ubb) and not (cgi)..Also notice the on.gif is now pmon.gif which happens to be the real name of the gif included in the zip you downloaded)
also:
src="ubb/fnewm.wav"
now becomes...
src="/ubb/fnewm.wav"
(again, by adding the / before the ubb, you have now pointed the wav file to the right folder (ubb) and not the (cgi) folder..
---------------------------------------------
Final important note: After installing this hack you will not see anything different on your forums' main page until someone PM's you..At this point ask someone to PM you.. Or, even better, set up another username for yourself and then send a PM to your original username..After doing that, log back on under your original username and view the main forum page..You should see the "You have 1 new PM in your message inbox" link at the top of the page with a blinking light to the left of that link..Everytime you refresh this page, or, minimize and then maximize, you should hear the "You have new mail" wav file..Enjoy..
I have found no bugs with this hack as of yet.