Today Mod
1.2
This Mod changes the message last post time to Today if the last post date same as now
1.1 by [CV]XXL: fixed invalid boardmod commands
1.2 by [CV]XXL: hope all errors are fixed!
Max
http://www.chilun.com
Sources/MessageIndex.pl
# Print the thread info.
$mydate = &timeformat($mdate);
fopen(FILE, "$datadir/$mnum.txt");
@hack = ;
fclose(FILE);
@body = split(/\|/, $hack[0]);
@content = split(/
/, $body[8]);
($mm, $dd, $yy) = split(/\//, $date);
($mm1, $dd1, $yy1) = split(/\//, $mdate);
@thetime = split(/,/, $mydate);
if (($mm == $mm1) && ($dd == $dd1) && ($yy == $yy1)) {
$mydate = "$today_mod{'1'} $thetime[2]";
}
else {
$mydate = &timeformat($mdate);
}
english.lng
$txt{'749'} = "The 'number of posts' box can only contain digits.";
# Today Text
$today_mod{'1'} = "Today at";