vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - vbWiki Standard - vBulletin+MediaWiki integration (https://vborg.vbsupport.ru/showthread.php?t=136242)

Pirat3 05-04-2008 10:44 PM

I get a Testing forum integration error, what is wrong?

Smitty 05-04-2008 11:37 PM

Quote:

Originally Posted by iRO Wiki (Post 1487885)
We've gotten it to work with 3.7 and 1.11.x. vB Wiki currently does not seem to support MW 1.12.0 or higher.

Can anyone confirm this?

xyzz 05-05-2008 11:26 AM

The whole nuhit website is down.. anyone have any info on this? I just found this hack yesterday and would like to purchase the pro version.

Smitty 05-05-2008 11:56 AM

Quote:

Originally Posted by xyzz (Post 1509154)
The whole nuhit website is down.. anyone have any info on this? I just found this hack yesterday and would like to purchase the pro version.

This mod was long ago abandoned. Read through the thread. I'm getting ready for the 3.7 vB upgrade and and hoping what I have will continue to work. But - I expect the integration will fail in the near future if not on this vB upgrade in a future mediawiki upgrade.
Quote:

Originally Posted by iRO Wiki
We've gotten it to work with 3.7 and 1.11.x. vB Wiki currently does not seem to support MW 1.12.0 or higher.
I'm making plans to disassociate the two, unfortunately. I'd pay US$100 for the mod to be updated because I like it a lot. But in my case, not many people really update my site's wiki so it's of questionable value other than what I put in or pay someone to put in.

VICOS 05-28-2008 03:54 AM

What a mess re: Nuhit. The forums say the developer has disappeared and/or can't be reached. Yet, they're still taking people's money to buy licenses of the now unsupported code w/o clear disclosure of this fact at time of sale. And there is some guy on the forum who is a moderator but says he is not with Nuhit.

This is the problem with having to go to a third party for a solution. Integration needs to be provided by either vBulletin or MediaWiki or both in full cooperation.

vbem2 06-03-2008 06:37 PM

I've fudged with this for several hours and can't seem to figure it out...

I'm running mediawiki, vb, and vbwiki, but am having issues getting the login or the diagnostics to work.

There is no subdomain issue, and the forums are here: http://ecomodder.com/forum and the wiki here: http://ecomodder.com/wiki It wasn't logging in, so I tried to turn on the diagnostics by changing the value to 'true' and then navigating to the main page, but I don't see anything...

I then went here: http://ecomodder.com/forum/vbWiki/vbWiki_Tools.php and saw this:

Quote:

Current directory... /home/ecomodder/public_html/forum/vbWiki
Wiki Root directory ($IP)... [Not Set]
Forum Absolute Path ($g_Arcane_Forum_Local_Dir)...
vbWiki Pro DIR... LUX_DIR
vbWiki Pro PLUGIN DIR... LUX_PLUGIN_DIR

Testing paths and forum installation
Verifying Forum Absolute Path... Directory NOT FOUND: ''
Could this be the issue? If so, how do I fix it? Sorry for the trouble, thanks.

solidlink 06-09-2008 01:31 AM

Hopefully you will work on 1 for 3.7 versions of vbulletin :D

peterle1 06-09-2008 10:12 AM

Quote:

Originally Posted by solidlink (Post 1544594)
Hopefully you will work on 1 for 3.7 versions of vbulletin :D

I am afraid he won't ... :rolleyes:

Warlord 06-13-2008 01:18 AM

I installed this with little difficulty, but trying to get it to work like Wikipedia was an entirely different story.

I want the {{reflist}} template and other common templates to work for my site. What do I do?

Michael Morris 07-03-2008 07:39 PM

I just installed this to vbulletin 3.7.2 and Media Wiki 12.0 without major issue (I had one, but it was the fault of a package of my own devising, not the bridge itself).

Smitty 07-03-2008 08:05 PM

Has anyone done vB 3.7.2, Wediawiki 12, and the Pro version?

swisscotton 07-06-2008 09:30 PM

I am ready install wiki but just wanted to make sure that this has no chance of messing up your live forum?

Michael Morris 07-07-2008 04:42 AM

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:

require_once( LUX_VB_DIR "/vbWiki_Hooks.php" ); 

Insert after

PHP Code:

/** Patch - make sure $_SESSION is populated **/
if ((empty($_SESSION['wsUserID']) || empty($_SESSION['wsUserName']) || empty($_SESSION['wsToken'])) && !empty($_COOKIE['seebelow']))
{
    
$_SESSION array_merge$_SESSION$db->query_first("SELECT 
        user_id AS wsUserID,
        user_name AS wsUserName,
        user_token AS wsToken
        FROM mw__user
        WHERE user_name = '"
.addslashes($_COOKIE['seebelow'])."' LIMIT 1"));


To get the above to work you must also change $_COOKIE['seebelow'] following the instructions below. For my board it was

$_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

Michael Morris 07-07-2008 12:36 PM

Ok, if they don't click 'remember me' the above fails. Hmm... I'm close....

iRO Wiki 07-08-2008 12:31 AM

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?

Michael Morris 07-08-2008 01:17 AM

Quote:

Originally Posted by iRO Wiki (Post 1569666)
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?

I will upload the instructions, but legally I can't do anything more since I don't own the rights to the hack.

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.

SuperGLS 07-08-2008 03:41 PM

Quote:

Originally Posted by iRO Wiki (Post 1569666)
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:

Originally Posted by Michael Morris (Post 1569679)
I will upload the instructions, but legally I can't do anything more since I don't own the rights to the hack.

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.

I love to see a new write up with simple and clear instructions on compatibility with 3.7 and 1.12. A plug in to make the whole process easy would be wonderful. Thanks for your hard work on this.

Michael Morris 07-09-2008 04:53 AM

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:

// 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" ); 

A LOT of libraries are being included there, and I *think* most of them are only used by the pro-integration. I changed that whole block to the following.

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"));
    } 

