Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
MediaWiki/vBulletin Single Sign-On Details »
MediaWiki/vBulletin Single Sign-On
Mod Version: 2.2.0, by NoeJeko (Member) NoeJeko is offline
Developer Last Online: Apr 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (13 votes - 4.92 average) Installs: 110
Released: 18 Sep 2008 Last Update: 02 May 2009 Downloads: 824
Not Supported Uses Plugins Additional Files  

Overview:
This hack provides single sign-on capability for MediaWiki using your vBulletin users. You must ensure your cookie path in Admin CP is set to '/' for this to work. Also, I have not tested this if your wiki and your forums are on different subdomains - but as long as your have your cookie domain set properly it *should* work. This is not a user bridge - it is a complete single sign-on using your vBulletin user repository.

The install process has been extremely simplified in version 2.x of this product. You only have to edit LocalSettings.php, import a product, and change a setting in your Admin Control Panel. It's been completely packaged as a vBulletin product - unlike the previous hacked up version, heh. I didn't originally plan to release this so I designed it so it worked - not so it could be redistributed. I searched high and low for a functional MediaWiki bridge - almost bought NuHIT's product, and then realized it had been abandoned for over a year.

This hack no longer requires an edit to class_core.php.

I'll do my best to support it, but I can make no promises.

This thread is for discussion of this mod on vB 3.7.x. For vB 3.8.x, please use the MediaWiki/vBulletin Single Sign-On 3.8 thread

Demo of plugin in action: MyMMOGames - Multiplayer Gaming and Media Community

Also, if you use memcached - ensure you do not cache sessions. If you do, restart it at least once a week. If you don't, you'll end up with invalid session errors out of MediaWiki.

Requirements:
MediaWiki Version: 1.11.0-1.14.0
vBulletin Version: 3.6.9-3.8.2

Features:
- Provides single sign on capability between vBulletin and Mediawiki. vBulletin user repository is used
- Configurable sysop/bureaucrat groups
- Configurable disallowed user groups
- Configurable "Who's Online" display
- Counts users viewing wiki in vBulletin's "Who's Online"

Installation/Upgrade:
Please read the included "readme.txt" file in the "docs (do not upload)" folder.

Options:
Admin Control Panel->vBulletin Options->MMOG Wiki Options

Change Log:
1.0.0.0 - Sep 18, 2008
- Initial Release

1.0.3.0 - Sep 29, 2008
- Bugfix: Incorrect redirects for login/logout

2.0.0.0 - Sep 30, 2008
- Feature: Streamlined installation procedure
- Feature: Wiki path set in ACP
- Bugfix: Forum paths no longer hardcoded

2.1.0 - Oct 4, 2008
- Feature: ACP option to use MediaWiki Short URLs
- Feature: ACP option to set sysop groups
- Feature: ACP option to set bureaucrat groups
- Feature: ACP option to disallow login to certain groups
- Feature: ACP option to change WOL display text

2.2.0 - May 1, 2005
- Bugfix: Users are not logged out when logging out of the forum
- Bugfix: No longer requires modification to class_core.php
- Feature: Mediawiki 1.13.0+ supported (verified on 1.14.0 also)

If you like it, please click "mark as installed" The more people that use this, the more time I will make to try and support/update it.

Been pulling your hair out looking for this as long as I have? Nominate it for Mod of the Month =]

AuthPlugin was inspired by and modified from this existing MediaWiki Extension:

http://www.mediawiki.org/wiki/Extension:QISSingleSignOn

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #211  
Old 26 Dec 2008, 22:15
kapoor22's Avatar
kapoor22 kapoor22 is offline
 
Join Date: Jan 2008
Originally Posted by NoeJeko View Post
Hey guys - sorry for not replying sooner - I've been in Germany and for some reason I was not receiving notifications from this thread. I'll do my best to research these issues and provide a fix.
Thanks NoeJeko, everything is now working fine with vBulletin v3.6.8. With the help of your plug-in we were able to promote Wiki into production environment today. Thanks for the excellent work. I have nominated this plug-in for MOTM.

