Extension:PopUpFile
From MediaWiki.org
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; code metrics |
PopUp File is an extension for adding a link that opens a file upload popup window.
This extension includes the Fancybox jQuery library
Usage[edit | edit source]
{{#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}}
- Name of the file (default: empty)
- Upload link (default: Upload file)
- Width of the popup window (default: 650)
- Height of the popup window (default: 500)
- Extra ID if multiple links per page (default: 1)
- This will generate a link with html ID fancybox_1
Download instructions[edit | edit source]
You can get the code from this repository.
Installation[edit | edit source]
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/PopUpFile/PopUpFile.php");
See also[edit | edit source]
- Extension:Semantic Forms. Part of the code comes from there.