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 remove sub-forums from Main Forum View
Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 9:46 am

I am a bit lost, in the Options, General Display settings it says we can hide or remove the sub-forums but I do not see the option on my page.

Topic View Formatting

Topics to Display Per Page
The topic index is paged to cater for large forums. You set here the number of topic rows to show per paged display.

Number of Topics Paging Links to show

The page links are shown in bars at the top and bottom of the topic index. Set the number to show. The first and last are always shown.

Sort Topics by Most recent Postings (newest first)
By default, topics are displayed in the order in which they were created. By turning on this option, when a topic receives a new post, it will then take the topmost position. Topics are therefore shown by those with the most recent postings.

Display Sub Forums below Parent Forum
You can optionally turn on or off the display of nested sub-forums beneath the parent forum heading at the top of the page display.

So how can this be done?????screenshot.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 10:08 am

Oh dear - that's bad. Sorry. That's an old bit of help text that should have been cut! I will deal with that.

V5 - as you know - is template driven so if you want to remove pasrt of the display you need to do it in the appropriate template. Tell me exactly what you want to do and where you want to do it and I will tell you how to do it. It is very easy I assure you!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:42 am

Yes thank you, I would like to hide the sub-forums from the main view area.

Avatar
annew
San Diego
Rookie
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:57 am

Hmmm... would it be possible to create multiple subforums hidden from the main view?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 2:36 pm

As many as you like.

You will need to edit the spGroupView.php template. This can be done using the SP theme editor.

If you follow the trail from the top to the bottom you will see the function for each and every display element. The subforums display function is called sp_ForumIndexSubForums(). Comment it out or remove it. And it will be gone!

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 2:58 pm

Yellow Swordfish said
As many as you like.

You will need to edit the spGroupView.php template. This can be done using the SP theme editor.

If you follow the trail from the top to the bottom you will see the function for each and every display element. The subforums display function is called sp_ForumIndexSubForums(). Comment it out or remove it. And it will be gone!

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

Ok great, so now that is gone from the Main Forum View but still shows up in other forums. How can that be removed.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 3:09 pm

That's what you asked for isn't it? What do you mean by 'shows up in other forums' please?

Are you asking for them to be removed in forum view as well? if you do that how are people going to know they are there? Doesn't it make it a little pointless?

But is that IS what you want then edit the spForumView.php template. There is a big section that clearly states the start and the end of sub-forum display. Remove that whole block.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Christian Pagan
Florida
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 3:33 pm

Yellow Swordfish said
That's what you asked for isn't it? What do you mean by 'shows up in other forums' please?

Are you asking for them to be removed in forum view as well? if you do that how are people going to know they are there? Doesn't it make it a little pointless?

But is that IS what you want then edit the spForumView.php template. There is a big section that clearly states the start and the end of sub-forum display. Remove that whole block.

Got it, I see what you mean, just wish there was a way the sub-forums look neater when there are a lot of them. Maybe even have multiple rows or even a vertical cleaner way just like here >> forums.androidcentral.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 3:43 pm

You are missing the whole point of themes and templates. That look is not that hard to achieve with a bit of study and rearranging and styling.

andy-signature.png
YELLOW
SWORDFISH
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