Also, BuddyPress released their latest version on 15th December. Apparently, that's the next big thing for social-networking software. Any chance you'd be interested to develop similar single sign on plug-in for vBulletin-BuddyPress?

Thanks again!


.
Reply With Quote
  #212  
Old 28 Dec 2008, 04:08
nwingate nwingate is offline
 
Join Date: Jul 2003
Oops, wrong thread. Sorry.
__________________
Nathan
Contractor Forums | DIY Forum | Woodworking Talk Forum
Reply With Quote
  #213  
Old 29 Dec 2008, 20:01
CompiledMonkey CompiledMonkey is offline
 
Join Date: Jan 2003
Real name: Chris Stewart
Has anyone gotten this to wrap inside of vBadvanced?
Reply With Quote
  #214  
Old 30 Dec 2008, 10:51
tylneyt tylneyt is offline
 
Join Date: Apr 2006
Failed to install / work

vBulletin 3.7.3
MediaWiki 1.13.3

array errors in the vba_cmps_include_template.php

seems to be a major drama with the line
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
as when this is commented out the wiki shows up just can't log in... (but at least ya can see the wiki!)

but yeah I'm no coder so I dunno why re following all the docs (and making sure the edits were correct etc) it's not working
Reply With Quote
  #215  
Old 30 Dec 2008, 17:16
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
That error is a vBAdvanced error. Are you using vBa for anything to do with the Wiki?
__________________
Reply With Quote
  #216  
Old 30 Dec 2008, 22:32
tylneyt tylneyt is offline
 
Join Date: Apr 2006
hmm had it as an iframe in an ajax tab that was setup as a vba page.
I can remove that and try again today some time.

