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
Removing "Top Posters" from stats
Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 4:56 pm

Is there a simple way to remove the Top Posters from the bottom stats window in my forum. 

I found where I can change the number of top posters to 0, but I would like to remove it all together for everyone but admins and moderators.  

I also looked in the permission settings for each group, but didn't see it there.  

Can you point me in the right direction?

Thank you!

site: raphajourney.com/community-forum

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Jan 28, 2016 - 5:32 pm

Hey Jenn,

Unfortunately it isn't an option or permission so it has to be done via a template change. This might sound long winded but it's actually very easy and quick..

First off you will need to make a child theme - This will mean that once you have your change in place you can still receive updates to Reboot without losing your change.

We provide the child theme frameworks free in the store so you can get going quickly, so start off by downloading the Reboot Child Theme Framework.

After it's set up you will want to copy spFootDesktop.php from the reboot > templates > desktop folder to your child themes templates > desktop folder and open it up in your preferred editor.

Then scroll down to line 50 where you should see:

sp_ColumnStart('tagClass=spColumnSection spRight spTopPosterStats&width=25%');
    sp_TopPostersStats('tagClass=spRight', __sp('Top Posters: '));
sp_ColumnEnd();

You can just remove it or comment it out with a # before each line, but if you want it to still appear to admins and mods you're going to want to put a check on it so it will then appear:

if($spThisUser->moderator) {
    sp_ColumnStart('tagClass=spColumnSection spRight spTopPosterStats&width=25%');
        sp_TopPostersStats('tagClass=spRight', __sp('Top Posters: '));
    sp_ColumnEnd();
}

This will make it visible to anyone with moderator permissions and in turn admin.

Hope that helps!

Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Feb 4, 2016 - 6:10 pm

Thank you so much Ike.  

It seems to have worked like a charm!

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 4, 2016 - 6:13 pm

No problem happy to help!

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: 617
Members: 17359
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10125
Posts: 79620