List Sub Forums below the main Forum.

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

List Sub Forums below the main Forum.

Post by paulyii » Tue Jun 25, 2019 9:50 am

I want to list down all the sub forums beneath the main Forum.
NOT in the parent Forum's legend
  • Main Forum
  • Sub Forum A
  • Sub Forum B
  • Sub Forum C
But what i got is on click, it opens another window showing the 3 Sub Forums.

rxu
Extensions Development Team
Posts: 2973
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: List Sub Forums below the main Forum.

Post by rxu » Tue Jun 25, 2019 1:29 pm

This is what you get when a "Main forum" is a category and "Sub Forum X"s are just forums in that category.

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Wed Jun 26, 2019 8:36 am

Sir, I think you got me wrong.
I used PS to create a jpg file to show what i really want.
:D
Sub Forums
Sub Forums

rxu
Extensions Development Team
Posts: 2973
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Name: Ruslan
Contact:

Re: List Sub Forums below the main Forum.

Post by rxu » Wed Jun 26, 2019 8:53 am

I have something like that but the extension is not validated by PHPBB team, it's on your own risk if using it.

https://github.com/rxu/List_subforums_in_columns

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Fri Jul 12, 2019 12:37 am

rxu wrote:
Wed Jun 26, 2019 8:53 am
I have something like that but the extension is not validated by PHPBB team, it's on your own risk if using it.

https://github.com/rxu/List_subforums_in_columns
I went to see your link.
But i really can't find anything related to Display of Sub Forum or anything which looked like it..
GitHub.jpg
Forgive my ignorant on this field, i am a dumb green horn on this thing.

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Fri Jul 12, 2019 12:41 am

Dear Experts in this community Forum ..

anyone else can provide me with a solution ???
Sorry to say ... the default display of Sub Forums doesn't look good...

Please HELP ..

HELP ... i need somebody's help .... ( Song by the Beatles ~ HELP ) :lol:




.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66740
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: List Sub Forums below the main Forum.

Post by Lumpy Burgertushie » Fri Jul 12, 2019 1:00 am

you go back here: https://github.com/rxu/List_subforums_in_columns
click on the green button that says clone or download
download the zip file to your computer.

unzip on your computer
change the name of the folder to ListSubforumsInColumns exactly like that, copy and paste.

now, create a new folder named gfksx exactly like that.

now move the folder that you renamed inside the new folder.

now, using your ftp, upload that folder named gfksx to the ext folder of your phpbb board on the server.

then, go to the admin panel of your board, click on the customize tab,
choose manage extensions and click on enable next to the one named gfksx

I have not used this extension but I would assume that it would automatically rearrange all your subforums into columns for you.


give it a try, if it does not work, just disable it and then delete the data then delete the actual files from the server.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
EA117
Registered User
Posts: 949
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: List Sub Forums below the main Forum.

Post by EA117 » Fri Jul 12, 2019 1:49 am

If the extension does what you want, that is great, and might even be the easier way to get the functionality for as long as "at your own risk" works out.

The behavior you're wanting also seems like an appropriate job for the phpBB style, too. e.g. In some styles the designer might have already made this same choice, and already setup the template to list subforums the way you're wanting. So another way you could achieve your desired behavior is to make this change in the phpBB style yourself.

For example, in the /styles/prosilver/template/forumlist_body.html, the current subforum display layout in the proSilver style is caused by these lines:

