Previous Thread
Next Thread
Print Thread
Rate Thread
#134779 07/20/2001 10:46 PM
Joined: Jun 2001
Posts: 56
Member
Member
Offline
Joined: Jun 2001
Posts: 56
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.

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.0x] ViewPmInfo1.2 Astro23 05/25/2001 6:54 PM
Re: [6.0x] ViewPmInfo1.2 topiland 05/26/2001 3:14 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 05/26/2001 4:51 PM
Re: [6.0x] ViewPmInfo1.2 topiland 05/26/2001 6:49 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 05/26/2001 8:58 PM
Re: [6.0x] ViewPmInfo1.2 mark99 05/29/2001 8:59 PM
Re: [6.0x] ViewPmInfo1.2 NaTaS 05/29/2001 11:38 PM
Re: [6.0x] ViewPmInfo1.2 Poacher 05/29/2001 11:43 PM
Re: [6.0x] ViewPmInfo1.2 mark99 05/30/2001 11:31 AM
Re: [6.0x] ViewPmInfo1.2 e@sy 05/30/2001 12:04 PM
Re: [6.0x] ViewPmInfo1.2 mark99 05/30/2001 6:36 PM
Re: [6.0x] ViewPmInfo1.2 freeTV 05/30/2001 8:29 PM
Re: [6.0x] ViewPmInfo1.2 Rinkrat 05/31/2001 6:38 PM
Re: [6.0x] ViewPmInfo1.2 freeTV 05/31/2001 7:44 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 06/02/2001 6:06 AM
Re: [6.0x] ViewPmInfo1.2 CoryDiscus 06/18/2001 3:44 PM
Re: [6.0x] ViewPmInfo1.2 Sundin13 06/18/2001 5:55 PM
Re: [6.0x] ViewPmInfo1.2 dizturbd 06/19/2001 3:47 AM
Re: [6.0x] ViewPmInfo1.2 BooZeR 06/19/2001 10:09 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 06/20/2001 5:35 AM
Re: [6.0x] ViewPmInfo1.2 Brett 06/22/2001 12:26 AM
Re: [6.0x] ViewPmInfo1.2 Degen 07/14/2001 12:21 AM
Re: [6.0x] ViewPmInfo1.2 CoryDiscus 07/14/2001 7:57 AM
Re: [6.0x] ViewPmInfo1.2 humble [ThC] 07/15/2001 7:19 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 07/18/2001 4:51 PM
Re: [6.0x] ViewPmInfo1.2 Phase Strike 07/19/2001 3:33 AM
Re: [6.0x] ViewPmInfo1.2 TorN 07/21/2001 5:46 AM
Re: [6.0x] ViewPmInfo1.2 josh 07/21/2001 5:53 AM
Re: [6.0x] ViewPmInfo1.2 LK 07/21/2001 10:10 AM
Re: [6.0x] ViewPmInfo1.2 melder 07/31/2001 3:11 PM
Re: [6.0x] ViewPmInfo1.2 Necrosis 09/17/2001 12:49 AM
Re: [6.0x] ViewPmInfo1.2 Angel of Death 09/23/2001 3:21 PM
Re: [6.0x] ViewPmInfo1.2 Astro23 09/23/2001 5:39 PM
Re: [6.0x] ViewPmInfo1.2 P.E.T. 09/23/2001 10:19 PM
Re: [6.0x] ViewPmInfo1.2 RTF Admin 10/28/2001 9:07 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 3408
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 2
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)