phpBB

Development Discussion Board

phpBB's testing ground of bleeding edge code
Advanced search

[RFC] Revamp of styles section of acp

Publish your own request for comments or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.1/Ascraeus and 3.2/Arsia.

Re: [RFC] Revamp of styles section of acp

Postby Arty » Tue Apr 24, 2012 3:30 pm

After a bit more thinking, it might be a good idea to allow installing styles without installing parent style.

Then the following things will have to be changed:
  • Styles list in acp_styles will show all available styles as tree. Styles that are present in phpbb_styles table will be shown as installed, other styles will be shown as not installed.
  • Style preview will use style path instead of id, allowing admins to preview styles before installing it.
  • style_active field in phpbb_styles will be removed.
  • "Install styles" section will be removed.
  • Users will be able to select any installed style, unless override_user_style is enabled.
  • It will require new class for styles tree, allowing forum to locate all parent styles when user previews style from path. Something like phpbb_styles_list

and completely new acp_styles, which I'll gladly write.
Formerly known as CyberAlien.
User avatar
Arty
Styles Team
Styles Team
 
Posts: 802
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars

Re: [RFC] Revamp of styles section of acp

Postby naderman » Tue Apr 24, 2012 11:17 pm

Well that sounds to me like we should just display templates require because of inheritance as such, rather than just "uninstalled". But it really doesn't sound like there is any point in distinguishing between deactivated and uninstalled styles. Afterall files could be deleted either way, the only difference is how it is displayed in the ACP:
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: [RFC] Revamp of styles section of acp

Postby naderman » Tue Apr 24, 2012 11:18 pm

Oh oops, damn quick reply. Didn't realise I wasn't on the last page, my previous post was written without knowledge of your last post. That sounds better indeed.

There should be a phpbb_styles_manager taking care of the logic. So that acp_styles is really just the user interface.
www.naderman.de
Move your forum to Forumatic - we'll take care of maintenance & spam
User avatar
naderman
Development Team Leader
Development Team Leader
 
Posts: 1650
Joined: Sun Jan 11, 2004 2:11 am
Location: Karlsruhe, Germany

Re: [RFC] Revamp of styles section of acp

Postby Arty » Tue May 01, 2012 8:06 pm

I've put this idea in separate RFC: viewtopic.php?f=108&t=42921
Formerly known as CyberAlien.
User avatar
Arty
Styles Team
Styles Team
 
Posts: 802
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars

Previous

Return to [3.x] RFCs

Who is online

Users browsing this forum: No registered users and 15 guests