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
How do I turn off 'Display Forum Stats' in General Display Settings?
Avatar
LizCleere
India
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 1:16 am

I have Version 5.0.0

I have been trying to get help from the wiki, but am even more confused. Under the wiki 'Options' I am seeing a lot more headings than I have in my 'Options' menu. Also the wiki clickable quicklinks are different to mine (for almost everything).

 

Options - This is what I see:

Global settings
General Display settings
Content settings
Member settingsMy
Email settings

 

General Display Settings - This is the menu I see:

Forum Page Title
Topic View Formatting
Post View Formatting
Single Forum Sites
Display Forum Stats - There are two options here: "Display how many top posters" and "Display how many new users". I have switched both to 0. When I click on 'Help' it tells me "You can also turn on or off all of the various components of the statistcs box independently" How?

 

When I go into my forum as Admin I see the stat box. When I go into the forum as a member not only do I see the stat box, but I see "Unread and recently updated topics".

I don't want my members to see anything other than topics and posts.

 

I don't have the following headings, all of which are shown in wiki 'Options':

Global Display settings
Forum settings
Topic settings
Post settings
Style settings

What am I doing wrong? I admit to being a complete novice. My other half set up the forum for me, inside my Wordpress website, and has now left it to me to get to grips with it. But I'm not very good at it and am flailing around. Please help. My website is http://www.lizcleere.com

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 19, 2011 - 4:17 am

OK - admittedly we may not have made this clear enough but as it states on the download page the old wiki will be replaced by a new codex. The old wiki is for Version 4. Remember that V5 is still in beta.
So - having got that out of the way it might be better if you let us know what it is you are wishing to do as the coder is not ready yet!

andy-signature.png
YELLOW
SWORDFISH
Avatar
LizCleere
India
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 5:15 am

Yellow Swordfish said

OK - admittedly we may not have made this clear enough but as it states on the download page the old wiki will be replaced by a new codex. The old wiki is for Version 4. Remember that V5 is still in beta.
So - having got that out of the way it might be better if you let us know what it is you are wishing to do as the coder is not ready yet!

Sorry I quoted your post, but I couldn't see a straightforward reply button...

 

Anyway, as I say in my original question:

"When I go into my forum as Admin I see the stat box. When I go into the forum as a member not only do I see the stat box, but I see 'Unread and recently updated topics'.

I don't want my members to see anything other than topics and posts."

 

So, when I'm logged in as Admin I'd like to see stat box and unread and recently updated topics. I do not want my members to see any of this information, I simply want them to see topics and posts.

How do I do this?

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 8:48 am

first, the stats are shown to everyone... just below the unread posts... which you can turn on for admins too...

so in the theme spFoot.php template, before you call the various template tag functions for displaying stats, just add a check for being admin:

if ($spThisUser->admin) ....

Avatar
LizCleere
India
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 9:31 am

I have inserted the one line exactly as you suggest at line 28 at spFoot.php just before the section which says #-start the stats section. This has made no difference. I notice you've put ...

 

I am trying to get to a very simple forum, with as little extraneous information as possible, hence the reason for wishing to hide stats and the 'Unread and recently updated topics' sections.

 

Do you have any other suggestions?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 9:34 am

please put the code you used... be sure to use the code button... looks like ${}...  enter the code, highlight and select the button and language...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 9:35 am

for example, if you only want newest members for admin:

       if ($spThisUser->admin) sp_NewMembers('tagClass=spLeft spNewMembers', __sp('Newest Members: '));
Avatar
LizCleere
India
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 9:53 am

Firstly, are you saying this is a bug and that your solution is a short-term work-around? I'm really sorry, but I don't understand what you are suggesting. My husband is coding this for me and he doesn't understand either. I'm not sure you have read my question properly so please let me reiterate what I am trying to do.

 

I am simply trying to remove the stats and the list of unanswered posts from underneath the forum. There is an option in the forum admin within Wordpress to do this yet despite ticking the option to turn it off, it has not removed these items. How do I switch these off?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 10:06 am

No, absolutely not a bug... you are trying to do something unique and different...

so lets step back again and go one by one...

remove unanswered posts...  just dont display them from your sp theme... in the spGroupView.php template file, simply remove this line of code:

    sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));

and no one will see the recent post list... if you only want admins to see it then change it to:

    if ($spThisUser->admin) sp_RecentPostList('show=10&admin=1', __sp('Unread and recently updated topics'));

remove stats...  again, if you dont want anyone to see them, just remove them from the spFoot.php template file... if you only want admins to see them, change to this:

if ($spThisUser->admin) {
     # Start the 'stats' section
    # ----------------------------------------------------------------------
    sp_SectionStart('tagClass=spStatsSection', 'stats');
        sp_ForumTimeZone('tagClass=spForumTimeZone', __sp('Forum Timezone: '));

        sp_InsertBreak();

        sp_ColumnStart('tagClass=spColumnSection spLeft spOnlineStats&width=40%&height=0');
            sp_OnlineStats('tagClass=spLeft', __sp('Most Users Ever Online: '), __sp('Currently Online: '), __sp('Currently Browsing this Page: '), __sp('Guest(s)'));
            if (function_exists('sp_OnlinePageLink')) sp_OnlinePageLink('', __sp('See All Online Activity'));
        sp_ColumnEnd();

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

        sp_ColumnStart('tagClass=spColumnSection spRight spMembershipStats&width=25%&height=0');
            sp_MembershipStats('tagClass=spRight', __sp('Member Stats: '), __sp('There are %COUNT% members'), __sp('There have been %COUNT% guest posters'), __sp('There are %COUNT% moderators'), __sp('There are %COUNT% admins'));
        sp_ColumnEnd();

        sp_ColumnStart('tagClass=spColumnSection spRight spForumStats&width=12%&height=0');
            sp_ForumStats('tagClass=spRight', __sp('Forum Stats: '), __sp('Groups: '), __sp('Forums: '), __sp('Topics: '), __sp('Posts: '));
        sp_ColumnEnd();

        sp_InsertBreak();

        sp_NewMembers('tagClass=spLeft spNewMembers', __sp('Newest Members: '));

        sp_InsertBreak();

        sp_ModsList('tagClass=spLeft spModerators', __sp('Moderators: '));

        sp_InsertBreak();

        sp_AdminsList('tagClass=spLeft spAdministrators', __sp('Administrators: '));
    sp_SectionEnd('tagClass=spClear', 'stats');

 }

only difference there is the 'if' statement at beginning and the closing '}' to end the 'if' statement...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2011 - 10:09 am

please keep in mind, as it says in the theme,  you should not edit our themes that we deliver with simple press... you will lose your changes if you upgrade the theme...  you should copy one of our themes to your own theme and make your edits there...

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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625