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 to display Groups 'closed' as default instead of 'open'
Avatar
Patricia Miller
Member
sp_UserOfflineSmall Offline
Mar 26, 2015 - 12:45 pm

I have a number of Groups, each with a number of Forums.  I would like for the Groups to be closed when site visitors first land on our Forum Home, so that they can see all the groups without scrolling, but the default seems to be 'open', which results in a very lengthy landing page.

I am using a Child Theme based on the CSS-Only Theme, and have searched through the template files but am not seeing where/what I should change to make the default view 'closed'.

I would be grateful for any clues!  laugh

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 26, 2015 - 1:02 pm

Can I just point you to this thread which explains how to do this. Note my comment on the post following this one was incorrect - it WILL work with css-only theme but it CAN be overridden by the user as the status for each Group is retained in a cookie.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Patricia Miller
Member
sp_UserOfflineSmall Offline
Mar 26, 2015 - 2:14 pm

As always, I deeply appreciate your help!  Was there intended to be a link included with your last reply? ("....Can I just point you to this thread which explains...").

I am okay with users overriding the default behavior via cookies.....I just would like first time visitors who arrive at the Forum to be able to see all groups without scrolling.

:-)

Avatar
Patricia Miller
Member
sp_UserOfflineSmall Offline
Mar 26, 2015 - 2:21 pm

Nevermind -  I found it!  Although I did try this yesterday before posting and it didn't seem to work, but I had forgotten about the cookie.....

I found it in spGroupView.php, the sp_GroupOpenClose() function, set the default to 'closed'.

 

smile

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Mar 26, 2015 - 2:45 pm

You've got it!

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626