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) |
| 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 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 |
Usage [edit]
{{#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]
You can get the code from this repository.
Installation [edit]
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/PopUpFile/PopUpFile.php");
See also [edit]
- Extension:Semantic Forms. Part of the code comes from there.
