miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
How To miniBB Support Forums / How To /   

Disabling Statistics

Author Chefelf
Registered
#1 | Posted: 13 Nov 2002 01:43 
How does one disable individual statistics on the statistics page. I would like to just disable the "number of posts" part of the statistics page but if necessary I will disable the entire page.

I wouldn't mind having access to the statistics I just don't want it to be viewable to the users of the board... I'm getting a lot of people who want to have the most posts and it's kinda annoying.

Thanks!

Author Team
8-)
#2 | Posted: 13 Nov 2002 10:12 
Chefelf
Do you mean the general statistics or the statistics shown in user info? If general, you need nust to remove some stuff from the template. Also, you can remove the "Statistics" menu from the main_header ($l_menu[3]).

Author Chefelf
Registered
#3 | Posted: 13 Nov 2002 22:43 
I guess I'd like to know how to do both. User info and in general. Is there a way to just disable certain statistics (i.e. most active user)? Thanks for your help!

Author Team
8-)
#4 | Posted: 14 Nov 2002 10:39 
Chefelf
I guess, you need just to remove this part from stats.html template.

Author Chefelf
Registered
#5 | Posted: 16 Nov 2002 03:41 
I'm sorry... what part do I remove from stat.html?

Author Chefelf
Registered
#6 | Posted: 16 Nov 2002 03:45 
And, also, how can I eliminate it from the user info page?

Author Team
8-)
#7 | Posted: 19 Nov 2002 10:43 
what part do I remove from stats.html?
It's a part with "$l_stats_numPosts".

how can I eliminate it from the user info page?
You need to comment or remove a snippet in bb_func_usernfo.php

/* Posts count */
if ($lastT=DB_query(93,0)) {
$what=$l_stats_numPosts;
$whatValue=$lastT[0]-$whatValue;
$USERINFO.=ParseTpl($usrCell);
}

Author Chefelf
Registered
#8 | Posted: 22 Nov 2002 23:22 
Thanks a lot for your help. I don't have the file bb_func_usernfo.php. Maybe that's for the newer version.

I searched and found it in the file functions.php and commented out the following:

/* Activities */
$what=$l_usrInfo[10]; $whatValue=uFstats($user);
$cell=$usrCell;
eval("\$cell = \"$cell\";"); $cell=stripslashes($cell);
$USERINFO.=$cell;

Works like a charm! Thanks again!

Author Team
8-)
#9 | Posted: 25 Nov 2002 10:35 
Chefelf
Ah, you have older version :) UPGRADE to new - recommended :) We are no longer supporting old versions.

How To miniBB Support Forums / How To / Disabling Statistics Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB