Page 1 of 6

[CDB][Official Extension] Collapsible Forum Categories

Posted: Wed Apr 22, 2015 10:36 pm
by VSE
Extension Name: Collapsible Forum Categories
Author: Extensions Development Team

Extension Description: The Extensions Development Team is working on a Collapsible Forum Categories extension.

This extension allows users to collapse and minimise forum categories with a simple click.
collapsibelcats2.jpg
collapsibelcats2.jpg (8.95 KiB) Viewed 3393 times
  • Collapsed forums are remembered using cookies and in the database. This means it can work for both registered and unregistered visitors, and a registered member's collapsed settings will be used on other devices or computers while they are logged in.
  • Styling is purely CSS so tweaking the appearance and placement of the collapse buttons to work with other styles is easy.
  • It should be possible for other extensions that have structures/layout similar to the forum category sections to use the collapsible feature by integrating a few changes for compatibility.
collapsibelcats1.jpg
This extension is currently under development and the above feature list is subject to change.

Download:
Releases: https://www.phpbb.com/customise/db/exte ... categories
Github Repository: https://github.com/phpbb-extensions/col ... categories

Build status / Build quality:
Image
Image Image

Installation:
  1. Unzip the downloaded release and copy it to the ext directory of your phpBB board.
  2. Navigate in the ACP to Customise -> Manage extensions.
  3. Look for Collapsible Forum Categories under the Disabled Extensions list, and click its Enable link.
Important: Only official release versions validated by the phpBB Extensions Team should be installed on a live forum. Pre-release (beta, RC) versions downloaded from the GitHub repository are only to be used for testing on offline/development forums and are not officially supported.

All are welcome to contribute to the extension by forking our repository and submitting a Pull Request through Github.

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 2:53 am
by Allen142
Awesome work for this extension, Matt! So, can I try this on my live forum or wait for the BETA/RC release? It worked very well. :D

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 6:36 am
by alhitary

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 3:26 pm
by Louis7777
How about using HTML5 Local Storage instead of cookies?

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 3:37 pm
by FomenkoAndrey
Louis7777 wrote:How about using HTML5 Local Storage instead of cookies?
used in guru extentions

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 4:41 pm
by VSE
Louis7777 wrote:How about using HTML5 Local Storage instead of cookies?
We did not want to have to wait for the full page to load, with all categories expanded, and then have the hidden categories suddenly disappear after the Javascript has stepped in to hide the forums, which results in an effect sometimes known as page jumping. We considered that an unacceptable user experience.

We wanted hidden categories to be hidden immediately, before the page is rendered. That means that we have to know what to hide during PHP execution, which meant we had to use cookies instead of the client-side only local storage option.

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 4:57 pm
by Louis7777
I see. Good work once again! :)

Re: [ALPHA] Collapsible Forum Categories

Posted: Thu Apr 23, 2015 6:26 pm
by Raul [ThE KuKa]
Great work Matt and Extensions Development Team, I don't know where you find the time for both work. :mrgreen:

Edit: I'm working on spanish translation... HARD WORK!!! :o :mrgreen:

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 6:52 am
by Holger
Great work! Thanks!

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 6:46 pm
by Korkel
Profiled, awesome!

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 7:46 pm
by Volksdevil
When I click the minus sign I get:
You do not have the necessary permissions to complete this operation.

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 8:09 pm
by Wolfsblvt
Volksdevil wrote:When I click the minus sign I get:
You do not have the necessary permissions to complete this operation.
Does your forum hast cookie and board url setup correctly?
When you browser your form, do you have sid=XXXX in your URL all the time?

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 8:10 pm
by VSE
Wolfsblvt wrote:
Volksdevil wrote:When I click the minus sign I get:
You do not have the necessary permissions to complete this operation.
Does your forum hast cookie and board url setup correctly?
When you browser your form, do you have sid=XXXX in your URL all the time?
Something is wrong with his board and javascript.

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 8:12 pm
by Volksdevil
Does your forum hast cookie and board url setup correctly?
Yep. :) And nope, I don't get session id's in the URL.
Something is wrong with his board and javascript.
Not that I know of?

Re: [ALPHA] Collapsible Forum Categories

Posted: Fri Apr 24, 2015 8:35 pm
by VSE
Volksdevil wrote:Not that I know of?
Yep. It's your style. First you've modified prosilver itself instead of making a new style which is a problem in and of itself. Second, you've totally changed the overall_footer.html template file so that it no longer loads javascript files in the correct order.

These lines are critical: https://github.com/phpbb/phpbb/blob/3.1 ... ml#L40-L49

Your style has deleted all of that and replaced it with a jumble of hardcoded script tags. You need to fix your style.

note: This topic is not meant for the support of fixing your style so if you need help with that please visit the style forums.