Q: Even though I tried hitting the /wiki url direct was still throwing an error would it do that regardless of trying to view it via a vba setup or not?
(What I mean is that if I view via vba through the forums I'd expect an error, but hitting the wiki url directly should bipass any vba and show the wiki directly how ever that is still throwing an error)
Reply With Quote
  #217  
Old 30 Dec 2008, 23:17
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
I would think you shouldn't be getting that error if your not looking at it through vBa. Sounds like vBa is conflicting another way. Your wiki is not in your forum root, right? It's outside? I have vBa, but I chose to put the Wiki in the forum root and I haven't had any conflicts like that. I think your problem might be the directory.
__________________
Reply With Quote
  #218  
Old 31 Dec 2008, 09:37
tylneyt tylneyt is offline
 
Join Date: Apr 2006
Unhappy hmmmmmmm

vBulletin 3.7.3
MediaWiki 1.13.3
- I upgraded vba to 3.1.0
- Then moved directory into /forums/ (so it's now accessible via /forums/wiki ) and edited the LocalSettings.php to reflect this change.

I'm still getting the following error

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

same error for lines 42, 50 , 621 (and Argument #2 on 621)
and

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the .scorn is a hidden folder I assume as it's never been needed anywhere re linking back to the hosting. the PRIVATEDIRS I've typed for security reasons here.

I have also tried the following suggestions re the version of mediawiki
Originally Posted by obsidian View Post

- Install media Wiki
- Edit the Localsettings file with

define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;

- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory

Originally Posted by Jaxel View Post

In wiki/includes/User.php find:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );

Following these steps but changing
$wgGroupPermissions['*']['createaccount'] = true;
to
$wgGroupPermissions['*']['createaccount'] = false;
in wiki/includes/DefaultSettings.php (I don't know why, but on LocalSettings doesn't works for me)

I get it finally works correctly
MediaWiki 1.13.3
VB 3.7.4PL1
If I disable the product for vba all works well and the logins are shared fine, but turn it back on and it won't even display the wiki.
Reply With Quote
  #219  
Old 31 Dec 2008, 13:13
pete_brady pete_brady is offline
 
Join Date: Mar 2002
is there a (simple) migration path from nuhit's vbWiki Pro to this?

currently running vB 3.8RC2 with mediawiki 1.3
__________________
thumped.com
Reply With Quote
  #220  
Old 04 Jan 2009, 06:28
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
One more thing to throw onto your plate....

I was speaking with the server administrator at my webhost, and he mentioned that this mod seems to be generating a PHP error every time a user access a page on the wiki:

Constant CWD already defined in /home/httpd/vhosts/**sitename**.com/httpdocs/forum/global.php on line 16

PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in home/httpd/vhosts/**sitename**.com/httpdocs/forum/wiki/LocalSettings.php on line 28

Apparently the server PHP log is filled with thousands of those. He believes it has something to do with how the VB_SYSTEM_PATH constant is defined.

Dexter...
Reply With Quote
  #221  
Old 08 Jan 2009, 15:59
GriZzm0 GriZzm0 is offline
 
Join Date: Apr 2006
Has anyone tried it with vB 3.8?

Edit: Looks like it's working the same under 3.8 (the same as in minor errors ).

Last edited by GriZzm0; 08 Jan 2009 at 18:36.
Reply With Quote
  #222  
Old 08 Jan 2009, 18:44
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Real name: Aaron Varshney
It works perfectly with vB3.8:
Originally Posted by Varsh View Post
Well I tried installing this and looked throughout the thread. I'm bemused on how you guys have managed to get it to work. I've installed it exactly as the instructions asked and yet, despite changing the forum path in localsettings.php, it seems that it's trying to find the file from the wiki path. This is what's happening.
  1. Files uploaded
  2. localsettings.php set to:
    define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
    require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
  3. Wiki's user.php set to '+#+'
  4. plugin installed and URL set to above link
So what exactly have I done wrong? I must've missed something.

vBulletin 3.8 RC1 and the latest MediaWiki 1.13.2.

edit: I changed require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" ); and it worked fine, hope this doesn't mess anything up though.
Reply With Quote
  #223  
Old 09 Jan 2009, 17:32
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Real name: Paul Stout
All,

I'll be updating my site to MW 1.13 and vB 3.8 near the end of January. At this time I'll have this plugin updated to work with vB 3.6.9-3.8.0 and MW 1.12-1.13. Thanks for all your patience and thanks to the users that have posted workarounds. I'll be sure to credit where it's due if I use your suggestions.

Also, to the vBa users - this is not designed to be wrapped within vB Advanced in any form. If you get it to work that's great, but I cannot support vB Advanced issues because it's not designed to work that way. Thanks for understanding.
Reply With Quote
  #224  
Old 09 Jan 2009, 23:42
tylneyt tylneyt is offline
 
Join Date: Apr 2006
Hey Noe
That's kewl re VBA but I'm not trying to wrap it per say, I just want to share the logins, the wiki it self I can store / display where ever via a link to a fully fresh page nps.
The problem I was having is that due to VBA being installed as a product shut the hack down completely regardless of if it was being used as a vba page etc

So long as the hack `ignores' vba and runs so we can put the wiki up `outside' the vb forums (ie as a full page of content not embedded in the forums) that'd be great.

As it stands just having vba installed stops the hack from working period.
Reply With Quote
  #225  
Old 10 Jan 2009, 00:01
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Real name: Aaron Varshney
That's not true at all, my site has always been using vBA. Yes I have the wiki set to a different URL to the website, but having vBA installed does not stop this hack from working, if it's working for me but doing what I showed in my previous post, then it'll work for anyone. It's very easy to do and requires only 2 MediaWiki files to be edited, that's it.

You shouldn't need to embed the Wiki within vBA, although I can see the need, it would mean that queries would go through the roof.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 21:13.

Layout Options | Width: Wide Color: