Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Remove the Forum Stats at the bottom
Avatar
AM
Member
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 8:57 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2013 - 11:09 pm

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

see:  http://codex.simple-press.com/.....ledgments/

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...

Avatar
AM
Member
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2013 - 12:20 am

Ok Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2013 - 12:48 am

glad to help!

Avatar
Ziggy Smith
Member
Free Members
sp_UserOfflineSmall Offline
Mar 11, 2013 - 12:32 am

Hi Mr Papa,

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 11, 2013 - 3:43 am

Sounds like you found it in the end. Excellent.

andy-signature.png
YELLOW
SWORDFISH
Avatar
AM
Member
Free Members
sp_UserOfflineSmall Offline
Mar 17, 2013 - 9:46 pm

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

Avatar
Christina Kennedy
Orange County, CA
Member
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 4:34 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 5:36 pm

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...

Avatar
Christina Kennedy
Orange County, CA
Member
Free Members
sp_UserOfflineSmall Offline
May 11, 2013 - 7:40 pm

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?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625