Extension:PopUpFile

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

Release status: beta

Implementation Parser extension, Ajax
Description Adds a file upload popup in any page
Author(s) Toni Hermoso Pulido (ToniherTalk)
Last version 0.1
MediaWiki 1.16?, 1.17
PHP 5.2.x, 5.3.x
License GPLv2 or higher
Download Git Repository

Check usage (experimental)

PopUp File is an extension for adding a link that opens a file upload popup window.

This extension includes the Fancybox jQuery library

Contents

[edit] Usage

{{#popupfile:Name_of_filename.ext|Text of the link|width of the popup|height of the popup|ID}}

Example: {{#popupfile:August_Report.pdf|Upload your report|500|400|1}}

  1. Name of the file (default: empty)
  2. Upload link (default: Upload file)
  3. Width of the popup window (default: 650)
  4. Height of the popup window (default: 500)
  5. Extra ID if multiple links per page (default: 1)
This will generate a link with html ID fancybox_1

[edit] Download instructions

You can get the code from this repository.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

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

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox