Extension:ModalBox

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

Release status: stable

Implementation Parser function, Skin
Description Creates a Grey, Drop Down Modal Box
Author(s) Oliver Baker (ocbakerTalk)
Last version 3.00 (29 April 2009)
MediaWiki works on 1.14
License MIT
Download Project page
Download snapshot
Subversion [Help]

Browse source code
View code changes

Check usage (experimental)

Contents

[edit] What does it do?

It creates a Grey dropdown box on the page, Dimming out the rest of the page to display the ModalBox.

[edit] Version Information

[edit] Version 1 - Obsolete

This can use ALL HTML

I have not fully figured out how to disable use of the extension on unprotected or partially-protected pages (except when being imported from a protected template)

[edit] Version 2 - Obsolete

[edit] Version 3

This version parses ALL user inputs through Mediawiki, only HTML mediawiki accepts will be included

This is currently the default release.

Unfortunately all the bugs have not been removed, and the Link text is always created on a new line.

[edit] How to use

Add the following line below to the bottom of LocalSettings.php

require_once( "$IP/extensions/modalbox/modalbox.php" );

Copy the ModalBox folder into the extensions folder.

Done.


# Comment:

After normal installation (unzip source to extensions directory), ModalBox didn't work at all. Then I've found it's necessary to rename the Includes subdirectory to all lowercase letters, like this:

mv Includes/ includes/

and then it started working just fine!

(by angico - 2010-06-06)

[edit] Example

{{#modalbox:Title|Content|Link on Article (Can be anything, even the whole article)}}

[edit] Code

The Main PHP file was created by myself. All the files in the Includes folder was created by WildBit That code has been unedited by myself and therefore, do not ask me about it.

Finally,

This extension does not make full use of ModalBox, if you want full usage of modalbox you will have to add it to your own PHP file yourself.

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