Extension:SkinByURL

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
SkinByURL

Release status: beta

Implementation User interface, Skin
Description Force use of a particular skin based on the URL used to access the wiki
Author(s) Eric MyersTalk
Last version 0.3
MediaWiki 1.10.4
License GPL
Download http://www.spy-hill.net/~myers/SkinByURL.php

Check usage (experimental)

This extension causes a page to be displayed with a particular skin based on the name of the file used to access the page. Just replace "index" in index.php with the name of the skin. For example, you could force a display in the "chick" skin (for hand-held devices) by changing the entry point from "index.php" to "chick.php"

Contents

[edit] Usage

Simply replace "index" in the URL filename with the name of the skin you wish to force. For example, to force use of the "chick" skin replace "index.php" with "chick.php"


[edit] Download instructions

The source code for this extension (a single file) may be obtained via anonymous CVS with the command

cvs -d :pserver:anonymous@www.spy-hill.net:/usr/local/cvsroot/mediawiki co extensions/SkinByURL.php

"Version 0.3 of 14 July 2008" is also available from https://trac.ci.uchicago.edu/i2u2/export/2920/tags/1.2.4/library/extensions/SkinByURL.php

[edit] Installation

To install this extension, download the file SkinByURL.php as specified above and add the following to LocalSettings.php:

#add configuration parameters here
#setup user rights here
require_once("$IP/extensions/SkinByURL.php);

To make use of the extension you also need to add a soft link in the main directory to the file index.php based on the skin(s) you wish to use. For example, to allow use of the "chick" skin, you would give the command

ln -s index.php chick.php

and then replace "index.php" with "chick.php" in the URL.


[edit] See also

The extension Extension:SkinByUrl2 performs the same function, though it shares no code with this extension.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox