Tony:About

From Tony

Jump to: navigation, search

Contents


1/18/2007

  1. Saved php files to /extensions/ParserFunctions
    1. http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFunctions/Expr.php?revision=16633
    2. http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFunctions/ParserFunctions.php?revision=19414
  2. Edited LocalSettings.php by adding
    require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
  3. Removed line 10 from ParserFunctions.php
    $wgHooks['LanguageGetMagic'][]       = 'wfParserFunctionsLanguageGetMagic';


1/10/2007

  • Added to LocalSettings.php '$wgAutoConfirmAge = 315360000;'
  • Adds custom namespaces to User Rights lists
  1. Installed NamespacePermissions.php to extensions folder.
  2. Added to LocalSettings: require_once( "extensions/NamespacePermissions.php" );
  3. Permissions Groups created...
    1. ns{$title}RW - full access to the namespace {$title} (all permissions for the namespace granted)
    2. ns{$title}RO - read-only access to the namespace {$title} (only read permission granted)
  4. Permissions created (for LocalSettings $wgGroupPermissions)
    1. ns{$num}_read
    2. ns{$num}_edit
    3. ns{$num}_create
    4. ns{$num}_move
(NOTE: The macro "define()" should be used to create extra-namespaces in LocalSettings.php.
define('NS_ADMIN', 102);
  1. Had to remarked the 'require_once' command as it was overriding

$wgGroupPermissions and making User Rights Admin messy

  • Restrict access to Custom Namespaces

Changed includes/Title.php

OLD

if( $wgUser->isAllowed('read') ) { 
  return true;
} else {
  global $wgWhitelistRead;

NEW

if( $this->getNamespace() == 100 ) {
      return $wgUser->isAllowed('viewforbidden');
  }
  if( $wgUser->isAllowed('read') ) { 
      return true;
  } else {
      global $wgWhitelistRead;
  • Edited $wgWhitelistRead to:

$wgWhitelistRead = array ( "Main Page", "Special:Userlogin", "Special:Preferences", "Special:Confirmemail", "Special:Userlogout", "MediaWiki:Monobook.css", "RttR:Site support", "Help:Contents", "Past Shows", "Category:Interview", "Category:Theme", "Category:Topic", "Category:Movie", "Category:Special", "Category:Predictions", "Category:Bit", "RttR:Community Portal", "-" );

  • Added NoReplyAddress
$wgNoReplyAddress	= "****";
  • Updated $wgNamespacesToBeSearchedDefault.
Default pages are now: NS_MAIN, NS_TALK, NS_USER, NS_USER_TALK, NS_CATEGORY, NS_IMAGE, NS_HELP
  • Fixed Default Timezone, offset was in minutes instead of hours, text

should now be:

$wgLocaltimezone = 'CST';
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = -6;
putenv("TZ=$oldtz");
  • Changed $wgGoToEdit back to false
  • Overhauled permissions in LocalSettings.php

1/9/2007

  • Discovered that 12/20/06 rollback also unrolled the Group Permissions

1/2/2007

  • Minor changes to LocalSettings.php

12/29/2007

  • Minor changes to LocalSettings.php
$wgUseTidy          = true;
$wgAllowExternalImages = true;
  • Attempted to pool Images, made following changes in LocalSettings.php
$wgUseSharedUploads = true;
$wgSharedUploadPath = "http://wiki.racetotheright.com/common/";
$wgSharedUploadDirectory = "http://wiki.racetotheright.com/common/";
$wgHashedSharedUploadDirectory = false;


12/20/2006

  • Upgrade to Mediawiki 1.8.2 did not work. Restored 1.6.8.
Problem may be related to extensions not copied from 1.6 and/or failure to engage server's PHP: 5.0.5.

12/12/2006 - 12/14/2006

  • Created Custom Namespaces
Added to $wgNamespacesWithSubpages = array
100  => true,
101  => true
Added new array (names of namespace X out):
$wgExtraNamespaces =
	array(100 => "XXXX",
	      101 => "XXXX_Talk"
	      );
  • Edited $wgGroupPermissions for new settings

Created on 10/20/2006

  • MediaWiki: 1.6.8
  • PHP: 4.4.0
  • MySQL: 14.7 Distrib 4.1.11

Proper log of upgrades, customizations and modifications was not done...will be filled in as re-discovered.

Personal tools