Hide Sub-Sub Forums on Index.

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
dpidddy
Registered User
Posts: 8
Joined: Sat Jun 11, 2011 3:10 pm

Hide Sub-Sub Forums on Index.

Post by dpidddy »

hi

I have :

Parent Forum > Sub Forum > Sub Sub Forum

How do I stop the Sub Sub Forum from showing up on the index page.


On the edit forum, if I select No for "List subforum in parent-forum’s legend:" both the Sub Forum and the Sub Sub Forum won't show.
However I want the sub forum to show on the index page and under the parent's legend.
But not the sub sub forum.

Is there a Mod for this?

thanks in advance.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10510
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Hide Sub-Sub Forums on Index.

Post by Noxwizard »

There is not a way to have it only show in the parent's legend. The listed options make it appear in all legends. I do not know of a MOD that alters this functionality.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
Sniper_E
Registered User
Posts: 940
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Hide Sub-Sub Forums on Index.

Post by Sniper_E »

I wrote some code that will hide the Subforum list in the index page using the show/hide script.
http://startrekguide.com/community/view ... 17#p128117
But it will hide the list. I didn't know the Subforum list showed the sub sub forums.
I need to go make some sub sub forums and check this out... :idea:
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 940
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Hide Sub-Sub Forums on Index.

Post by Sniper_E »

I'm with you dpidddy... I created a sub forum inside of a subforum. Two forums deep. A "sub subforum".
I have played around with all of the settings in the forums and I can not get the "sub subforum" to hide.
If I make the "sub subforum" hide on the index then it want show in it's parent subforum legend.

That is what you were asking isn't it?
You do not want the "sub subforum" to show in the index's forum legend...
You only want the subforums to show there.

But you still want that "sub subforum" to show in it's parent subforum legend.
It's like you can't make it show only in it's parent forum.
And there are two different sections in the settings that should allow this to happen.

Why are those two different options in each forum setting?
What are those two settings for exactly? I'm confused there.
I guess it may take a mod like Noxwizard said.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:
dpidddy
Registered User
Posts: 8
Joined: Sat Jun 11, 2011 3:10 pm

Re: Hide Sub-Sub Forums on Index.

Post by dpidddy »

Sniper_E wrote: You do not want the "sub subforum" to show in the index's forum legend...
You only want the subforums to show there.

But you still want that "sub subforum" to show in it's parent subforum legend.
It's like you can't make it show only in it's parent forum.

And there are two different sections in the settings that should allow this to happen.

That's exactly it, Sniper_E.

Are you able to make a MOD for this, or should I put a request in the MOD request forum?

thkz
User avatar
Sniper_E
Registered User
Posts: 940
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey
Contact:

Re: Hide Sub-Sub Forums on Index.

Post by Sniper_E »

Yes, you can make a mod request. I'm not a programmer.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
:!: Sniper_E Styles | phpbbmodders :!:
drake127
Registered User
Posts: 9
Joined: Tue Sep 20, 2005 8:08 pm
Location: Prague, Czech Republic

Re: Hide Sub-Sub Forums on Index.

Post by drake127 »

Quick fix to list (globally) only direct child subforum:

In includes/functions_display.php replace line

Code: Select all

			$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
with line

Code: Select all

			$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index'] && $parent_id == $row['parent_id']) ? true : false;
I don't have time to create and maintain proper mod but perhaps somebody will come with full mod and perhaps more features.
User avatar
greybox
Registered User
Posts: 79
Joined: Thu Jul 07, 2011 6:20 am

Re: Hide Sub-Sub Forums on Index.

Post by greybox »

drake127: your solution works for me, thank you thank you thank you!!!
midora
Registered User
Posts: 5
Joined: Sat May 19, 2012 9:40 am

Re: Hide Sub-Sub Forums on Index.

Post by midora »

Thanks. I would prefer if this would be standard.
A proposal may be to define a depth value for sub-forums in legends (Default 1 ;-)
Nap BlownApart
Registered User
Posts: 35
Joined: Sun Jul 30, 2006 6:47 am

Re: Hide Sub-Sub Forums on Index.

Post by Nap BlownApart »

Thanks Drake127 :)
Locked

Return to “[3.0.x] Support Forum”