Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12 Details »»
Patch to vbWikiStandard for vb 3.7 & mediaWiki 1.12
Version: 1.00, by Michael Morris Michael Morris is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

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.

https://vborg.vbsupport.ru/showthread.php?t=136242

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 08-13-2008, 10:14 AM
domaino domaino is offline
 
Join Date: Jul 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Rein, but problem unresolved.

Here is everything I have done that may I feel have caused a problem:

vbWiki was installed inside the forum directory e.g. forum/vbWiki/vbWiki_Init.php - is this correct?

I moved localsettings.php to the parent directory (as requested) but then I crossed back over my steps and found this wasn't the problem.

I have changed my paths again and again, they must be correct. Currently it is set as: /public_html/forum/vbWiki/vbWiki_Init.php - I have even tried directing the path straight to the root e.g. home/domaino/public_html/vbWiki/vbWiki_Init.php and still no luck

I tried changing the require once to be included between php blocks:
<?php require_once "/public_html/forum/vbWiki/vbWiki_Init.php"; ?>
and instead of being presented with the aforementioned message, I was provided with this: Parse error: syntax error, unexpected '<' in /home/domaino/public_html/wiki/LocalSettings.php on line 126

I'm running vb 3.7.2 and the latest release of MediaWiki, would this cause compatibility issues?

Also, I downloaded the RC5 version of the previous release for 3.6.

I have been tinkering with this all last night and this morning and still no success. Does anyone have any ideas?

Thanks,
Gareth
Reply With Quote
  #43  
Old 08-13-2008, 02:43 PM
domaino domaino is offline
 
Join Date: Jul 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone have any ideas on this one?

I really NEED this fixed up, so any help greatly appreciated.

Cheers.
Reply With Quote
  #44  
Old 08-14-2008, 01:29 PM
GoodOmens GoodOmens is offline
 
Join Date: Sep 2007
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by domaino View Post
Thanks Rein, but problem unresolved.

Here is everything I have done that may I feel have caused a problem:

vbWiki was installed inside the forum directory e.g. forum/vbWiki/vbWiki_Init.php - is this correct?

I moved localsettings.php to the parent directory (as requested) but then I crossed back over my steps and found this wasn't the problem.

I have changed my paths again and again, they must be correct. Currently it is set as: /public_html/forum/vbWiki/vbWiki_Init.php - I have even tried directing the path straight to the root e.g. home/domaino/public_html/vbWiki/vbWiki_Init.php and still no luck

Thanks,
Gareth
That should be /home/domaino/public_html/forum/vbWiki/vbWiki_Init.php you need the "/" in front of home and it seems your vbWiki folder is in your forum folder (And yes this is the correct location of vbWiki). You also don't need the php blocks so it should just be :

Code:
require_once "/home/domaino/public_html/forum/vbWiki/vbWiki_Init.php";
Reply With Quote
  #45  
Old 08-15-2008, 01:05 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does not work with WikiMedia 1.13... required files are missing.
Reply With Quote
  #46  
Old 08-15-2008, 03:04 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... I am having a few problems with this and WM 1.12...

1) if I am not logged into vBulletin and I go to the Wiki... I dont see a link to login...
2) often when I am logged into VB and go to the Wiki... it logs me out...

And how do I set it up so that people cant edit pages unless they are logged in?
Can I turn off personal talk pages? Since we have VB, we wont be needing them.
Would there be a way to rap the Wiki in the VB templates?

Also... would anyone mind helping me configure this Wiki of mine? I am brand new to Wikis and this thing is CONFUSING!
Reply With Quote
  #47  
Old 08-16-2008, 12:55 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone found a solution to this "Cookies Cleared" problem?
Reply With Quote
  #48  
Old 08-18-2008, 10:19 AM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anymore solutions?
Reply With Quote
  #49  
Old 08-19-2008, 03:54 AM
ericdesmontagne ericdesmontagne is offline
 
Join Date: Mar 2007
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #50  
Old 08-21-2008, 04:56 AM
GoodOmens GoodOmens is offline
 
Join Date: Sep 2007
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've found a bug ... seems if a user logs out of the forum visiting the wiki will give him the "cookies cleared" until he logs back into the forum.
Reply With Quote
  #51  
Old 08-26-2008, 09:43 PM
Rein Masamuri's Avatar
Rein Masamuri Rein Masamuri is offline
 
Join Date: Apr 2003
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxel View Post
Has anyone found a solution to this "Cookies Cleared" problem?
I was wondering this as well :/

EDIT:
Found the solution on the nuhit website:
Quote:
Think I got it, edit the file "/vbWiki/vbWiki_Auth.php"

Put // infront of the following lines

$user->logout();
global $wgEnableParserCache, $wgParser, $wgOut, $wgCachePages;

So it should be

//$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.

I have cleared my cookies, restarted my browsers (both IE and Firefox) and it's working for me everytime now.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07241 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete