Strangely with me in the Styleforum everything works also that.Mannix_ wrote: Sun Oct 20, 2019 11:17 am One more thing the print.css is missing from the ahoi_xmas style
<link href="{ROOT_PATH}styles/prosilver/theme/print.css?assets_version={T_ASSETS_VERSION}" rel="stylesheet">
You were definitely right! The print.css must be in the theme folder. Otherwise, for example, the block quota will not be displayed correctly.
I can see the sense of inheriting templates if you aren't going to edit them anyway. In fact I can't see any advantage in not inheriting those ones. Might as well do it the easy way.Dan Stylez wrote: Sun Oct 20, 2019 4:15 pmNow I prefer template inheritance, when I update a style I don't have to search through the templates to find the ones I've modified as the only ones in the folder are modified, it's much easier and saves forum admins having to create extra folders in their extensions.
The only one I've looked at so far has been Aero. Originally that had Aero (blue variant) as a child of Prosilver, then the other colour variants as children of Aero. No CSS inheritance for any of them. No template inheritance for the parent Aero (blue) but full template inheritance for the child variants of it. So it seems a mix and match approach is fine, AFAICT (although I haven't done a thorough check to figure out what is optimal).CSS inheritance I'm not too keen on but have started playing with it and will probably use it, it seems harder to create a child style of a child style but my interpretation of the style guide was that a child of a child should use the same inheritance method.
IMO it's always a good idea to have an unedited default style as a fallback. Can save your bacon if something is borked with a custom one.I should add, big thumbs up goes to whoever had the idea of removing the option to uninstall Prosilver, It's a small change that people don't notice but a change that will save a lot of people's time.
Code: Select all
https://yoursite.com/index.php?style_id=1
If the style doesn't use template inheritance, if you install an extension - for example... rmcgirr83's 24 hour activity stats extension, if the extensions style folder doesn't have an "all" and just has "prosilver" folder, the extension most likely won't show up in the style,Gumboots wrote: Sun Oct 20, 2019 11:01 pm I'm still getting my head around how phpBB handles all the details that can go with extensions. When you say inheritance saves extra folders for extensions, does this only apply for cases where you haven't edited the template in question?
I don't think it is, it doesn't work here on the phpbb support forum.Gumboots wrote: Sun Oct 20, 2019 11:01 pm Which reminds me: is it possible to select Prosilver via a url if the site default is set to something else? As an example, something like:
Code: Select all
https://yoursite.com/index.php?style_id=1
There is; using "style=x" in the URL, where X is the numeric style ID. Note if "override_user_style" is enabled, this URL parameter will be ignored unless you are an admin (or at least have style administration permission). The code that does this is in /phpbb/user.php where $style_request is populated.Gumboots wrote: Sun Oct 20, 2019 11:01 pm IMO it's always a good idea to have an unedited default style as a fallback. Can save your bacon if something is borked with a custom one.
Which reminds me: is it possible to select Prosilver via a url if the site default is set to something else? As an example, something like:
On a new installation, yes. As a "can assume prosilver is always ID 1", no. I've seen boards being updated from phpBB 3.0.x where prosilver wasn't ID 1, for whatever reason existed in that board's history.Gumboots wrote: Sun Oct 20, 2019 11:48 pm Cool. Thanks for the tip. I thought they would have that as an option. It'll always be =1 for Prosilver.
<!-- IF U_ACP --> drop down code <!-- ENDIF -->
I didn't realise the change was that recent. It's a very good idea. But ok, I can see that old boards might have messed with it. Hadn't happened on the forum I inherited. That has been around for yonks and still has Prosilver as style_id = 1.And we can also logically deduce that "if the option to prevent uninstalling prosilver" wasn't introduced until phpBB 3.2.8, that's an expected reason for prosilver to potentially no longer be ID 1, even if the site operator realized they needed to re-install prosilver after intentionally or mistakenly removing it.
Good tip. Could be handy for testing. Although there could also be fun in letting anyone select your current test mutant and watching them all freak out. Could even set up a specially borked one just for the entertainment.if you want to keep it private to only admin, you can edit the html file in the ext. and surround the code for the drop down with
<!-- IF U_ACP --> drop down code <!-- ENDIF -->