User:Lhridley

From MediaWiki.org

Jump to: navigation, search

My name is Lisa Ridley; I usually go by the login Lhridley; in the past I have used Hoggwild or Hoggwild5. I work as a web applications developer, primarily utilizing PHP/MySQL with a little jQuery thrown in for good measure.

I am an administrator on the MediaWiki Users forums, which can be found here. I currently run three websites with MediaWiki software installed. I also develop customized MediaWiki solutions for other organizations.

One of our forum participants (gauravpahuja) posted a MediaWiki hack that restricts access to editing user pages to the user and sysops; I made a couple of tweaks to his code to extend the code to user subpages as well. The code has been tested as noted on the page linked below, where I'm posting the code modification here for others that may want to use the code.

[edit] Other extensions/hacks:

  • Calendar Class for MediaWiki -- if you write extensions that utilize date fields, you may find this class useful. This is a PHP Class written as a wrapper for a javascript popup calendar that can be used to insert dates and/or times into data entry fields in MediaWiki. The class structures a function call that gets inserted into your forms script to trigger a pop-up calendar. The popup calendar itself is available at www.rainforestnet.com, although I made a few modifications to the original javascript file to facilitate its incorporation into MediaWiki. While this has only been tested on MediaWiki version 1.12, English version, the calendar month and day names pull from the MediaWiki content language files (stored in global $wgContLang), so this should work with other languages supported by MediaWiki with no problems.
  • Create Article - a modified version of the InputBox extension that is just for creating articles. Allows you to specify a prefix (good for namespace) or subpage for an article without the user being made aware of the argument; the user simply needs to supply the article name, and the extension automatically adds the specified prefix and/or subpage to the article name.
  • UserPageEditProtection - this extension, which has currently been tested on MediaWiki versions 1.6.10, 1.7.3, 1.8.4, 1.9.3, and 1.10.0, provides restricted edit access to user pages to the user that "owns" the page and to sysops. This extension is in beta version at this time; when testing is completed, the extension will be released as a stable version.
  • NamespaceProtection - this extension provides the namespace protection capabilities introduced in MediaWiki version 1.10 for prior versions of MediaWiki. This extension is currently in beta test, and has been tested on version 1.6.10.
  • SFRGreen skin - this skin is loosely based on the Monobook skin, but utilizes a javascript dynamic drop-down menu for the navigation, toolbox, and personal tools menubars, as well as a link to the login screen/logout button. The menubar can accommodate three additional user-added menus, which can be added through MediaWiki:sidebar.
  • Monobook CMS skin - this skin is based on the Monobook skin, but is designed for users who wish to utilize MediaWiki as a content management system for their website. The skin supresses the content action tabs, the personal toolbox, and the upload and special pages links for site visitors; users must be logged in as a "sysop" to see these links.
  • ExtraNamespaces - this extension provides the capability to add custom namespaces through the MediaWiki interface rather than declaring them in the LocalSettings.php file using $wgExtraNamespaces.
  • Extra Sidebar - this is not an extension, but an additional function that can be added to any Monobook or Monobook derived skin that will add an additional menu to the sidebar that can be hidden from anonymous users, but displayed for users who are logged into the wiki. The second navigation menu can be created in a new article in the MediaWiki namespace called MediaWiki:sidebar-internal. This sidebar functions just like the navigation bar, only it is hidden from users who are not logged into the wiki.
  • InternalWhitelist - this extensions provides the capability of maintaining the "whitelisted" pages for anonymous users in the MediaWiki namespace.