MediaWiki New Account Hack
I just threw together a neat hack for MediaWiki that I thought I would share.
On VizWorld.com’s Wiki I run the “AuthGeeklog” plugin, so that the usernames are shared between the two systems. It works pretty nicely, so far. The one problem is that if someone tries to create a new account in the Wiki, they can’t use it to login. Only accounts created via GeekLog are valid. This has caused only a few problems, but could create alot more now that the Wiki is really starting to get some content.
So I did some research and hacked the following lines at the end of the LocalSettings.php file:
if (($_GET['title'] == “Special:Userlogin”) && ($_GET['type'] == “signup”)) {
header( “Location: http://www.vizworld.com/users.php?mode=new” );
exit;
}
Basically it takes all attempts to create a new account and redirects them to the VizWorld Account Creation page. Simple and effective.
[tag:vizworld][tag:mediawiki][tag:geeklog][tag:hack]
