Extension:Submit In Toolbar

From MediaWiki.org

Jump to: navigation, search
This extension requires patches to core MediaWiki code . Extensions implemented using patches may be disabled by or interfere with upgrades and security patches. If a suitable alternative without a patch is available, we recommend you use that extension instead.


Manual on MediaWiki Extensions
List of MediaWiki Extensions
Submit In Toolbar

Release status: unknown

Implementation Page action
Description Adds Save,Preview,Diff buttons to Toolbar.
Author(s) Vitas Talk
Version 0.0.2
MediaWiki 1.8.2
Download .tgz
Added rights GPL

Adds Save, Preview, Diff buttons to Toolbar.

Contents

[edit] Installation

  • Untar SubmitInToolbar.tgz in extensions directory
  • Apply EditPage.patch, or edit by hand, the end of getEditToolbar function, it must look like:
      ...
   }
   wfRunHooks('EditToolBar', array(&$toolbar));
   $toolbar.="document.writeln(\"</div>\");\n";
   $toolbar.="/*]]>*/\n</script>";
   return $toolbar;
 }
 ...
  • add to LocalSettings.php
 require_once ("extensions/SubmitInToolbar/SubmitInToolbar.php");

Note: the patch file (as supplied with ver 0.0.2) is not compatible as-is with MediaWiki 1.9. In this wiki version, you will need to edit the includes/EditPage.php file manually. At the end of the getEditToolbar() function (which should be about line 1745), manually replace:

               $toolbar.="/*]]>*/\n</script>";

with:

               $toolbar.="/*]]>*/\n";
               wfRunHooks('EditToolBar', array(&$toolbar));
               $toolbar.="</script>";

Note: Line numbers differ in various MediaWiki versions as new functionality is added to core code. For instance, version 1.12alpha currently places the section to be modified at line 1813.

Installation is otherwise the same as for MediaWiki 1.8.2 wikis.

[edit] Configuration

If not installed on expected path (which is extensions/SubmitInToolbar/), override $wgSubmitInToolbar by:

 $wgSubmitInToolbar = "$wgScriptPath/path-to-SubmitInToolbar-dir";

[edit] Bugs

  • Probably some, tell me...
  • Icons does not look nice... :-(
  • Icons don't show at the end of the bar in wiki 1.9, they display as the first icons :(

[edit] Who's using it?

Please add your wiki here! Add it to the top, and feel free to add a link to your favorite article or two.

Personal tools