Recent Topics

custom skin issue

Started by on Jun 10, 2014 – Contents updated: Jun 12, 2014

Jun 10, 2014 05:55    

I have 3 blogs, each with a version of the custom skin. So, I have copied the custom skin directory 3 times to the server /skins directory, and I now have /custom, /notes, and /path skins. The standard custom skin installs OK, but when I try to install the other two, I get this error message:

'There seems to be a _skin.class.php file in the skin directory [notes], but it does not contain a properly named class. Expected class name is: notes_Skin'

I have changed

function get_default_name()
{
return 'custom';
}

(in _skin.class.php)

in the case of each, so that with respect to the /notes skin I have

function get_default_name()
{
return 'path';
}

What else is causing the above error? I have 755 permissions on all directories? If I change 'path' to 'path_Skin' as the error message suggests (which doesn't seem right) I get the same result.

Jun 10, 2014 07:37

That should read:

in the case of each, so that with respect to the /notes skin I have

function get_default_name()
{
return 'notes';
}

Jun 11, 2014 00:53

Hello @tgodfrey,

The name of the class declared in _skin.class.php should be spelt exactly as the folder. For example, the class for the custom skin must be declared as following:

PHP

class custom_Skin extends Skin
{

your skin notes must be:

PHP

class notes_Skin extends Skin
{

and so on...

Jun 11, 2014 01:57

Ah. Thanks. And the following:

function get_default_name()
{
return 'custom';
}

should remain as that?

Jun 12, 2014 06:03

@tgodfrey that's the name that you see in the back-office when manage the skins, so you should change it accordingly.

Jun 12, 2014 13:11

Very good. I will do that. Good to have the clarification, with little time to experiment. My thanks again.


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.