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
Subforum question
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 9, 2013 - 7:23 pm

Hello guys,

I have two standard forum with several subforums:

  1. http://friskyttarna.eu/forum/tyria/ (3 subforums)
  2. http://friskyttarna.eu/forum/k.....asser-gw2/ (8 subforums)

When i change the role of nr2 from standard forum to subforums (together with the 8 subforums) like this:

Forum

--------- Subforum1

--------- Subforum2

--------- Subforum3

--------- Subforum4

------------------------ Sub-Subforum 1-8

Both the subforums and sub-subforums is visible in group view: http://friskyttarna.eu/forum/

I would like the subforums to be visible in group view and sub-subforums only in forum view. Is this possible?

 

Sorry for the confusing text, but since english is not my native language, this was the best explanation i could come up with.

Cheers

Thomas

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 9, 2013 - 7:27 pm

see:  http://codex.simple-press.com/.....subforums/

in particular the nested option...

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 10, 2013 - 3:47 am

Mr Papa said
see:  http://codex.simple-press.com/.....subforums/

in particular the nested option...

Thank you Steve. Much appricated.

I changed the AllNested option from 1 to 0. It did wonders.

However if i understand it correctly, this option will be reset next time i update to a new SP version. Is there any way to add the AllNested string to my own SP child theme?

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2013 - 3:54 am

Not sure I fully understand. The 'allNested' argument is available using that template display function no matter what the theme being used is. If your theme includes that function then the 'allNested=' argument can be utilised...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2013 - 6:58 am

are you asking how to make your own sp theme so changes to it dont get overwritten? if so, see:

http://codex.simple-press.com/.....g-a-theme/

Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 10, 2013 - 9:33 am

I followed the codex which pointed out plugins/simple-press/forum/content/sp-group-view-functions.php and changed:

allNested      => from 1 to 0

I supose that directory will be overwritten next time i am updating my forum with a new SP release from you or maybe i am wrong?

My own SP theme is located sp-resources/forum-themes/friskyttarna.

 

Cheers

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2013 - 11:45 am

No no - you change your theme NOT the code file. 'allNested' is an argument you pass in the call within your theme to that function. As in:

sp_ForumIndexSubForums('allNested=0', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 10, 2013 - 2:59 pm

Yellow Swordfish said
No no - you change your theme NOT the code file. 'allNested' is an argument you pass in the call within your theme to that function. As in:

sp_ForumIndexSubForums('allNested=0', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'));

 

Should i add that line of code to friskyttarna.php?

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 10, 2013 - 3:04 pm

No you add that argument to the function in the spGroupView/php template of your theme.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Meztli
Sweden
Member
sp_UserOfflineSmall Offline
Jan 10, 2013 - 3:07 pm

Yellow Swordfish said
No you add that argument to the function in the spGroupView/php template of your theme.

Great, now i got it.

Thank you for your patient Andy!

 

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