How to create second skin based on GumaxDD

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
Elektryk
Rank 0
Rank 0
Posts: 4
Joined: July 25th, 2009, 3:00 pm

How to create second skin based on GumaxDD

Post by Elektryk »

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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How to create second skin based on GumaxDD

Post by Paul »

Did you pay attention to the capital or lower case of the skin name?

Double check and let me know...
User avatar
Elektryk
Rank 0
Rank 0
Posts: 4
Joined: July 25th, 2009, 3:00 pm

Re: How to create second skin based on GumaxDD

Post by Elektryk »

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:

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' );
	}
}
Everything seems to be good but it's not working:
http://borealis.x-12.pl/wiki/index.php?useskin=kombinat
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How to create second skin based on GumaxDD

Post by Paul »

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';
User avatar
Elektryk
Rank 0
Rank 0
Posts: 4
Joined: July 25th, 2009, 3:00 pm

Re: How to create second skin based on GumaxDD

Post by Elektryk »

I changed 'GuMaxDD' to 'Kombinat' in skins/Kombinat.php in three places:

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;
...
but it still don't want to work
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How to create second skin based on GumaxDD

Post by Paul »

How do you know it's not working? Are you sure the wiki is using the right skin?
User avatar
Elektryk
Rank 0
Rank 0
Posts: 4
Joined: July 25th, 2009, 3:00 pm

Re: How to create second skin based on GumaxDD

Post by Elektryk »

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
Post Reply