Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Mods for 3.7.x vBulletin Mods for 3.7, vBulletin hacks, vBulletin modification, vBulletin 3.7

Mods for 3.7.x Thread, Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12 in Mods; Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12 The following is a hack of an existing plugin the author ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3280


Reply
LinkBack Thread Tools Display Modes
Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
07-09-2008, 09:48 PM
 
Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12

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.



Note the requirements are a bit higher - mediaWiki 1.12 requires PHP 5. This mod has only been tested on vb 3.7

Once you have completed the instructions of that product open file arcane_vbulletin_core.php - its part of the vbWiki package and find this code:

PHP Code:
// Include vBulletin Engine
    
if ($g_vbWiki_StyleId_Override > 0)
    {
        
define('VB_AREA', 'Forum');
        require_once(
'./includes/init.php');
        
$vbulletin->options['styleid'] = $g_vbWiki_StyleId_Override;
        
$vbulletin->options['allowchangestyles'] = false;                    // ignore user styles
        
$vbulletin->userinfo['styleid'] = 0;
    }
     
    require_once(
'./global.php');
    require_once(
'./includes/functions_login.php');
    require_once(
"./includes/functions.php");                // vbdate
    
require_once("./includes/functions_forumdisplay.php");
    require_once(
"./includes/functions_newpost.php");
    require_once(
"./includes/adminfunctions.php" );
Replace with this code.

PHP Code:
    require_once('./global.php');

    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. Download Now
Attached Files
File Type: txt vbWiki Patch for vb 3-7 and mediaWiki 1-12.txt (2.4 KB, 1 views)
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.7.x Thread, Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12 in Mods; Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12 The following is a hack of an existing plugin the author ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3280


Bookmarks

Tags
112, mediawiki, patch, vbwikistandard


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrate or bridge with MediaWiki Developer Articles 70 30-04-2009 11:48 PM
MediaWiki/vBulletin Single Sign-On Developer Mods for 3.7.x 1 22-04-2009 07:38 AM
vbWiki Standard - vBulletin+MediaWiki integration Developer Mods for 3.6.x 4 09-04-2009 12:06 PM
MSN Patch Developer Software and Programs 2 03-11-2008 05:33 PM
MultiMsn Patch Developer Software and Programs 0 12-10-2008 07:21 PM