Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Only 1 level of subforums?
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Oct 20, 2016 - 4:40 pm

is there anyway to just show the first level of sub forums on main forum view and not sub forums of sub forums?

like in the picture i just want the circled sub forums displayed on main forum view.

 

2.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 20, 2016 - 5:34 pm

https://simple-press.com/docum.....subforums/

Function sp_ForumIndexSubForums()

You will want to pass in the 'allNested' argument as a zero. That's in the group view template of your forum theme. I think you said you are already using a child theme.... yes? Do you know how to do this?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Oct 20, 2016 - 5:49 pm

so i put the allnested=0 in this line?

sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums:'), __sp('Browse topics in %NAME%'));

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 20, 2016 - 6:00 pm

yes - as in:

sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png&allNested=0', __sp('Sub-Forums:'), __sp('Browse topics in %NAME%'));

note the ampersand

andy-signature.png
YELLOW
SWORDFISH
Avatar
Funeral
Member
sp_UserOfflineSmall Offline
Oct 20, 2016 - 6:05 pm

Ah okay missed the ampersand! thanks 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 20, 2016 - 10:18 pm

glad we could 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: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17348
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10120
Posts: 79605