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.
BTW - nice Idea - but in fact that vBWiki is dead i believe this "Bridge" is useless. A Importer from vBWiki -> MediaWiki will make more Sense.
mediawiki 1.12 is still alive. And this is a bridge to vbulletin. I think redlabour is a little confused.
Quote:
Originally Posted by mokonzi
@ redlabour, I'm well aware vbWikiPro is dead, hence my question.
Actually, vbWikiPro is working quite well for me with mw 1.12 + vb 3.7.1 My only problem was with a cookies/login issue, but there is an easy fix on nuhit.com (FIX FOR vbWikiPRO ONLY):
Quote:
Originally Posted by kremer4
Think I got it, edit the file "/vbWiki/vbWiki_Auth.php"
Put // infront of the following lines
$user->logout();
global $wgEnableParserCache, $wgParser, $wgOut, $wgCachePages;
Let me know if this works for you. I also made one other change but I don't think it's related. If this does not work then I'll post the other change I made.
However, after using this fix, it doesn't clear the cookies completely and it makes it look like the user is still logged in when he's really not. But it does seem to work other than that.
By the way, I really hope that Michael Morris can make this integration better as he stated up above,
Quote:
Originally Posted by Michael Morris
If there is enough interest in this bridge still I will consider wholly rewriting the bridge to tighten up integration further.
I really hope that you can keep improving this. Thank you again for keeping this alive!! I'm still using vbWikiPro, but I would love to have this as an alternative.
Just used this patch with mediawiki 1.12 and vb 3.7.2 forums are working fine, wiki is working fine but any attempts to view the wiki whilst logged in results in me being logged out from both. Any ideas why?
Same thing is happening to me on our test install, logged in on the forums, then if I try going to the wiki, it redirects to the forums and logs me out...
cookies must be enabled for this patch to work. I haven't been able to get it to work when cookies are disabled.
The underlying problem is vbulletin stores session information in the database whereas wiki stores it in $_SESSION. vbulletin doesn't even use $_SESSION.
By the way, I really hope that Michael Morris can make this integration better as he stated up above,
you`re using a commercial add-on for vBulletin that costs $60 USD and are hoping for an indipendant programmer here on vb.org to fix this product? That doesn`t sound like NuHIT offers a reliable, well supported solution.
At the moment I`m using this solution http://www.mediawiki.org/wiki/Extens...rs_Integration
which offers no skin support. So vBWiki Pro would be interesting for me but not if I it keeps me from updating MediaWiki and vBulletin because I have to wait ages until they officially support the latest versions.
That doesn`t sound like NuHIT offers a reliable, well supported solution.
NuHIT is for all intents and purposes gone. There's still a web site and I *think* they'll still take someones money, but essentially the products have been abandoned. This is no secret and has been discussed in other threads. I bought the pro package quite a while back. It's still working for me.
cookies must be enabled for this patch to work. I haven't been able to get it to work when cookies are disabled.
The underlying problem is vbulletin stores session information in the database whereas wiki stores it in $_SESSION. vbulletin doesn't even use $_SESSION.
As far as I know, cookies are enabled. The issue is, when we log into the forum, then browse to the wiki, it redirects back to the forum logout page...