Page 1 of 1

Not able to install style with template inheritance

Posted: Fri Aug 23, 2013 1:03 am
by MsIrey
I don't mean to be double posting but I think I originally posted in the wrong forum, the style that I'm trying to install. I am having trouble with template inheritance and I think I probably should have posted here for template inheritance help.

The theme I want to test requires prosilver template inheritance. I do have prosilver as an installed style.

I have the new style in my Styles folder.

This is what is in the new styles folder:
Imageset folder
Template folder (copied from my Prosilver)
Theme folder
style.cfg file

This is what is in the template folder (after deleting the other prosilver html files):
editor.js
index_body.html
overall_footer.html
overall_header.html
styleswitcher.js
template.cfg

This is what appears in the style.cfg file:

Code: Select all

# General Information about this style
name = prosilver_inherit
copyright = © phpBB Group, 2007
version = 3.0.11
This is what appears in the Template/template.cfg file:

Code: Select all

# General Information about this template
name = prosilver_inherit
copyright = © phpBB Group, 2007
version = 3.0.11

# Defining a different template bitfield
template_bitfield = lNg=

# Template inheritance
# See http://blog.phpbb.com/2008/07/31/templating-just-got-easier/
# Set value to empty to ignore template inheritance
inherit_from = prosilver
In ACP/general/load settings I have Recompile stale style set set to yes.

I have purged the cache. I have refreshed my screen.

New style does not show up in ACP in Styles or in Imagesets, Templates, Themes.
It does not show up as a detected uninstalled style.

I am up to date with current version 3.0.11.

I am probably doing something wrong but can't see what it might be. Any suggestions?

Re: Not able to install style with template inheritance

Posted: Fri Aug 23, 2013 1:19 am
by Lumpy Burgertushie
ok, first, inheritance only works with the templates. not with the theme or imagesets.

assuming this is a style you are creating from prosilver, you have to have the style name exactly the same in each of the style folders. ( imageset, template and theme )

that style name has to be exactly the same as the folder name for the whole thing.

if it is not showing up as a uninstalled style then make sure there is only one folder with the style name, not one folder nested inside another folder.

for example, this is wrong:
stylename
..stylename
.....imageset
.....template
.....theme

robert

Re: Not able to install style with template inheritance

Posted: Fri Aug 23, 2013 7:45 pm
by MsIrey
I think I understand but it will have to wait for later for me to work it out. I'll report back when I've had the chance to try again.

Thank you for your response, Lumpy.

Re: Not able to install style with template inheritance

Posted: Fri Aug 23, 2013 9:43 pm
by KevC
You install it in just the same way as any other style. The most common reason for it not showing is that you have it one folder too deep in the hierarchy. Just compare the folder layout to the default prosilver one.

How to install styles on phpBB3