I am having the same problems, I want to remove a ffew from there. I have made changes to the sitestats.inc by remming out these lines.
//'grs'=>array('capt'=>'Groups', 'query'=>'SELECT COUNT(`ID`) FROM `Groups` WHERE `status`=\'Active\'', 'link'=>'groups/all', 'icon'=>'grs.gif'),
//'cls'=>array('capt'=>'Classifieds', 'query'=>'SELECT COUNT(`ID`) FROM `ClassifiedsAdvertisements` WHERE `Status`=\'active\' AND DATE_ADD( `ClassifiedsAdvertisements`.`DateTime` , INTERVAL `ClassifiedsAdvertisements`.`LifeTime` DAY ) > NOW( )', 'link'=>'ads', 'icon'=>'cls.gif'),
I have also go as far as deleted the lines of code, uploading the new one and setting permissions to 644 on the file. All looks fine until I login to the admin section, than bam it shows back up again.
Does anyone know how I can remove items from the site stats and keep out.
When you login as Admin it will update file inc/db_cached/SiteStat.inc.php from the DB table SiteStat, you can delete it from there or you can do it like I have done.
One way to hide some of the SiteStat if you don't need they on your page and sort all they other.
(this will sort and hide your SiteStat in your Admin panel also, SiteStats is designed so)
1) Open file /inc/design.inc.php
Find function getSiteStatAdmin() and this sql query
$sqlQuery = "SELECT `Name` as `name`,
`Title` as `capt`,
`UserQuery` as `query`,
`UserLink` as `link`,
`IconName` as `icon`,
`AdminQuery` as `adm_query`,
`AdminLink` as `adm_link`
FROM `SiteStat`";
Edit last line in the sqlQuery to:
FROM `SiteStat` WHERE `StatOrder` > '0' ORDER BY `StatOrder` ASC";
2) Edit StatOrder in your table SiteStat,
Hide Site Stat: Set StatOrder = 0
Sort Site Stat: Set StatOrder = 1 -> 20
---
EXAMPLE,
3 rows Site Stat - sorted, I will hide Topics, Posts and Classifieds.
and my wish is that it shall displays in the order I have set it up below.
Members Photos Events
Online Videos Polls
New Today Music Blogs
This Week Profile Videos Articles
This Month Groups Tags
This Year Friends
Do it in this order:
2.1) Edit StatOrder on Topics, Posts and Classifieds first, this will you hide, set it to 0
2.2) Edit and set all the other StatOrder in your DB as below:
Members 1
Photos 2
Events 3
Online 4
Videos 5
Polls 6
New Today 7
Music 8
Topics 0 (I will hide this)
This Week 10
Profile Videos 11
Posts 0 (I will hide this)
This Month 13
Tags 15
Articles 12
This Year 16
Groups 14
Classifieds 0 (I will hide this)
Friends 17
Blogs 9
REMEMBER,
login to Admin Dashboard after you have edit something
this will update file inc/db_cached/SiteStat.inc.php
and your last change on Site Stat will show up on the homepage.
===============================================================
Probably you will have other choice on what you will hide and the order in which you want Sitestats, you can refresh your Admin Dashboard page when you have done all the changes to see about Site Stat is in the order you wish.
Good luck, Ottar