PDA

View Full Version : Help with footer stats


GCSkye
03-01-2009, 01:56 PM
I have noticed when you disable post count in for a forum, the forum stats in the footer also do not count those posts.

I need to have it so they continue to count posts even for forums that don't count posts count to users overall posts count.

Help would be appreciated, and I am aware this requires editing vbfiles.

http://evercube.net/images/footerstats.png

I have found the following at the bottom of the index.php file. Other than this I have found nothing relating to forum stats:


// ### BOARD STATISTICS #################################################

// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($vbulletin->forumcache))
{
foreach ($vbulletin->forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);

// get total members and newest member from template
$numbermembers = vb_number_format($vbulletin->userstats['numbermembers']);
$newusername = $vbulletin->userstats['newusername'];
$newuserid = $vbulletin->userstats['newuserid'];
$activemembers = vb_number_format($vbulletin->userstats['activemembers']);
$show['activemembers'] = ($vbulletin->options['activememberdays'] > 0 AND ($vbulletin->options['activememberoptions'] & 2)) ? true : false;

I don't know what that is relating too but it doesn't seem to be the homepage stats.

Any help?

Mr-Moo
03-01-2009, 07:28 PM
This issue was resolved in the following thread:
https://vborg.vbsupport.ru/showthread.php?t=207021

Lynne
03-01-2009, 08:01 PM
What forum stats in the footer are you talking about? I'm looking at the footer here, and see no stats at all. You may want to post an image of what it is you are trying to do.