Difference between revisions of "ConfirmAccount configuration"

From Klaus' wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
vi ConfirmAccount.sql  
 
vi ConfirmAccount.sql  
 
# Change the database in question using
 
# Change the database in question using
# '':1,$s/\/\*\$wgDBprefix\*\//<database in question>_/g''
+
# '':1,$s/\/\*\$wgDBprefix\*\//<database in question>./g''
 +
# '':1,$s/TYPE=/ENGINE=/g''
 
mysql -h localhost -u root -p <database in question> <ConfirmAccount.sql
 
mysql -h localhost -u root -p <database in question> <ConfirmAccount.sql
 
cd ../..
 
cd ../..
Line 16: Line 17:
 
<source lang="php">
 
<source lang="php">
 
# Force a proper creation of user accounts - by KK 2011 02 21
 
# Force a proper creation of user accounts - by KK 2011 02 21
$wgConfirmAccountContact[] = 'klausk@hih.au.dk';
+
$wgConfirmAccountContact = "klausk@hih.au.dk";
 
require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");</source>
 
require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");</source>
  
 
Test, test and test.
 
Test, test and test.

Latest revision as of 11:06, 19 October 2011

The ConfirmAccount is a plug-in for MediaWikis forcing a potential user to fill in a form and the content will be sent to the administrator.

cd <wiki-directory>/extensions/
tar zxvf ../../ConfirmAccount-MW1.16-r62787.tar.gz 
cd ConfirmAccount/
vi ConfirmAccount.sql 
# Change the database in question using
# '':1,$s/\/\*\$wgDBprefix\*\//<database in question>./g''
# '':1,$s/TYPE=/ENGINE=/g''
mysql -h localhost -u root -p <database in question> <ConfirmAccount.sql
cd ../..
vi LocalSettings.php

In the LocalSettings.php insert these lines:

# Force a proper creation of user accounts - by KK 2011 02 21
$wgConfirmAccountContact = "klausk@hih.au.dk";
require_once("$IP/extensions/ConfirmAccount/SpecialConfirmAccount.php");

Test, test and test.