[RFC|Merged] Merge style components

These requests for comments/change have lead to an implemented feature that has been successfully merged into the 3.1/Ascraeus branch. Everything listed in this forum will be available in phpBB 3.1.
User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Thu Jan 19, 2012 1:53 pm

naderman wrote:I'd say +1, if we implement some kind of theme inheritance, too and allow multiple levels of inheritance.
Oh, I do like that idea! Imagine being able to clone theme by customizing only colours.css

New RFC incoming
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

User avatar
hanakin
Infrastructure Team
Infrastructure Team
Posts: 788
Joined: Sat Dec 25, 2010 9:02 pm
Contact:

Re: [RFC] Merge style components

Post by hanakin » Sat Jan 21, 2012 2:00 am

+3 million anything and everything to simplify the mess of theme development and progress it towards the current/next standard I am all for. Personally I am can not fathom ppl who use the current inheritance method or any for that matter, this provides a clean way to allow those who would be :evil: to do so gracefully.

User avatar
marian0810
Former Team Member
Posts: 16
Joined: Sun Jul 25, 2010 11:31 am
Location: The Netherlands
Contact:

Re: [RFC] Merge style components

Post by marian0810 » Thu Jan 26, 2012 8:21 pm

Arty wrote:
marian0810 wrote:I actually use that a lot :?
What components are you mixing?
Most of my extra styles only have a theme folder and an imageset, using the template of subsilver2.
Don' t Cry Because It's Over
Smile Because It Happened

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Thu Jan 26, 2012 8:40 pm

Then its not a problem at all. Define template inheritance in style.cfg (currently in template.cfg) and you don't need to copy templates.
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Tue Feb 07, 2012 11:50 pm

Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Sun Feb 12, 2012 1:48 pm

First part of patch is available for testing: https://github.com/phpbb/phpbb3/pull/573

Everything is working, except for styles management in admin control panel.
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Fri Feb 17, 2012 11:32 pm

First version of styles management is ready. You can find it here: https://github.com/phpbb/phpbb3/pull/577

What is included so far:
  • Merged style components (this RFC) - complete
  • Unlimited parent styles tree (RFC) - complete
  • Revamp of acp_styles (RFC) - incomplete
What isn't done yet:
  • Editing templates via admin control panel
  • Purging templates cache via acp_styles (you have to click "purge cache" button on acp index instead)
  • Terminology for template inheritance / parent styles and for disabled / hidden / inactive styles (see this post and few posts below it)
  • Removing old entries from language/en/acp/styles.php (some entries have been removed)
Everything that is available so far should work. You should be able to install or upgrade forum, you should be able to use all existing styles management functions.

To test template inheritance, I've uploaded pack of styles here: download
It is compressed version of my "styles" directory, includes prosilver, subsilver2 and bunch of prosilver clones made with colorizeit. Most of them have dummy template inheritance set up, some are missing templates in order to test inheritance.

You can create more clones by using function "colorize my files" when editing prosilver on colorizeit.
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Merge style components

Post by ecwpa » Sat Feb 18, 2012 1:16 pm

Not sure if this is the right place to ask but, is there a way to not caché templates? This is extrictly for styles developers who don't want to be clearing caché every time you make a change.
Slightly better English than it was in 2005, still improving :D

User avatar
Arty
Registered User
Posts: 970
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: [RFC] Merge style components

Post by Arty » Sat Feb 18, 2012 2:04 pm

admin control panel -> load settings -> recompile stale style components -> enable
Formerly known as CyberAlien.

Free phpBB styles | Premium responsive XenForo styles

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: [RFC] Merge style components

Post by ecwpa » Sat Feb 18, 2012 3:46 pm

Thanks! Thats a weird name for that option though.
Slightly better English than it was in 2005, still improving :D

Post Reply