Not able to install style with template inheritance

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Ideas Centre
Locked
MsIrey
Registered User
Posts: 144
Joined: Tue Sep 02, 2008 1:50 am
Location: Florida

Not able to install style with template inheritance

Post by MsIrey » Fri Aug 23, 2013 1:03 am

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?

User avatar
Lumpy Burgertushie
Registered User
Posts: 66921
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Not able to install style with template inheritance

Post by Lumpy Burgertushie » Fri Aug 23, 2013 1:19 am

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

MsIrey
Registered User
Posts: 144
Joined: Tue Sep 02, 2008 1:50 am
Location: Florida

Re: Not able to install style with template inheritance

Post by MsIrey » Fri Aug 23, 2013 7:45 pm

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.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 69463
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Not able to install style with template inheritance

Post by KevC » Fri Aug 23, 2013 9:43 pm

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
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

Locked

Return to “[3.0.x] Styles Support & Discussion”