The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Integrate or bridge with MediaWiki
Do you want to use vBulletin's user database with your MediaWiki? You might like this. I have taken Kai Backman's MediaWiki authentication plugin idea, fixed coding errors, and expanded greatly on it. Working on: vBulletin 3.5.4 and MediaWiki 1.6.3 Features:
Possible Future Features: These are possible features for inclusion in the how-to in the future. They have not been investigated for their feasibility, but are here to let you know they have been requested and I am thinking about them. If you know how to add the features, please let us know.
How to:
Please let me know if this was helpful, or if you can expand on this code. |
#42
|
|||
|
|||
Quote:
|
#43
|
|||
|
|||
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. |
#44
|
|||
|
|||
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. |
#45
|
|||
|
|||
in AuthPlugin_vBulletin find
Code:
// Only registered and admins. Banned and unregistered don't belong here. if($usergroupid == "2" || $usergroupid == "5" || $usergroupid == "6" || $usergroupid == "7") |
#46
|
|||
|
|||
Actually I dont really care about the usergroupid, What am I looking for is membergroupid that is a value of x.
|
#47
|
|||
|
|||
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 $vb_usergroups[] = $vb_userinfo['usergroupid']; // add the primary usergroup to the array foreach ( $vb_usergroups as $vb_groupiter ) if (in_array( $vb_groupiter, $this->allowed_usergroups)) return TRUE; Notice that I haven't run this code, so it may not work, or it may have some small syntax errors ... :-) |
#48
|
|||
|
|||
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:
|
#49
|
|||
|
|||
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)) { |
#50
|
|||
|
|||
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? |
#51
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|