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.
  #226  
Old 10 Jan 2009, 05:48
Shawn385 Shawn385 is offline
 
Join Date: Apr 2008
Hey everyone ! So I had a small question...I installed everything as mentioned. All paths are correct, all files edited etc. When I go to the wiki and click login, I input my VB user name and password, it takes me to the vBulletin "Login Successfull" page and then returns me to the WIKI main page...but on that page it tells me I am NOT logged in.

Any ideas ? Thanks so much !
Reply With Quote
  #227  
Old 10 Jan 2009, 09:38
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by Shawn385 View Post
Hey everyone ! So I had a small question...I installed everything as mentioned. All paths are correct, all files edited etc. When I go to the wiki and click login, I input my VB user name and password, it takes me to the vBulletin "Login Successfull" page and then returns me to the WIKI main page...but on that page it tells me I am NOT logged in.

Any ideas ? Thanks so much !
This seemed to have done the trick for me.

https://www.vbulletin.org/forum/showthread.php?p=1673281
__________________
Reply With Quote
  #228  
Old 10 Jan 2009, 23:10
oninuva's Avatar
oninuva oninuva is offline
 
Join Date: May 2006
Real name: Jonathan
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.
Fatal error: Call to a member function getID() on a non-object in /home/sitename/public_html/wiki/includes/AuthPlugin_vBSSO.php on line 315

One of my users are getting this error. It works for myself but it does not work for them, any help?
__________________

Last edited by oninuva; 11 Jan 2009 at 23:05.
Reply With Quote
  #229  
Old 11 Jan 2009, 01:41
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
Originally Posted by Varsh View Post
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.
Great! then maybe you can enlighten me on why I have the same errors as the other guy? I'm using vBa CMPS 3.10 & vB 3.8. I've done all that this thread has said to do and I get these errors...


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

Seems like I most likely will need another answer to having articles on my site. I need something that works for one adn something that members can put their own articles up on.
Reply With Quote
  #230  
Old 11 Jan 2009, 02:28
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
nvm Varsh fixed it myself. My problem was a two part problem. I'm using php5 on my server which made everything kinda act up a bit. I was also using the Donation hack called AWCoding- Donation System LITE which was causing a problem with this hack in some way.

I will put here how I fixed it.

Step One:

If you are using php5 you will need to do the following in your vba_cmps_include_template.php & vba_cmps_include_top.php files. You need to change some code to make vBAdvanced CMPS work with php5. I found a how-to here: http://www.vbulletin.org/forum/showthread.php?t=125302

Step Two:

Disabled the AWCoding- Donation System LITE hack in my admincp.

Now all works.
Reply With Quote
  #231  
Old 11 Jan 2009, 09:22
Shawn385 Shawn385 is offline
 
Join Date: Apr 2008
Strange, I made the neccessary adjustments as mentioned in that post eg :

//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';

The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.

Above is the snipppet from the AuthPlugin_vBSSO.php

EDIT :

So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...

Last edited by Shawn385; 11 Jan 2009 at 10:57.
Reply With Quote
  #232  
Old 11 Jan 2009, 23:05
oninuva's Avatar
oninuva oninuva is offline
 
Join Date: May 2006
Real name: Jonathan
So how do I fix this?

Fatal error: Call to a member function getID() on a non-object in /home/sitename/public_html/wiki/includes/AuthPlugin_vBSSO.php on line 315
__________________
Reply With Quote
  #233  
Old 11 Jan 2009, 23:51
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Real name: Aaron Varshney
Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.
Reply With Quote
  #234  
Old 12 Jan 2009, 00:57
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by Shawn385 View Post
Strange, I made the neccessary adjustments as mentioned in that post eg :

//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';

The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.

Above is the snipppet from the AuthPlugin_vBSSO.php

EDIT :

So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...
I'll post this again, but this is what fixed this in my case. Note that I did not "downgrade" as you did.

http://www.vbulletin.org/forum/showt...81#post1673281
__________________
Reply With Quote
  #235  
Old 12 Jan 2009, 08:52
tylneyt tylneyt is offline
 
Join Date: Apr 2006
metalguy639 you are my hero
Thank you
Reply With Quote
  #236  
Old 12 Jan 2009, 18:45
oninuva's Avatar
oninuva oninuva is offline
 
Join Date: May 2006
Real name: Jonathan
Originally Posted by Varsh View Post
Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.
Yes I did try doing those changes, still have error, I tried replacing a file with the file the posted on page 8 saying that it fixed it giving him a new AuthPlugin file.

After I replaced the file with the fix on post 8, he received this error;

Database error

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'Sourc[e]x' for key 2 (localhost)".
I would look at the databases but I dunno which one it is referring to. He only gets this error when he tries to login, so he can browse the wiki if he logs out.
__________________
Reply With Quote
  #237  
Old 12 Jan 2009, 19:53
petchat petchat is offline
 
Join Date: Oct 2008
Originally Posted by Digital Jedi View Post
Working great on 3.8 using this method!

Cheers DJ
Reply With Quote
  #238  
Old 13 Jan 2009, 01:40
metalguy639 metalguy639 is offline
 
Join Date: Jan 2009
Originally Posted by tylneyt View Post
metalguy639 you are my hero
Thank you
no prob man.
Reply With Quote
  #239  
Old 13 Jan 2009, 22:51
raisun raisun is offline
 
Join Date: Dec 2004
I've got this mostly working on VB 3.7.3 / MW 13.3 as long as I disable another pluggin that I use. When I turn the other plugin on (GARS), I cannot get to the wiki and get this error:


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

From what I can tell, it looks like its looking in the wiki's include path for this file. So, I tried adding $VB_SYSTEM_PATH to the path in LocalSettings.php, but that doesn't seem to fix it. Any thoughts?

Thanks a lot!!
Reply With Quote
  #240  
Old 14 Jan 2009, 02:26
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Real name: Aaron Varshney
Change require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/mouseinf/public_html/forums/includes/AuthPlugin_vBSSO.php" ); in your LocalSettings.php file.
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 14:50.

Layout Options | Width: Wide Color: