site stats box

Hello,

I found a post about how to remove "discussions" from the site stats box and that works great. However, I wanted to remove more items also. But when I add the same line of code after that line of code and change "discussions" to the name of anything else in the site stats box, the site crashes and gives me a syntax error. Also if I change discussions to "tags" for example, then "discussions" comes back naturally, but "tags" is not gone. Is "discussions" the only thing you can remove from the site stats box? Below is a copy of the post I found which removes "discussions" from the site stat box.

hello

I want to know which file I have to go to edit this block (image)

For example: delete "discussion"


In /inc/design.inc.php find this line

 

function getSiteStatBody($aVal, $sMode = '') {

 

right after it add:

 

        if ($aVal['capt'] == 'bx_forum_discussions')
                return "";

Quote · 1 Jan 2013

Changing of the site stat block does not require any changes to the code. And the code should not be modified. You should return the code back to normal and remove items you don't want from the database which is the proper way to do it.

Site stat items that appear in the block are in the database in the table sys_stat_site

You can remove the ones you don't want, change the order they appear in the box, change their icons, even add new ones.

If making changes manually in the database then you must clear the dolphin cache to see the changes.

To make it easier i have a module that can help you do it. http://www.boonex.com/m/Site_Stat_Manager_for_Dolphin_7

https://www.deanbassett.com
Quote · 1 Jan 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.