That should fix this plug in to work with mediaWiki 1.12 and vbulletin 3.7 HOWEVER I do not guarantee the pro version will work and I also suspect that users with cookies disabled or blocked will still experience log out troubles.

SuperGLS 07-09-2008 09:06 PM

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.

Michael Morris 07-10-2008 02:26 AM

Quote:

Originally Posted by SuperGLS (Post 1571396)
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.

Yes. If you run into problems I will try to help as I find the time.

SuperGLS 07-15-2008 02:30 PM

Great, thanks.

However, there doesn't seem to be any instructions available on the steps to install vbWiki Standard (in the download from nuHit it gives you a link to the vbWikiPro installation) and a Google search doesn't bring anything up either.

Are all the files simply uploaded to the MW directory?

Wait, is this the right instructions?

http://www.nuhit.com/products/vbwiki-installation.html

Warlord 07-16-2008 08:33 PM

Anyone well versed on installing the extensions, variables (aka magic words) and common templates that Wikipedia uses?

touba 07-20-2008 11:02 AM

Quote:

Originally Posted by Michael Morris (Post 1571595)
Yes. If you run into problems I will try to help as I find the time.

HI,

I do what you wrote on post298 but i always have a blank page when i go to
(before i do your correction in arcane file, i had the same problem)

www.board.com
/vbWiki/vbWiki.php

and when i try

www.board.com
/vbWiki

i have a forbidden message :confused:

what's wrong ?
_i use vbSEO

Warlord 08-06-2008 01:59 PM

Ok, I'm running

MediaWiki 1.12
vB Version 3.6.8

I installed this hack and it works but it's kind of buggy. Every once in a while it will just log you out when you try to go to the Wiki. Anyone know what's up with that?

Also, this version says it will show users viewing the wiki in the active users. It may be doing that, to tell the truth I'm not sure if it is or not because when I click on active users there does seem to be more active users than normal, but it doesn't show where the users are on the Wiki. Seems like it just shows them as browsing the forum index? Anyone able to mod this so that it will actually show where (what article) on the wiki these users are?

LennySh 08-07-2008 07:27 PM

Quote:

Originally Posted by Warlord (Post 1592659)
Ok, I'm running

MediaWiki 1.12
vB Version 3.6.8

I installed this hack and it works but it's kind of buggy. Every once in a while it will just log you out when you try to go to the Wiki. Anyone know what's up with that?

Just installed this yesterday, and it runs good it seems, but I too am experiencing the log-out problems. And I do stay logged in, and save cookies... Any ideas?

LennySh 08-08-2008 12:27 PM

Quote:

Originally Posted by Michael Morris (Post 1570688)
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:

// 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" ); 

A LOT of libraries are being included there, and I *think* most of them are only used by the pro-integration. I changed that whole block to the following.

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"));
    } 

That should fix this plug in to work with mediaWiki 1.12 and vbulletin 3.7 HOWEVER I do not guarantee the pro version will work and I also suspect that users with cookies disabled or blocked will still experience log out troubles.

MediaWiki 1.12
vB Version 3.7.2

I'm still having log out issues, and do not have any problems with my cookies. I installed the WiKi database into a different database than my forums database. So I also did not use the Database prefix either. Is this maybe causing a problem? Lots of my user's are having this trouble with the cookies cleared thingy...:confused:

Warlord 08-09-2008 01:47 AM

I tried the fix from post 298 as well and all it did was give me a shit ton of errors so I changed it back to the orginal format. ElfMage is on indefinite hiatus. We need a good coder to come in and pick up where he left off. It's a shame really, because this hack is awesome and I definitely would've paid for the full version.

Ba$im 08-09-2008 02:04 AM

if I have install my forum as http://forums.3walim.com and want install wiki as subdomain wiki.3walim.com can do integration while bothe wiki and forums on same server?
also if they wasn’t on the same server can integration done?

thanks so much in advance

Emmett Brown 08-09-2008 01:29 PM

Hey all,

After searching I managed to find this thread

http://www.nuhit.com/forums/vbwiki-p...n-problem.html

Quote:

Originally Posted by kremer4 View Post
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.
I tried it on my vBulletin and I don't seem to have the log out problem anymore. However, the following was also mentioned

