MediaWiki MsUpload

From Help
Jump to: navigation, search

This will add in two different very useful abilities: A more "graphical interface" for editing (WikiEditor) and the capacity to drag-and-drop various files and images directly into your articles(MsUpload). WikiEditor is a prerequisite for MsUpload.

Return to Main Page

Prerequisites

Return to Top

Steps

Part I: Uploading the files

  • Unpack the tar.gz of both prerequisites into separate local directories
  • In your extensions/ folder, make a directory called MsUpload
  • In your extensions/ folder, make a directory called WikiEditor
  • Upload the MsUpload files into your server's new extensions/MsUpload directory
  • Upload the WikiEditor files into your server's new extensions/WikiEditor directory

Part II: LocalSettings.php modifications

  • Edit your LocalSettings.php file (should be located in your root www wiki directory) and make sure the following lines are added:

wfLoadExtension( 'MsUpload' ); $wgMSU_useDragDrop = true; $wgEnableWriteAPI = true; $wgEnableUploads = true; wfLoadExtension( 'WikiEditor' );

  • Optional settings you might want to add into your LocalSettings.php:

$wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category

$wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default

$wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style?

$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox

$wgMSU_imgParams = '400px'; // The default size for images inserted on the edit page

$wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)

$wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files

$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx'); // Make sure that the file types you want to upload are allowed

Part III: Check your work

  • Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
    • You should see both of them in the Installed extensions section.
  • You can also check by editing a page, and should now see the new options in the editing area.

Return to Top

References

Return to Top