![]() |
Has anyone done vB 3.7.2, Wediawiki 12, and the Pro version?
|
I am ready install wiki but just wanted to make sure that this has no chance of messing up your live forum?
|
Ran across the session logout bug mentioned in this thread. This is how I killed it - I'm not familiar enough with mediaWiki yet to fully weigh the ramifications of this stunt. Use with caution.
In file vbWiki.php find this line of code PHP Code:
PHP Code:
$_COOKIE['enprod_mw__UserName'] This appears to be databasename + underscore + mediawiki prefix + "UserName". You can discover what the field actually is by calling print_r($_COOKIE); exit; where this code mod occurs to find out what part of the cookie you need to reference to find the username for the wiki. It is during the code that precedes that vbWiki populates the cookie but for some reason the $_SESSION is left empty - this is why the user is logged out when they go to the wiki and has to log in. Keep in mind that vbulletin doesn't use $_SESSION at all. The hack above populates $_SESSION with the values necessary to authenticate mediaWiki. It is called after the bridge has already tested the cookie using vbulletin core - so it should be safe. With the fix above I now have this module running on vBulletin 3.7.2 and MediaWiki 1.12.0 |
Ok, if they don't click 'remember me' the above fails. Hmm... I'm close....
|
Thanks for working to get this compatible. Once you do, is there any chance you can upload a complete working/compatible version of the basic files somewhere?
|
Quote:
HOWEVER... I *might* be able to use a plugin.xml to make the transition easier. We'll see. If I can get a plugin to fix the compat issues I can release that as a separate hack of a hack. |
Quote:
Quote:
|
Ok, I've got this down to something reasonably easy to do, but it is still a hack as there seems to be bad code floating about :\
I have managed to narrow down the edits to one file - arcane_vbulletin_core.php In that file find this code PHP Code:
PHP Code:
|
So all we do is install MW 1.12, vBwiki Standard, and then make the changes in post 298 (the one above this one) and it should work? Sounds too easy! Thanks.
|
Quote:
|
All times are GMT. The time now is 03:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|