in forumdisplay.cgi
find
} else {
$ThisURL = qq($NonCGIURL/$ExactPath/HTML/$threadinfo[1].html);
}
paste under
# begin date under Topic Starter mod
@catarray = @blank;
if( open (CATFILE,"$NonCGIPath/$ExactPath/$threadinfo[1].cgi") ){
$cataux =
; $cataux = ;
@catarray = split(/||/, $cataux);
close(CATFILE);
$ThisYearcat = substr($catarray[3], 6, 4);
$ThisMonthcat = substr($catarray[3], 0, 2);
$ThisDaycat = substr($catarray[3], 3, 2);
if ($DateFormat eq "US") {
$TheDatecat = "$ThisMonthcat-$ThisDaycat-$ThisYearcat";
}
elsif ($DateFormat eq "Euro") {
$TheDatecat = "$ThisDaycat-$ThisMonthcat-$ThisYearcat";
}
elsif ($DateFormat eq "USX") {
$TheDatecat = &DateFormat("$catarray[3]", "USExpanded");
} else {
$TheDatecat = &DateFormat("$catarray[3]", "EuroExpanded");
}
}else{
print "Content-type: text/htmlnn";
print "Error: unable to open file (date under Topic Starter)n";
}
# end date under Topic Starter mod
find
$threadinfo[4]
replace for
$threadinfo[4]
$TheDatecat
thanks ubbdev for the idea.
edit: added non-us date format compatibility
------------------

This message has been edited by CopyCat on January 08, 2001 at 06:01 PM