Extension talk:VBulletin

Here is the code of the extension.

INSTALL NOTES
Wiki SSO provided by MyMMOGames.

If you're upgrading from version 2.0.x:

STEP 1: Put the two files below into the $IP/includes and $IP/includes/templates directories respectively

STEP 2: Import the product product-mmog_wiki.xml via your Admin CP. Ensure you check "Allow Overwrite" to upgrade! This is the hack that 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. Configure the other options and voila - you're done!

Install Instructions:

Upload files to your WIKI ROOT - not your forum root!
 * WARNING! ******
 * WARNING! ******

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: Either disable magic_quotes_gpc in php.ini OR add this file to .htaccess in your WIKI ROOT (if you don't have access to php.ini or to restart httpd):

php_flag magic_quotes_gpc off

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.

You're done. Any questions, please post them in the vB.org thread:

http://www.vbulletin.org/forum/showthread.php?t=191186

includes/templates/Userlogin.php
haveData( 'uselang' ) ) { ?>text( 'uselang' ); ?>" /> msgWiki( 'loginend' ); ?> data['message'] ) { ?>	text('messagetype') ?>box"> data['messagetype'] == 'error' ) { ?> msg('loginerror') ?>:  html('message') ?> 

text('action') ?>"> msg('createaccount') ?> html('link') ?> <?php $this->html('header'); /* pre-table point for form plugins... */ ?>	<?php if( @$this->haveData( 'languages' ) ) { ?> <?php $this->html( 'languages' ); ?> <?php } ?> <?php if( @$this->haveData( 'uselang' ) ) { ?><input type="hidden" name="uselang" value="<?php $this->text( 'uselang' ); ?>" /><?php } ?> <?php $this->msgWiki( 'signupend' ); ?> <?php

} }

?>