Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
After adding the hack (two times) I get syntax errors at line 1957 and 1976 the first one at the "} Else" and the other at "}" has anyone else gotten this hack working on 5.47? Author claims it has in the text file, but not sure if it had to be "modified" for it to do so. Thanks in advance smile

Mike

Sponsored Links
Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
I had the same error! I think its a typo in the code...


Like a phoenix rising from the ashes..
Joined: Apr 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 5
I've a same error as well :rolleyes:

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Working fine on 5.47d


I can't afford a good signature editor frown
Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
anyone?


Like a phoenix rising from the ashes..
Sponsored Links
Joined: Apr 2001
Posts: 5
Junior Member
Junior Member
Offline
Joined: Apr 2001
Posts: 5
anyone know how to solve the problem?

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Maybe get rid of the "}" where it is not needed.

Joined: Mar 2001
Posts: 43
Member
Member
Offline
Joined: Mar 2001
Posts: 43
yeah as I said, its a typo.. here is the correct code; (am too lazy to search for the typo just replace this with what you have)

if ($checkit[1] eq "$threadnum") {
if ($itWasMoved eq 'yes') {
$checkit[6] = "Y$checkit[6]";
} else {
$checkit[6] =~ s/Y//isg;
}
if ($openclose eq "open") {
$checkit[6] =~ s/X//isg;
} elsif ($openclose eq "close") {
$checkit[6] = "X$checkit[6]";
} elsif ($openclose eq "top") {
$length = $in{'length'};
if (($TimeZoneOffset ne "") || ($TimeZoneOffset ne "0")) {
$adjustTime = time() + ($TimeZoneOffset * 3600);
} else { $adjustTime = time(); }
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime($adjustTime);
$year = $year +1900;
if ($length eq "perm") { $year = $year + 10; }
$mon++;
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
} else {
$year = substr($checkit[5],0,4);
$mon = substr($checkit[5],4,2);
$mday = substr($checkit[5],6,2);
$hour = substr($checkit[5],8,2);
$min = substr($checkit[5],10,2);
$JulianDate = &jday($mon, $mday, $year);
$Time = ("$hour" . "$min");
$JulianTime = ($JulianDate + ($Time * 0.0001));
$JulianTime = sprintf("%7.4f", $JulianTime);
$JulianTime =~ tr/ /0/;
$checkit[0] = $JulianTime;
}


Like a phoenix rising from the ashes..
Joined: Dec 2000
Posts: 27
Member
Member
Offline
Joined: Dec 2000
Posts: 27
I get the following error with the code

syntax error at /home/sites/site10/web/forums/cgi-bin/ubb_library.pl line 1677, near "} else"


which appears to be about this section of replacement code

Next, find:
---------------------------------------------------
############################################
# print finalarray to file

&Lock("lock.file");
open (THREADS, ">$ForumsPath/$ExactPath/forum$thisnumber.threads") or die("Unabl
e to open thread summary file");
foreach $one(@finalarray) {
chomp($one);
print THREADS ("$onen");
}
close (THREADS);
&Unlock("lock.file");

chmod (0666, "$ForumsPath/$ExactPath/forum$thisnumber.threads");

} # end ForumSummary sr
---------------------------------------------------

REPLACE that with:
---------------------------------------------------
############################################
# print finalarray to file

if ($WriteSummary ne "no") {
&Lock("lock.file");
open (THREADS, ">$ForumsPath/$ExactPath/forum$thisnumber.threads") or die("Unabl
e to open thread summary file");
foreach $one(@finalarray) {
chomp($one);
print THREADS ("$onen");
}
close (THREADS);
&Unlock("lock.file");

chmod (0666, "$ForumsPath/$ExactPath/forum$thisnumber.threads");
} else {
return (@finalarray);
}

} # end ForumSummary sr
---------------------------------------------------


any help would be gratefully recieved (btw using 5.47d)

tia

stubbsy

[ June 06, 2001 06:31 AM: Message edited by: stubbsy ]


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:
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,574
Posts293,926
Members13,850
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)