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.
Instead of replacing the above code try inserting this underneath the above code for pro. I can't test it because I don't have pro - but it might work. Worth a shot.
PHP Code:
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")); }
Instead of replacing the above code try inserting this underneath the above code for pro. I can't test it because I don't have pro - but it might work. Worth a shot.
PHP Code:
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"));
}
will let you know how I get on with that over the weekend - thanks
It doesn't work. Anyway I'm not really having a lot of problems with vbwiki pro + media wiki 1.12 + vB 3.7.1. The only issue I'm having is that the search and quick links drop down menus wont work. Do you know how to fix them?
It doesn't work. Anyway I'm not really having a lot of problems with vbwiki pro + media wiki 1.12 + vB 3.7.1. The only issue I'm having is that the search and quick links drop down menus wont work. Do you know how to fix them?
------------------------------
Actually, they work fine for me (vbwikipro + mw 1.12 + vb 3.7.1). Could it be the specific style you're using?