Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:include(dirname(__FILE__) . "/Framework.Functions.php");
options.incfile is neccessary to put on
chmod 777!
The statistics have been successfully reset
Notice: Undefined index: top_posting_user in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 117
Notice: Undefined index: top_discussion_starter in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 118
Notice: Undefined index: most_active_users in /home/greenbui/public_html/newforum/extensions/Statistics/default.php on line 121
Posted: Wednesday, 31 October 2007 at 6:29AM
if ($Context->SelfUrl == "index.php") {
Change it to:if (in_array($Context->SelfUrl, array("index.php", "categories.php", "post.php", "comments.php", "search.php"))) {
Leaving in only those pages on which you want to display it. In your case, you would just want index and categories.
Interesting.... it rolled over now about 2 hours later and is displaying the proper amount... looks like it just lags when rolling over from 999 to 1000
replace the last two chars "; on the end of line 86 in default.php with
\nusers_in_the_last_24_hours".$GlobalKey."1".$GlobalKey."0".$GlobalKey."0";
add the following line to default.php at line 41
$Context->SetDefinition("Statistic_users_in_the_last_24_hours", "Users Logged on the last 24 hours");
insert the followingline at line 123 to default.php
$this->StatisticsSQL['users_in_the_last_24_hours'] = "SELECT count(*) FROM `".$this->Context->DatabaseTables['User']."` WHERE DATE_SUB(NOW(),INTERVAL 1 DAY) <= ".$this->Context->DatabaseTables['User'].".".$this->Context->DatabaseColumns['User']['DateLastActive'].";";