Quote:
|
Initially I started on 3.5.x, but I upgraded as soon as 3.6 came out.
3.6 broke my vRewrite implementation (wiki-vB plugin doesn't need vRewrite, it can work with or without SEO), but I am sure that by now this has been discussed elsewhere, and/or a fix has been provided. Other than that it was 100% compatible. I will provide a public build in the next couple of days. |
I am using Wiki and vB integration and works great I was wondering if it would be possible to have the AuthPlugin_vBulletin.php to check the vB database under User Table under the 'membergroupids' for the value 29 and only at that moment to give access to Wiki.
I dont want all my vB users to have access to Wiki. Thanks alot, G. |
in AuthPlugin_vBulletin find
Code:
// Only registered and admins. Banned and unregistered don't belong here. |
Actually I dont really care about the usergroupid, What am I looking for is membergroupid that is a value of x.
|
Try the following changes:
First, let's change the allowed user groups to only 29. Change the following code in the constructor: Code:
$this->allowed_usergroups = Array(2, 5, 6, 7); Code:
$this->allowed_usergroups = Array(29); Code:
if (in_array($vb_userinfo['usergroupid'], $this->allowed_usergroups)) { Code:
$vb_usergroups = explode(",", $vb_userinfo['membergroupids']); // make an array of membergroupids Notice that I haven't run this code, so it may not work, or it may have some small syntax errors ... :-) |
I am getting the following error:
Parse error: parse error, unexpected T_RETURN, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /hsphere/local/home/mrshides/ww2.free-collective.us/wiki/AuthPlugin_vBulletin.php on line 73 this is how my AuthPlugin_vBulletin.php looks like: Quote:
|
In the function userExists, I left one '{' out (or didn't tell you to remove the extra '}'.. <g>)
Change this: Code:
if (in_array( $vb_groupiter, $this->allowed_usergroups)) Code:
if (in_array( $vb_groupiter, $this->allowed_usergroups)) { |
I dont get an error anymore really. I get:
Login error:Incorrect password entered. Please try again I noticed that my membergroupids are the following: 6,25,26,29,30 Could that cause a problem? |
I forgot to notice that the same filter is present in the function 'authenticate'. This is why you are getting the 'wrong password' error.
Make the same change to that function, there is a similar line there. |
Still getting the same error.
Login error:Incorrect password entered. Please try again This is what the AuthPlugin_Vbulletin.php file looks like: Quote:
|
:-) If I had dedicated some time to test the changes I was suggesting, we would have had it working by now... If this time it doesn't work, I will take the time to test it before my next post... <g>
Now, realize that this AuthPlugin_vBulletin was not written by me, and as such, the original author may not like/agree with my suggestions... In the original code, the function authenticate checks for the allowed_usergroups. I personally think that this is not needed, since 'userExists' is always called before 'authenticate'. Try changing the function 'authenticate' for the following code. Let me know if it doesn't work, and I will try it on my test server. Code:
|
Does anyone know how this project is coming along?
vBulletin 3.6.1 is now out, last I heard, this was for 3.5.4 I would be willing to donate to help progression of this plugin. |
The Luxury Wiki bridge is for 3.6 and Mediawiki 1.7.x
|
Quote:
http://holisticearth.org/wiki/ 3.6.1 must have just come out ... I will give my forum an upgrade asap to make sure it still works. |
some nice design styling done with wiki and your forums
:up: |
Gah...!
3.5.7 board. For security I recently changed the DB username and password... The integration is no longer working. I'm getting "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/totalli/public_html/wiki/AuthPlugin_vBulletin.php on line 73" and "The password you entered is incorrect (or missing). Please try again" errors upon trying to log in. Ideas? |
Does this solution allow users to login to MW and vBulletin on the same domain with a single login? I want MW to be separate from, rather than integrated into, vBulletin, but with a single login.
|
Yes, vbWiki Standard will allow you to do that.
|
does this work with vb 3.68 also?
|
I can confirm that I got this working on vb3.6.7 with mediawiki 1.11svn
http://www.mediawiki.org/wiki/Extens...rs_Integration |
Anyone got this working for vBulletin 3.7?
or any other integration between mediawiki and vB 3.7? |
Update: This seems to work well with vBulletin 3.7 and MW 1.12.
Has anyone found a way to have it automatically log the user in? |
It seems that the later versions of MediaWiki no longer require no spaces in the usernames? So, the restriction in this extension is no longer required (apparently). Hence, I replaced this line:
$this->searchpattern = "/[^a-zA-Z0-9]+/"; with this line: $this->searchpattern = "/[\#\<\>\[\]\|\{\}/"; So far so good. I will be now working on some additional features, like the auto-logon from vB. -Wayne |
Thanks, pelicanparts. I have the 'Pro' version ElfMage was selling. As far as I can tell, ElfMage has 'left the premises' so to speak. Maybe I'll be able to apply some of your information to the Pro version so your information is appreciated very much!
|
I'm working on it tonight - I've got it able to read the vB cookies, and it should work for autologon - it's just a matter of getting the details just right. I'll post my code here when I'm done.
-Wayne |
Hi Wayne!
Were you able to make any headway on what you're working on? I would sincerely love to have it automatically log my members in again. |
Yes, I was, and it is currently working. I will post it soon...
-Wayne --------------- Added [DATE]1212124788[/DATE] at [TIME]1212124788[/TIME] --------------- Add to end of LocalSettings.php. Change 123456789 to your vB license number. Change pelicanparts.com to your domain. Make sure that in cookie settings in vBulletin's admin control panel, you set the cookie domain to be your domain, not blank. In my case I set it to be pelicanparts.com Code:
# vBulletin integration script Here's the code, still rough and with test messages printing. Replace VBULLETINDATABASE with the name of your vb database Replace MYSQLLOGIN with your mysql logon name Replace MYSQLPASSWORD with your mysql password name That does it, this does work on my site right now, I think the only thing I'm missing is sending people to vb for account creation... -Wayne Code:
<?php |
Thank you, Wayne!
I get the following error: Notice: Undefined index: bbsessionhash in /(path)/wiki/AuthPlugin_vBulletin.php on line 290 Also, would it be possible to make variables for the database name, sql username, and password, instead of manually putting them in each connection string? I'm not asking you to do it, I'm curious if it's possible - if it is, then I can work on that :) |
Turn off error reporting by deleting or commenting out lines 2 and 3. That's just a warning message, nothing serious there.
-Wayne |
Thanks, I'll try that :)
|
Wayne,
Thanks for the additional work on this for 3.7. I have had a forum for a long time and just set up a wiki (MW 1.12). In order to get this integration working do I have to follow the instructions from the first post, then make the changes you have suggested, or just make the changes that you have put forth? Thanks in advance. |
Anyone have any thoughts on this?
Elenna, have you gotten yours to work? |
I bought vBWiki Pro, disliked it and got a refund. I am now wondering if this may be better for me. Does anyone have a demo of this?
|
Quote:
What didn't you like about the Pro version? Is there a significant advantage in upgrading to Mediawiki 1.12? |
I'm just wondering if this tutorial works better than vbwiki pro. I didn't like that there was no support and it doesn't work 100% with vB 3.7.2.
|
Quote:
|
I also have same question is this work with 3.7.2
|
Quote:
I'm wondering, is it possible to disable areas in mediawiki that could confuse members ( e.g. 'discussion' ) ? |
Quote:
Well, concerning the "Excessive Database Pings" I can't make the modification work. I've removed : PHP Code:
and put this (not in the class) at the beginning of those 2 files : User.php and SpecialUserLogin.php and... my bridge doesn't work anymore. Any ideas on how to debug this ? I'm using MW12 and vB 3.7.2 Thanks, Charles. |
All times are GMT. The time now is 03:40 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|