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 (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}}
- 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
[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
- Extension:Semantic Forms. Part of the code comes from there.
