Version: 1.00, by Michael Morris
Developer Last Online: Jun 2009
Category: Integration with vBulletin -
Version: 3.7.2
Rating:
Released: 07-09-2008
Last Update: 07-09-2008
Installs: 26
Re-useable Code Code Changes
No support by the author.
The following is a hack of an existing plugin the author abandoned and which stopped working when vbulletin upgraded to 3.7 and mediaWiki changed to version 1.12 - the two of which happen to be the latest versions of their respective software. The file change below will allow the hack to work with vb 3.7 and Media Wiki 1.12. If you are using older versions of either I would recommend using the elfMage's product in it's original form.
You will need to start by installing MediaWiki seperately and then uploading vbWikiStandard and following its instructions. Here is a link to that product.
if ((empty($_SESSION['wsUserID']) || empty($_SESSION['wsUserName']) || empty($_SESSION['wsToken']))
&& !empty($_COOKIE[$wgDBname.'_'.$wgDBprefix.'UserName']))
{
$_SESSION = array_merge( $_SESSION, $db->query_first("SELECT
user_id AS wsUserID,
user_name AS wsUserName,
user_token AS wsToken
FROM ".$wgDBname.".".$wgDBprefix."user
WHERE user_name = '".addslashes($_COOKIE[$wgDBname.'_'.$wgDBprefix.'UserName'])."' LIMIT 1"));
}
I have tested this for 2 weeks on EN World, a site that gets about 22,000 hits / day and it appears stable. We've had a few isolated instances of users stating they are getting logged off, but I believe that's because they are running cookie blockers.
Do not attempt using this hack with vbWikiPro - for optimization I removed the loading of several libraries pro requires. If there is enough interest in this bridge still I will consider wholly rewriting the bridge to tighten up integration further. In the interim though this seems to work.
I will provide what support I can but be warned the original hack has been abandoned and outside the changes I've made in this mod your guess is as good as mine.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Warning: require_once() [function.require-once]: URL file-access is disabled in the server configuration in xxxxxxxxxxxxxxx/LocalSettings.php on line 126
Warning: require_once(xxxxxxxxxxxxxxxxxx/vbWiki_Init.php) [function.require-once]: failed to open stream: no suitable wrapper could be found in xxxxxxxxxxxxxx/LocalSettings.php on line 126
Fatal error: require_once() [function.require]: Failed opening required 'xxxxxxxxxxxxxxxxxx/vbWiki_Init.php' (include_path='/home/ffesf/public_html/wiki:/home/xxxx/public_html/wiki/includes:/home/xxxxx/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/wiki/LocalSettings.php on line 126
This is when I installed the previous version first before this patch. (the link given in the first post)