Quote:

works, which is great. But now there is another issue (although a small one). Even though it is officially logged out of vbulletin and mediawiki, if you visit the mediawiki it still shows as being logged in (eventhough it really isn't).

In the upper-right hand corner, it still shows the old user and the logout button. It's a small thing, but the last step to get it working 100%.

Added Note: If I manually delete my cookies in the web browser, then it seems to work fine. But I would have to manually delete my cookies everytime.
BUT I haven't seen that problem yet.

I just applied this "fix" and haven't tested it too much, but as mentioned, first results seems to be that commenting out that code fixes the logout bug.

LennySh 08-09-2008 05:24 PM

Quote:

Originally Posted by Emmett Brown (Post 1594769)
Hey all,

After searching I managed to find this thread

http://www.nuhit.com/forums/vbwiki-p...n-problem.html



I tried it on my vBulletin and I don't seem to have the log out problem anymore. However, the following was also mentioned



BUT I haven't seen that problem yet.

I just applied this "fix" and haven't tested it too much, but as mentioned, first results seems to be that commenting out that code fixes the logout bug.

Thanks a bundle!!! I'm testing it now, I'll report my results!:cool:

Ransack 08-15-2008 09:16 AM

Installation seems to have worked, but no users (not even Administrator) can create new pages. Pages can be edited. How does one configure the usergroups to allow new wiki page creation?

I've disabled guest editing with the following in LocalSettings.php and that seems to work:

# Disabling new user registrations
$wgWhitelistAccount = array ( "sysop" => 1, "developer" => 1 );
# Disabling anonymous edits
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgWhitelistRead = array ("Special:Userlogin");

But no users can create new pages.

For vB integration, how does:
$wgGroupPermissions[...]
map to a vB user group?

Does it need a vB user group id?
E.g.
$wgGroupPermissions['6']

Or the vB usergroup name?
E.g.
$wgGroupPermissions['Administrator']

Confused.
Thanks for any help.

Ransack 08-15-2008 06:46 PM

^^ I gues this was just a wiki usage problem on my part. I'm not too familiar with them. I see the "create this page" link in the result of a failed search, and that works.

But I'd still like to know how to map vB usergroups to MW usergroups.

I'd like an add/edit group consisting of not just admins and mods but also some regular forum users. How do I do that?

Jaxel 08-16-2008 01:58 PM

Has anyone found a solution to this "Cookies Cleared" problem?

Warlord 08-16-2008 08:22 PM

Quote:

Originally Posted by Jaxel (Post 1600057)
Has anyone found a solution to this "Cookies Cleared" problem?

There's this. But it's kind of a half-ass fix really.

Jaxel 08-17-2008 02:56 AM

Quote:

Originally Posted by Warlord (Post 1600279)
There's this. But it's kind of a half-ass fix really.

Just tried that fix... changed NOTHING. That fix is for vbWikiPro.

Warlord 08-17-2008 04:10 PM

Well since it seems there are no coders familiar with this hack, I'll see if I can try and understand the ins and outs of it, but this is probably a little over my difficulty level so no promises.

I'd love to get this working flawlessly myself, but at the moment my server went kablooey so it might be a while before I can even poke around in there.

Jaxel 08-17-2008 09:38 PM

Anyone notice that Special:Userlogin page doesnt work?

Gives an error.

bezking 08-21-2008 01:20 AM

Hi,

I've installed this and I am not being given sysop privileges.

I've added:

PHP Code:

$g_vbWiki_Usergroup_Mapping            = array (
            
/*Administrators*/    => "sysop",
            
/*Registered Users */    => "editors"
    
); 

And also tried

PHP Code:

$g_vbWiki_Usergroup_Mapping            = array (
            
/*Administrators*/    => "bureaucrat,sysop",
            
/*Registered Users */    => "editors"
    
); 

to vbWiki_Init.php. I'm using vB3.7.2 PL 2 and MediaWiki 1.13.0

Any advice?

Thanks!

wangyu1314 08-23-2008 01:13 PM

now,i run mediawiki 1.13.0 and vbb 3.6.8,but when Testing forum integration,it dispear this wrong message,can someone help me? thx

i think this caused of SpecialUserlogin.php dir have changed,but i can't resolve it:

Warning: require_once(SpecialUserlogin.php) [function.require-once]: failed to open stream: No such file or directory in C:\ampp\htdocs\bbs\vbWiki\vbWiki_Userlogin.php on line 15

Fatal error: require_once() [function.require]: Failed opening required 'SpecialUserlogin.php' (include_path='C:\ampp\htdocs\wiki;C:\ampp\htdocs\ wiki/includes;C:\ampp\htdocs\wiki/languages;.;C:\php5\pear') in C:\ampp\htdocs\bbs\vbWiki\vbWiki_Userlogin.php on line 15

leonnix 09-25-2008 09:10 PM

does it work with 3.7.3


All times are GMT. The time now is 04:07 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
  • Page Generation 0.01840 seconds
  • Memory Usage 1,891KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete