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
Unread and recently updated topics - how to remove this section from appearing for non-logged in visitors?
Avatar
graphicken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 4:00 pm

Unread and recently updated topics - how to remove this section from appearing for non-logged in visitors?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 4:49 pm

Hey graphicken,

You can hide this section from non-logged in users pretty easily but it does involve making a template change. Are you running a child theme? If so you will need a copy of the group view template and if not you will need to set one up first. Using Default theme as an example:

Copy spGroupView.php to your child themes templates folder.

Open and find the function sp_RecentPostList (Line 101):

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

Wrap it in an 'is_user_logged_in' check i.e:

if (is_user_logged_in()) {
    sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));
}

If you are using Reboot theme, it's worth mentioning that the templates have Desktop and Mobile subfolders, so instead of spGroupView.php you would need to edit spGroupViewDesktop.php from the desktop folder.

Hope that helps!

Avatar
graphicken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 4:54 pm

thanks much for a fast, specific answer; I appreciate it...not using child themes though I know I should; using v5.5.6 still, will try above...thx!

-ken

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 5:01 pm

Child themes have been solid since 5.5, so you won't need to upgrade to create one, but if you don't and just change the stock theme it will work for as long as you continue to run 5.5.6. As soon as you upgrade the template changes will be overwritten.

Either way, happy to help!

Avatar
graphicken
Member
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 5:05 pm

thx, note to self, location:

 

/wp-content/sp-resources/forum-themes/default/templates/spGroupView.php

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Aug 5, 2015 - 10:50 pm

yup...

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