Introduction
Styles currently have a style name which is displayed to users, and a style path which is the directory in phpBB/styles/ that the style resides in. However these are used incorrectly in somce places already, since they are typically identical. In https://github.com/phpbb/phpbb3/pull/690 the question came up why we differentiate at all.
Proposal
Remove the style_path. Require that phpBB/style/<style_name> exist, and load all templates themes and assets from that directory.
Patch
Ticket: http://tracker.phpbb.com/browse/PHPBB3-10829
PR: https://github.com/phpbb/phpbb3/pull/1072
Drop distinction between style name and style path
- A_Jelly_Doughnut
- Registered User
- Posts: 1780
- Joined: Wed Jun 04, 2003 4:23 pm
Re: [RFC] Drop distinction between style name and style path
Would style names be limited to [a-z0-9. _-] (or whatever regex actually denotes is valid directory name on *NIX and Windows), or would there be some substiution such that a Christmas-themed style called Noël gets mapped to /styles/Nol (for a completely arbitrary example)
A_Jelly_Doughnut
Re: [RFC] Drop distinction between style name and style path
No, style names would be limited to [a-z0-9_-]
Re: [RFC] Drop distinction between style name and style path
So you are trashing any name that is foreign and does not conform with ANSI even though it conforms with UTF-8?
E.g. (lame name but...) "O tema do João"
E.g. (lame name but...) "O tema do João"
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: [RFC] Drop distinction between style name and style path
I agree with brunoais.
I want to keep the possibility to name my phpbb styles using spaces and any accented character (commonly used in many languages, including german, portuguese, french...and many more!).
Please keep style_path!
I want to keep the possibility to name my phpbb styles using spaces and any accented character (commonly used in many languages, including german, portuguese, french...and many more!).
Please keep style_path!
Re: [RFC] Drop distinction between style name and style path
+1
It is very confusing for styles hierarchy when style can have different name and path. Using only directory name makes things much easier. Nobody cares about style name anyway, all visitors just use whatever is set as default style and never even know its name.
It is very confusing for styles hierarchy when style can have different name and path. Using only directory name makes things much easier. Nobody cares about style name anyway, all visitors just use whatever is set as default style and never even know its name.
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Re: [RFC] Drop distinction between style name and style path
Now that you mention it, if the board administrator disable the option for users to pick a style, shouldn't that option be hidden to users then? Same goes for boards with only one language. Those are 2 options doing nothing on a lot of boards.
Slightly better English than it was in 2005, still improving
- DavidIQ
- Customisations Team Leader
- Posts: 1904
- Joined: Thu Mar 02, 2006 4:29 pm
- Location: Earth
- Contact:
Re: [RFC] Drop distinction between style name and style path
The style selector is already not shown in the UCP when the Override user style option is set to Yes in ACP -> Board Settings.
Re: [RFC] Drop distinction between style name and style path
Yes, I agree. Please create a ticket on our tracker at http://tracker.phpbb.com that we should remove that option if only one style is available.ecwpa wrote:Now that you mention it, if the board administrator disable the option for users to pick a style, shouldn't that option be hidden to users then? Same goes for boards with only one language. Those are 2 options doing nothing on a lot of boards.