User talk:BeeVee

From LightWiki

Jump to: navigation, search

Contents

Wiki Notes

Started in 2005, but wasn't until March this year that it got really organised thanks to Mike Wolf. Currently (00:18, 16 May 2007 (CEST)) running:

  • Mediawiki 1.11.0
  • OpenAds 2.4.1
  • Hosted by PresetCentral running
    • Apache,
    • PHP 5.2.1
    • MySQL 4.1.18-standard-log

Snippets

  • To edit the navbar type MediaWiki:Sidebar in the search box

To do:

Short URLs

I managed it last night! (14.05.07) I had to set the .htaccess for the whole site (podpics.org of which www.lightwiki.com is a pointer towards podpics.org/wiki).

This is my entire root .htaccess (I'm sure there's stuff I can clean):

RewriteEngine on
RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#RewriteCond %{HTTP_HOST} chezchristie.com
#RewriteCond %{REQUEST_URI} !^/chezchristie/
#RewriteRule ^(.*)$ chezchristie/$1 [L]

RewriteCond %{HTTP_HOST} lightwiki.com [NC]
RewriteCond %{REQUEST_URI} !^/wiki/
RewriteRule ^(.*)$ wiki/$1 [L]
RewriteRule ^/*wiki/([^.]+)$ wiki/index.php?title=$1 [L]

#Options +Indexes
#IndexOptions -FancyIndexing

And then I changed my wiki's LocalSettings.php file so that this was the article path:

$wgArticlePath = "/$1";

(It was originally "$wgArticlePath = "wiki/$1";" but I didn't want the "wiki" (it seemed redundant))

Anyway, that worked for me, hope it does for you too!

User-only editing

By using a combination of Rob Church's New User Email Notification and DevPit's Preventing anonymous editing, along with editing the pages set up for the messages, I now not only prevent the article, edit, history, etc. tabs from appearing on the wiki for anonymous browsers, I get sent a message to approve new users before they can edit pages.

Curved corners

A simple modification of the main.css gives curved corners for people with Firefox or current Netscape:

/* make a few corners round, only supported by moz/firefox/other gecko browsers for now */
#p-cactions ul li, #p-cactions ul li a {
	-moz-border-radius-topright: 1em;
}
#content {
	-moz-border-radius-bottomleft: 1em;
}
div.pBody {
	-moz-border-radius-bottomright: 1em;
}

Here's how it looks: Image:Rounded corners.png

Timezone for the wiki

Adding the following to the end of LocalSettings.php gives LightWiki a native timezone of western Europe:

#Set Default Timezone
$wgLocaltimezone = "Europe/Paris"; 
$oldtz = getenv("TZ"); 
putenv("TZ=$wgLocaltimezone");
# Versions before 1.7.0 used $wgLocalTZoffset as hours. 
# After 1.7.0 offset as minutes $wgLocalTZoffset = date("Z") / 60; 
putenv("TZ=$oldtz");

Banner ads

I'm using OpenAds for the banners on LightWiki and Mike "LightWolf" Wolf edited the css to allow them to be placed at the top of the page.

Templates

Trying to set up templates to make LightWiki easier to use:

DPL Extension

Added last night, provides the most recent/most popular boxes on the main page. Very configurable and a good manual as well.

Views
Personal tools