Page 1 of 2

List Sub Forums below the main Forum.

Posted: Tue Jun 25, 2019 9:50 am
by paulyii
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.

Re: List Sub Forums below the main Forum.

Posted: Tue Jun 25, 2019 1:29 pm
by rxu
This is what you get when a "Main forum" is a category and "Sub Forum X"s are just forums in that category.

Re: List Sub Forums below the main Forum.

Posted: Wed Jun 26, 2019 8:36 am
by paulyii
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

Re: List Sub Forums below the main Forum.

Posted: Wed Jun 26, 2019 8:53 am
by rxu
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

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 12:37 am
by paulyii
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.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 12:41 am
by paulyii
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:




.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 1:00 am
by Lumpy Burgertushie
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

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 1:49 am
by EA117
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.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 12:45 pm
by paulyii
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.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 1:23 pm
by david63
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.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 1:31 pm
by Lumpy Burgertushie
and the rename of the folder has to be exactly as shown. including the upper case letters etc.



robert

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 3:14 pm
by paulyii
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.


.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 6:55 pm
by stevemaury
Ask rxu.

Re: List Sub Forums below the main Forum.

Posted: Fri Jul 12, 2019 6:55 pm
by warmweer
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.

Re: List Sub Forums below the main Forum.

Posted: Sat Jul 13, 2019 3:35 am
by paulyii
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 .


.