Recent Topics

1 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.

2 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';
}

3 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:


class custom_Skin extends Skin
{

your skin notes must be:


class notes_Skin extends Skin
{

and so on...

4 Jun 11, 2014 01:57

Ah. Thanks. And the following:

function get_default_name()
{
return 'custom';
}

should remain as that?

6 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...