OK -- I'm really really confused as to where to go from here as this thread has jumped all over and I can't figure out the good information from the bad information.
What I've done so far is to follow the instruction in the upload:
Code:
STEP 1: Upload the contents of the "upload" directory into your wiki root directory. Edit
LocalSettings.php find this line:
require_once( "$IP/includes/DefaultSettings.php" );
After it, add these two lines:
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
VB_SYSTEM_PATH should be the full filesystem path to your vBulletin installation. If
you don't know the full path, change to your forum home directpry and type pwd in a shell.
It will print the current directory. Ensure you do not add a trailing slash to VB_SYSTEM_PATH!
You no longer have to edit anything in AuthPlugin_vBSSO.php or Userlogin.php
If you have anything in LocalSettings for $wgGroupPermissions['*']['createaccount'], change
all instances of 'createaccount' to false. If you don't have anything in your
LocalSettings.php for 'createaccount', add this line after the two you just added:
$wgGroupPermissions['*']['createaccount'] = false;
This is important so that new users create a forum account instead of a wiki account. If
they create a wiki account by mistake, they will not be able to log in.
STEP 2: Edit class_core.php (found in <forumhome>/includes). Why? vBulletin will mangle a security
token needed by MediaWiki. If you do not make this change, your users will not be able to
edit your wiki. It's really simple and it's worked across vB 3.6.9, 3.7.1, and 3.7.3.
In class_core.php, search for this block of code:
// reverse the effects of magic quotes if necessary
if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc())
{
$this->stripslashes_deep($_REQUEST); // needed for some reason (at least on php5 - not tested on php4)
$this->stripslashes_deep($_GET);
$this->stripslashes_deep($_POST);
$this->stripslashes_deep($_COOKIE);
if (is_array($_FILES))
{
foreach ($_FILES AS $key => $val)
{
$_FILES["$key"]['tmp_name'] = str_replace('\\', '\\\\', $val['tmp_name']);
}
$this->stripslashes_deep($_FILES);
}
}
Replace it with this:
// reverse the effects of magic quotes if necessary
if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc())
{
if ( THIS_SCRIPT != 'wiki' ) {
// MMOG Wiki hack
$this->stripslashes_deep($_REQUEST); // needed for some reason (at least on php5 - not tested on php4)
$this->stripslashes_deep($_GET);
$this->stripslashes_deep($_POST);
$this->stripslashes_deep($_COOKIE);
if (is_array($_FILES))
{
foreach ($_FILES AS $key => $val)
{
$_FILES["$key"]['tmp_name'] = str_replace('\\', '\\\\', $val['tmp_name']);
}
$this->stripslashes_deep($_FILES);
}
}
}
STEP 3: Import the product product-mmog_wiki.xml via your Admin CP. This is the hack that shows the users in
"Who's Online" instead of "Unknown Location" and also configures your login/wiki paths.
Go to your vBulletin Options and look for MMOG Wiki Options. Change "Wiki Path" to the URL path of your wiki.
If your wiki is on a different subdomain, you need to put the full URL of your wiki path minus the trailing
slash. Otherwise, just a relative directory is fine.
So what do I need to do to get this to work?
1. replace modified class_core.php back with the original unmodified version?
2. Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
3. edited User.php as stated in Post #143 (which mediawiki or vbulletin?)
4. Do I make any changes in my LocalSettings.php -- beyond what I did in the instructions?
Am I missing anything on what I need to do to take this from where doing everything in the readme.txt to getting this to work?