Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/12559] Add forum setting to limit subforums legend to direct children only #2473

Closed
wants to merge 1,065 commits into from

Conversation

PayBas
Copy link
Contributor

@PayBas PayBas commented May 17, 2014

@Nicofuma
Copy link
Member

you should update https://github.com/phpbb/phpbb/blob/develop-ascraeus/phpBB/install/schemas/schema.json too and then run develop/create_schema_files.php

@bantu
Copy link
Collaborator

bantu commented May 17, 2014

@Nicofuma schema.json is automatically generated from the migrations. This is what develop/create_schema_files.php does (I think).

@Nicofuma
Copy link
Member

right, so he only has to run develop/create_schema_files.php

@PayBas
Copy link
Contributor Author

PayBas commented May 17, 2014

Yeah I forgot to run the script ;), thanks.

return array(
'add_columns' => array(
$this->table_prefix . 'forums' => array(
'display_subforum_limit' => array('BOOL', 0, 'after' => 'display_subforum_list'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't use after since now, as not all DBMS support it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So just remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I guess it's fine but can you add a ticket that the schema generator should process after instead of adding it to the .json file? That would be awesome

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickvergessen
Copy link
Contributor

#2474 has been merged, please rebase

@PayBas
Copy link
Contributor Author

PayBas commented Aug 21, 2014

It appears that this doesn't work for categories. So I'll have to improve this before merge.

@PayBas
Copy link
Contributor Author

PayBas commented Aug 21, 2014

Actually, adding this as an option for categories in the ACP module is very tricky. There isn't really any place for a unique setting that is shared by forums & categories, but not links. We can't simply duplicate form components for obvious reasons, and introducing yet another table column for categories which does exactly the same thing as the forum version... that's just silly.

So I'm going to leave it as is. If admins really want to limit subforums for categories, they can change the forum type to "forum", change the setting, and change the type back to "category".

Not ideal, but it's the cleanest way, code-wise.

@phpbb-user phpbb-user removed the WIP label Aug 21, 2014
@Nicofuma
Copy link
Member

@nickvergessen thought?

marc1706 and others added 8 commits November 18, 2014 13:12
* develop-ascraeus:
  [ticket/13315] Check for the includes/captcha/plugins/ directory instead.
  [ticket/13315] Fix loss of CAPTCHA plugin config value.
* develop-ascraeus:
  [ticket/13342] Fix invalid resetting of CAPTCHA plugin when using Recaptcha.
Nicofuma and others added 16 commits February 3, 2015 13:37
[ticket/13139] Update Twig to 1.18.0

* Nicofuma/ticket/13139:
  [ticket/13139] Fix tests
  [ticket/13139] Update Twig to 1.8.0
  [ticket/13139] Update Twig to 1.16.2
* develop-ascraeus:
  [ticket/13569] Add missing sql_freeresults and remove unneeded results
* develop-ascraeus:
  [ticket/13538] Add tests for double nested pagination loop
  [ticket/13538] Fix tests for pagination in nested loop
  [ticket/13538] Add test for pagination in nested loop
[ticket/13496] Change set_config_count() calls with $config->increment()

* MGaetan89/ticket/13496:
  [ticket/13496] Update calls to `set_config_count()`
* develop-ascraeus:
  [ticket/13348] Remove unnecessary global $cache
  [ticket/13348] Use close method to free query result handle
[ticket/13455] Change request_var() calls with $request->variable()

* MGaetan89/ticket/13455:
  [ticket/13455] Remove `request_var()` references from comments
  [ticket/13455] Remove unnecessary calls to `utf8_normalize_nfc()`
  [ticket/13455] Update calls to `request_var()`
[ticket/13407] Update Symfony to 2.7.*@dev

* Nicofuma/ticket/13407:
  [ticket/13407] Update composer.lock file
  [ticket/13407] Bump minimal version to php 5.3.9
  [ticket/13407] Introduce a request_stack service
  [ticket/13407] Remove the last occurence of pattern in routing files
  [ticket/13407] Update Symfony to 2.7.*@dev
@Nicofuma
Copy link
Member

Nicofuma commented Feb 5, 2015

please rebase onto develop and replace your request_var() calls by $request->variable()

@PayBas
Copy link
Contributor Author

PayBas commented Feb 9, 2015

Replaced by #3386

@PayBas PayBas closed this Feb 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet