Mediawiki skinning tips


Mediawiki skinning tips

Postby tmsdev » Sat Jul 18, 2009 5:41 am

To get rid of Mediawiki section editing for sure:
  • In includes/Linker.php, make sure editSectionLinkForOther() and editSectionLink() return “”;
  • In includes/Parser.php, around line with MAG_NOEDITSECTION, make sure $showEditLink is always set to 0
  • In languages/Language.php, in the $wgDefaultUserOptionsEn array, make sure ‘editsection’ => 0
To modify the message on a non-existent page (this is sort of a Mediawiki equivalent of the 404), edit Messages.php (or MessagesEn.php), the ‘noarticletext’ line as needed. To put this change in effect, you may need to run the following in the wiki source directory:
php maintenance/rebuildMessages.php --rebuild

Tested for 1.6, but may apply to other versions as well.
User userpic
tmsdev
Site Admin
 
Posts: 32
Joined: Fri Mar 21, 2008 5:55 pm

Go back to Web development

  • Latest topics on our site:

    Who is currently online

    Users visiting this discussion: No registered members and 0 anonymous

    cron