Code: Select all

						<!-- IF .forumrow.subforum and forumrow.S_LIST_SUBFORUMS -->
							<!-- EVENT forumlist_body_subforums_before -->
							<br /><strong>{forumrow.L_SUBFORUM_STR}{L_COLON}</strong>
							<!-- BEGIN subforum -->
								<!-- EVENT forumlist_body_subforum_link_prepend --><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">
									<i class="icon <!-- IF forumrow.subforum.IS_LINK -->fa-external-link<!-- ELSE -->fa-file-o<!-- ENDIF --> fa-fw <!-- IF forumrow.subforum.S_UNREAD --> icon-red<!-- ELSE --> icon-blue<!-- ENDIF --> icon-md" aria-hidden="true"></i>{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<!-- ENDIF --><!-- EVENT forumlist_body_subforum_link_append -->
							<!-- END subforum -->
							<!-- EVENT forumlist_body_subforums_after -->
						<!-- ENDIF -->
Rather than simply {L_COMMA_SEPARATOR} between each of the subforums, you could put a line break in there too. And to create the desired justification of the list, wrap all the subforms display in some <div> blocks. Such as in the following replacement lines:

Code: Select all

						<!-- IF .forumrow.subforum and forumrow.S_LIST_SUBFORUMS -->
							<!-- EVENT forumlist_body_subforums_before -->
							<div style="display:block;"><div style="display:inline-block; float:left;"><strong>{forumrow.L_SUBFORUM_STR}{L_COLON}</strong></div><div style="display:inline-block;">
							<!-- BEGIN subforum -->
								<!-- EVENT forumlist_body_subforum_link_prepend --><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum<!-- IF forumrow.subforum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF forumrow.subforum.S_UNREAD -->{L_UNREAD_POSTS}<!-- ELSE -->{L_NO_UNREAD_POSTS}<!-- ENDIF -->">
									<i class="icon <!-- IF forumrow.subforum.IS_LINK -->fa-external-link<!-- ELSE -->fa-file-o<!-- ENDIF --> fa-fw <!-- IF forumrow.subforum.S_UNREAD --> icon-red<!-- ELSE --> icon-blue<!-- ENDIF --> icon-md" aria-hidden="true"></i>{forumrow.subforum.SUBFORUM_NAME}</a><!-- IF not forumrow.subforum.S_LAST_ROW -->{L_COMMA_SEPARATOR}<br><!-- ENDIF --><!-- EVENT forumlist_body_subforum_link_append -->
							<!-- END subforum -->
							</div></div>
							<!-- EVENT forumlist_body_subforums_after -->
						<!-- ENDIF -->
Here is a demonstration of these proSilver template changes applied to the support forum here on phpbb.com/community:

subforums.png

Of course if you modify the /styles/prosilver/template/forumlist_body.html template (or the corresponding template in whichever style you're actually using with phpBB), you will have to re-apply these changes whenever the style is updated in the future.

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Fri Jul 12, 2019 12:45 pm

Lumpy Burgertushie wrote:
Fri Jul 12, 2019 1:00 am
you go back here: https://github.com/rxu/List_subforums_in_columns
click on the green button that says clone or download
download the zip file to your computer.

unzip on your computer
change the name of the folder to ListSubforumsInColumns exactly like that, copy and paste.

now, create a new folder named gfksx exactly like that.

now move the folder that you renamed inside the new folder.

now, using your ftp, upload that folder named gfksx to the ext folder of your phpbb board on the server.

then, go to the admin panel of your board, click on the customize tab,
choose manage extensions and click on enable next to the one named gfksx

I have not used this extension but I would assume that it would automatically rearrange all your subforums into columns for you.


give it a try, if it does not work, just disable it and then delete the data then delete the actual files from the server.


robert
I had installed a localhost on my local machine.
So instead of FTP, I only have to drag the whole folder there.
ext/ListSubforuminColumns/gfksx

Is this where it put the MOD?

either way
ext/gfksx


The gfksx did not appear in the EXTENSION MANAGEMENT

What, where went wrong ?
Please advise....
Thanks.

User avatar
david63
Registered User
Posts: 16564
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: List Sub Forums below the main Forum.

Post by david63 » Fri Jul 12, 2019 1:23 pm

It works just fine if you follow Lumpy's instructions.

You should end up with {board root]/ext/gfksx/ListSubforumsInColumns/composer.json as your file structure.
Last edited by david63 on Fri Jul 12, 2019 1:35 pm, edited 1 time in total.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Lumpy Burgertushie
Registered User
Posts: 66740
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: List Sub Forums below the main Forum.

Post by Lumpy Burgertushie » Fri Jul 12, 2019 1:31 pm

and the rename of the folder has to be exactly as shown. including the upper case letters etc.



robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Fri Jul 12, 2019 3:14 pm

david63 wrote:
Fri Jul 12, 2019 1:23 pm
It works just fine if you follow Lumpy's instructions.

You should end up with {board root]/ext/gfksx/ListSubforumsInColumns/composer.json as your file structure.
Thanks David and Lumpy.
Now it appears at the Manage extension.
and i had ENABLED it.

But i saw nothing changed.
I had cleared browser's and Forum's cache.

What else i need to do ?
as i said i am a Damn Green Horn.

Please advise further...
You all are the greatest helps !
Can't thank you all enough.

Will be most grateful if it works with all of your help.


.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50812
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: List Sub Forums below the main Forum.

Post by stevemaury » Fri Jul 12, 2019 6:55 pm

Ask rxu.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
warmweer
Registered User
Posts: 2783
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: List Sub Forums below the main Forum.

Post by warmweer » Fri Jul 12, 2019 6:55 pm

paulyii wrote:
Fri Jul 12, 2019 3:14 pm
Now it appears at the Manage extension.
and i had ENABLED it.
Because you mention : I HAD enabled it, I'm wondering whether that statement can be correct, since you couldn't see the extension in the Extension Management before.

If you see "Enable" it doesn't mean that the extension is enabled, but that the action of clicking that text will enable the extension.
When an extension is enabled, the text will then be: disable.
The year is 2192. The British Prime Minister visits Brussels to ask for an extension of the Brexit deadline. No one remembers where this tradition originated, but every year it attracts many tourists from all over the world.

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: List Sub Forums below the main Forum.

Post by paulyii » Sat Jul 13, 2019 3:35 am

warmweer wrote:
Fri Jul 12, 2019 6:55 pm
paulyii wrote:
Fri Jul 12, 2019 3:14 pm
Now it appears at the Manage extension.
and i had ENABLED it.
Because you mention : I HAD enabled it, I'm wondering whether that statement can be correct, since you couldn't see the extension in the Extension Management before.

If you see "Enable" it doesn't mean that the extension is enabled, but that the action of clicking that text will enable the extension.
When an extension is enabled, the text will then be: disable.
Thanks for your response, greatly appreciated it.

Anyway, as i said i had enabled it.
and its actually what i meant.
Please see the screenshot below.
activate extension.jpg
Its there something else i need to amend ?
Someone or anyone PLEASE ADVISE, THANKS .


.

Post Reply

Return to “[3.2.x] Support Forum”