On my wiki www.borealis.x-12.pl i use GumaxDD 1.0 skin whith changed top. I want to create the second skin based on GumaxDD but whith other image in top. When i copy GumaxDD folder and renamed it to "Kombinat" and next i create files Kombinat.php and Kombinat.deps.php and change the value $this->skinname to "Kombinat" my new skin doesn't work. I see it in the list of skins but when i launch it i see the MonoBook skin. Why? Can i fix it?
PS: sorry for my english
How to create second skin based on GumaxDD
Re: How to create second skin based on GumaxDD
Did you pay attention to the capital or lower case of the skin name?
Double check and let me know...
Double check and let me know...
Re: How to create second skin based on GumaxDD
Yes, i'm sure.
This is the css file in "kombinat" skin where i add a background image to #gumax-header:
http://borealis.x-12.pl/wiki/skins/komb ... mplate.css
You can see that the name of folder is writen of a small letter.
Also here is a fragment of skins/Kombinat.php file which is a changed copy of GuMaxDD.php file:
Everything seems to be good but it's not working:
http://borealis.x-12.pl/wiki/index.php?useskin=kombinat
This is the css file in "kombinat" skin where i add a background image to #gumax-header:
http://borealis.x-12.pl/wiki/skins/komb ... mplate.css
You can see that the name of folder is writen of a small letter.
Also here is a fragment of skins/Kombinat.php file which is a changed copy of GuMaxDD.php file:
Code: Select all
class SkinGuMaxDD extends SkinTemplate {
/** Using GuMaxDD */
function initPage( &$out ) {
SkinTemplate::initPage( $out );
$this->skinname = 'kombinat';
$this->stylename = 'kombinat';
$this->template = 'GuMaxDDTemplate';
$this->cssfiles = array( 'IE', 'IE50', 'IE55', 'IE60', 'IE70', 'rtl' );
}
}
http://borealis.x-12.pl/wiki/index.php?useskin=kombinat
Re: How to create second skin based on GumaxDD
You need to rename the class name and template name as well.
Code: Select all
class SkinGuMaxDD extends SkinTemplate {
Code: Select all
$this->template = 'GuMaxDDTemplate';
Re: How to create second skin based on GumaxDD
I changed 'GuMaxDD' to 'Kombinat' in skins/Kombinat.php in three places:
but it still don't want to work
Code: Select all
...
class SkinKombinat extends SkinTemplate {
function initPage( &$out ) {
SkinTemplate::initPage( $out );
$this->skinname = 'kombinat';
$this->stylename = 'kombinat';
$this->template = 'KombinatTemplate';
$this->cssfiles = array( 'IE', 'IE50', 'IE55', 'IE60', 'IE70', 'rtl' );
}
}
class KombinatTemplate extends QuickTemplate {
var $skin;
...
Re: How to create second skin based on GumaxDD
How do you know it's not working? Are you sure the wiki is using the right skin?
Re: How to create second skin based on GumaxDD
After clearing the cache the skin started to working properly. Sorry, my fault. And thanks for help You doing a great job!
http://borealis.x-12.pl/wiki/index.php?useskin=kombinat
http://borealis.x-12.pl/wiki/index.php?useskin=kombinat