Got
MediaWiki? 1.9.3 from
http://sourceforge.net/project/showfiles.php?group_id=34373&package_id=93103&release_id=487921.
Unpacked in /tmp.
Installed gFTP locally (filerunner is for advanced users only) and connected with info from the unoeuro mail.
Copied unpacked mediawiki files to public_html/wiki.
Created .htaccess file to turn register_globals off, didn't seem to work.
Setting options:
Wiki name: 1000Words
Email:
lars@1000words.dk
Admin name:
WikiSysop?
Pwd: My first...
Email options: Default (on for all)
MySQL? host: mysql.1000words.dk
DB Name: 1000words_dk_db
User, pwd: As in email
DB prefix: mw_
Moved
LocalConfig?.php.
Looking for how to restrict editing to specific users.
Locked down all editing as per
http://meta.wikimedia.org/wiki/Preventing_Access, adding the lines at the bottom of the
LocalConfig?.php file.
Changed
MonoBook? skin to only show navigation bar, search field, tool box, content actions and personal items to logged-in users. This removes the login:( Also adjusted its footer to only show last-modified, about and mediawiki tag.
Finally changed the text on the main page.
--
LarsClausen - 24 Mar 2007
Changed $wgShowIPinHeader to false.
Changed $wgLogo to "http://www.1000words.dk/wiki/images/1000-words-logo.png".
Moved 'hidden' comments inside PHP tags.
Created the
MediaWiki?:Sidebar page with navigation (see
http://www.mediawiki.org/wiki/Manual:Navigation_bar).
Made the navigation panel non-hidden again.
--
LarsClausen - 18 Apr 2007
Made index.html forward to 1000 Words page.
Create tables photo_groups, photo_images, photo_images_x_tags, photo_tags
--
LarsClausen - 20 Apr 2007
Looking at extensions, installed the "random" extension. Here's some bits:
php file goes in extensions directory. It must be included by
LocalSettings?.php by adding
require("extensions/YourExtension.php");
The extension itself is thus (with my comments):
<?php
# Define the functions that initialize the extension
$wgExtensionFunctions[] = "wfRandomExtension";
# Initialize
function wfRandomExtension() {
global $wgParser;
# Define a new tag <random></random> that is rendered using renderRandom() below
$wgParser->setHook( "random", "renderRandom" );
}
# Input is the text between tags. Arg is URL args? Parser is the page parser.
function renderRandom( $input, $argv, $parser ) {
global $wgParser;
$wgParser->disableCache();
# Break input apart.
$values = explode("@@@", $input);
# Call parser->internalParse to include text on the page.
return $parser->internalParse($values[rand(0, count($values) - 1)]);
}
?>
--
LarsClausen - 21 Apr 2007
[Some stuff missing about changing colors]
Removed automatic title and subtitle from Monobook.php. Added Danish subsection translations.
--
LarsClausen - 08 May 2007
Changed Fine Arts front page to use
ImageGallery?.
ImageGallery? does not (in my version) do what it claims to do, but then I needed to be able to turn off link on the images. Updated includes/ImageGallery.php to parse parameters perrow, showbytes, showfilename, links, and changed includes/Parser.php to pass the params instead of parsing uselessly itself.
MediaWiki? has bad code here I was expecting some magic with parameters and set* functions, but instead the
parser parses the params and sets for the gallery. Attaching diffs.
--
LarsClausen - 21 Jun 2007
to top