Open main menu

Extension:PopUpFile

MediaWiki extensions manual
OOjs UI icon advanced.svg
PopUpFile
Release status: beta
Implementation Parser extension , Ajax
Description Adds a file upload popup in any page
Author(s) Toni Hermoso Pulido (Tonihertalk)
Latest version 0.1
MediaWiki 1.16?, 1.17
PHP 5.2.x, 5.3.x
License GNU General Public License 2.0 or later
Download Git Repository
Translate the PopUpFile extension if it is available at translatewiki.net
Check usage and version matrix.

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

This extension includes the Fancybox jQuery library

Contents

UsageEdit

{{#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

Download instructionsEdit

You can get the code from this repository.

InstallationEdit

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

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

See alsoEdit