The ACCURATE Total Posts in Ultimate.cgi (Sorry, Dave#!) :) This gets ALL the posts in all 'on' forums. Copy all the following code; ## ## Start ACCURATE total posts ## @allforums = &OpenForumsFile; @forums = @blank; #make sure only open forums are listed in @forums foreach $ifopen(@allforums) { chomp($ifopen); @checkit = split(/\|/, $ifopen); if ($checkit[3] eq "On") { push (@forums, $ifopen); } } for $each(@forums) { @thisforuminfo = split(/\|/, $each); chomp($thisforuminfo[8]); $x = "$thisforuminfo[8]"; if ($thisforuminfo[6] eq "private") { $ExactPath = "Forum$x/private-$thisforuminfo[7]"; } else { $ExactPath = "Forum$x"; } my @data = &OpenFile("$ForumsPath/$ExactPath/lastnumber.file"); $TotalTopics = $data[1]; chomp($TotalTopics); $TotalPosts = $data[2]; chomp($TotalPosts); if ($TotalTopics eq "") { $TotalTopics = "0"; } if ($TotalPosts eq "") { $TotalPosts = "0"; } $AbsTopics = $AbsTopics + $TotalTopics; $AbsPosts = $AbsPosts + $TotalPosts; } ## ## End ACCURATE total posts ## And paste it in Ultimate.cgi ABOVE: print < $BBName - powered by the Ultimate Bulletin Board You can then refer to $AbsTopics and $AbsPosts anywhere below that line.