Topic on Project:Support desk

86.173.55.164 (talkcontribs)

Hi how can I add options in skin that allows me to lets the user choose the default logo or use there own because I doint know how to add options in skins.

Florianschmidtwelzow (talkcontribs)

Skins should only get options, saved for the user, not set some. In your skin template you can use $this->getUser()->getOption() to get an Option (e.g. "skin" to get the skin name).

With an Extension you can add Useroptions to save some values you want.

86.173.55.164 (talkcontribs)

Ok. How do I add options like they are in default setting.php but just for the skin.

Florianschmidtwelzow (talkcontribs)
151.225.137.145 (talkcontribs)

Ok but I thought you can create options in the skin without needing to add them to an extension or in the core of Mediawiki.

Florianschmidtwelzow (talkcontribs)

It's possible, too, but i would suggest to do not add too much funtionality into a skin. If you want to set the options with cookies, for example, you can use the WebRequest class.

151.225.137.145 (talkcontribs)

Hi um well I just need to add options so that the user can decide if they want the default logo or choose there own or if they want search bar on the sidebar or on the top bar.

Reply to "Help with skin"