@ Michael
please take a look whatis the differrence btw this and user post stat
### USER POSTING STATS ###
fopen(FILE, "$memberdir/$INFO{'username'}.mh");
@mhfile = <FILE>;
fclose(FILE);
$subjectlast = $mhfile[1];
$icon = $mhfile[2];
$threadnum = $mhfile[3];
$startnum = $mhfile[4];
$currentboard = $mhfile[5];
if($icon ne '') {
$iconimg = qq~<img src="$imagesdir/$icon.gif">~;
} else {
$iconimg = "";
}
if($memsettings[14] ne '') {
($usermonth, $userday, $useryear) = split(/\//, $memsettings[14]);
}
if($memsettings[14] eq "Start of these Forums ;-)") {
$usermonth = "01";
$userday = "01";
$useryear = "101";
}
$|++;
use Time::Local;
my $day = 24 * 60 * 60;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$year = $year + 1900;
$usermonth = $usermonth - 1;
my $today = timelocal(0,0,12,$mday,$mon,$year);
my $days = timelocal(0,0,12,$userday,$usermonth,$useryear);
$dif = int ( ($days - $today)/$day ), "\n";
$dif = $dif * -1;
[highlight size=2 color=green background=]if($dif == '0') {
$dif = '1';
}
$avpost = $memsettings[6] / $dif;
$avpost = sprintf("%.2f", $avpost);[/highlight]
### END USER POSTING STATS ###