miniBB Support Forums | 15 years on The Web
miniBB ®

miniBB

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

Disabling Statistics

 
Author Chefelf
Partaker
#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
Partaker
#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
Partaker
#5 | Posted: 16 Nov 2002 03:41 
I'm sorry... what part do I remove from stat.html?

Author Chefelf
Partaker
#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
Partaker
#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
 Share Topic's Link

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


 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


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 ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
↑ TOP