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.
Hello, i'd like to use vbwikiskin skin as defalut skin... but is doesn't work very well
In localsetting.php :
I have : $wgDefaultSkin = 'vbwikiskin';
In my file VbWikiSkin.php :
I have : $this->skinname = 'vbwikiskin';
But still the old skin you can see here : http://www.baldursgateworld.com/wiki/
An idee ? Thanks
(media wiki 1.11 and vb 3.7.2 PL3)
Nobody as any idea or information about this ? Do you know a good forum about mediawiki ? I can't find it :'(
:erm:
i got it to work with vbWikiPro on vb 3.7.4 vbwiki_pro 1.3 with MW 1.13.2
used your solution replacing the text in arcane_vbulletin_core.php.
When you put $wgShowExceptionDetails = true; at the bottom of your localsettings.php it gives a stacktrace on what is wrong.
example:
MediaWiki internal error.
Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook vbWiki_GetLocalURL_Hook failed to return a value; should return true to continue hook processing or false to abort.' in /srv/www/birthright.net/brwiki/includes/Hooks.php:137
so all i did was give the functions vbWiki_GetLocalURL_Hook and vbWiki_PersonalUrls_Hook which are both in vbwiki_hooks.php
i got it to work with vbWikiPro on vb 3.7.4 vbwiki_pro 1.3 with MW 1.13.2
used your solution replacing the text in arcane_vbulletin_core.php.
When you put $wgShowExceptionDetails = true; at the bottom of your localsettings.php it gives a stacktrace on what is wrong.
example:
MediaWiki internal error.
Original exception: exception 'MWException' with message 'Detected bug in an extension! Hook vbWiki_GetLocalURL_Hook failed to return a value; should return true to continue hook processing or false to abort.' in /srv/www/birthright.net/brwiki/includes/Hooks.php:137
so all i did was give the functions vbWiki_GetLocalURL_Hook and vbWiki_PersonalUrls_Hook which are both in vbwiki_hooks.php
so basically i only added return true; at the end of the two functions vbWiki_GetLocalURL_Hook and vbWiki_PersonalUrls_Hook just before their closing tag } (approx line number 54 an 121)
What about the cookie problem? It is still alive...
Did you solve the Go To Forum - problem? (Create thread in a forum instead of a discussion page in the wiki) - You use this in your wiki.
What about the cookie problem? It is still alive...
Did you solve the Go To Forum - problem? (Create thread in a forum instead of a discussion page in the wiki) - You use this in your wiki.
there are still some minor flaws.. but it as workable is it is now.. ill look into it later this week, off to bed now