miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Including "admin" account in calculation of the Statistics

Author MarcDK
#1 | Posted: 18 May 2003 13:17 
look at the topic.

Why is the user "Admin" not included in the statistics? Is there a way to fix this on my own?

Author Team
#2 | Posted: 19 May 2003 10:45 
Because in 99% of cases "user admin" will have the most answered topics amount etc. etc. He will be the champion forever. So, this is our concept.

But if you don't like it you can change in setup_mysql request number 55 to that one:

/*Stats Stuff - most active users*/
if(!$sus) $result=mysql_query("SELECT $Tu.user_id, $Tu.username, count($Tp.poster_id) as cnt FROM $Tu, $Tp WHERE $Tu.user_id=$Tp.poster_id GROUP BY $Tp.poster_id ORDER BY cnt DESC, $Tu.user_id DESC $makeLim ");
if($result) $row=mysql_fetch_row($result);

Author MarcDK
#3 | Posted: 22 May 2003 09:41 | Edited by: MarcDK 
Thanx! Worked perfectly. An so simple. :)

Ok, but can I change the name "admin" to something else?

Because "admin" is not my username in the forum

Author Team
#4 | Posted: 22 May 2003 10:01 
What do you mean? Administator's name is kept in setup_options (you'll need to restore data in admin panel, if you change something).

Author MarcDK
#5 | Posted: 22 May 2003 10:12 
Ah! I forgot to hit the "Restore" Button :) Thanx!

Author MarcDK
#6 | Posted: 22 May 2003 10:17 

After I hit the restore button I am stil able to post but the topics are not going up in the ranking an the mainpage of the forum. So if I post something my last commented post is to pushed to the top!


Author Team
#7 | Posted: 22 May 2003 10:20 
Again, didn't understood. Have you checked probably your preferences? There are 2 options - Sort By New topics and Latest posts. Choose one, if you don't like you comments appear in some order.

Author MarcDK
#8 | Posted: 22 May 2003 10:26 
Ok, I changed the admin name a few months ago but 5 mintutes ago I hit the "restore Admindata" button the the Admin changed his name to my Username und now the statistics how the correct name.

But AFTER I hit the button ( 5 minutes ago) all Topics are not "Pushed" to the top. Not only mine. Every member who writes something has the same problem.

And I have checked my settings and.... the time of writing I changed to "latest posts"...Mhhh, what is the default setting for that? My I have restored something? Ok, it works of again.

So if you coul dbe so kind to tell me what is the default settings for all users for this setting?

Author Team
#9 | Posted: 22 May 2003 10:33 
Default setting is defined in $sortingTopics of setup_options (read manual for more).

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Including "admin" account in calculation of the 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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB