Support Forum

Remove the Forum Stats at the bottom

AM AM
AM
Member

Hi,

Is there some option that will not show the Forum stats at the bottom. I have public forum that is read only. But I don’t want to display how many forums and who the administrators etc. 

How do I remove this.

 

Thanks

10 Answers

New Answer

MP Mr Papa
Mr Papa
Member

its all controlled by the theme and template functions… so you can remove (or add) whatever you want…

see:  http://codex.simple-press.com/codex/faq/problem-with-post-edit-buttonow-to/faq-how-to-remove-simplepress-acknowledgments/

that deals with the acknowledgments, but applies to the stats too which are also in the spFoot.php template file… just different function calls you want to remove… if you look at that file, think it will be obvious, but if not, please come on back…

ZS Ziggy Smith
Ziggy Smith
Member

Hi Mr Papa,

I was trying to do the same thing. Thanks for the info :)

YS Yellow Swordfish
Yellow Swordfish
Member

Sounds like you found it in the end. Excellent.

AM AM
AM
Member

FYI,

I did not want to change the template for this small change (and lose the ability to apply future updates with a click).

I decided to simply hide the stats using CSS:

/* Remove the stats section */
#spMainContainer .spStatsSection,
#spMainContainer .spNewMembers,
#spMainContainer .spAdministrators { display: none; }

Of course a user could do “view source” and see the stats – but that’s not a concern in this case.

Regards

CK Christina Kennedy
Christina Kennedy
Member

Is there a way to just make the stats visible to members and hide from guests?

MP Mr Papa
Mr Papa
Member

yes… stats are shown in the spFootphp template file… so edit that file in your sp theme… if you dont have your own sp theme, please create one vs editing ours to keep from losing changes on an upgrade…

like earlier in the this thread, find the stats display stuff… instead of removing, surround it by an if statement… like this:

if ($spThisuser->member) { # all the display code here }

that way its just shown for members…

CK Christina Kennedy
Christina Kennedy
Member

Thank you, Mr. Papa.  We are just using the default sp theme.  If I just copy it and edit it, will it no longer get updates? 

Is there something I could add to a custom css file?

MP Mr Papa
Mr Papa
Member

correct… as we continually say, make your own theme…. its easy starting with one of ours… see:

http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

its just like a wp theme – if you make changes, you will lose them on updates…  you cannot use css because css is not user specific…