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

vB Version: 3.8.x Rating: (15 votes - 4.93 average) Installs: 114
Released: 07 May 2009 Last Update: Never Downloads: 944
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.8.x. For vB 3.7.x, please use the MediaWiki/vBulletin Single Sign-On 3.7 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.
Similar Mod
Mod Developer Type Replies Last Post
Integration with vBulletin MediaWiki/vBulletin Single Sign-On NoeJeko vBulletin 3.7 Add-ons 322 04 Feb 2013 14:16

  #226  
Old 20 Aug 2010, 11:52
Dunhamzzz Dunhamzzz is offline
 
Join Date: Jul 2008
Real name: Matthew
Ok I have got this mod working successfully for vBulletin 3.8.6 and MediaWiki 1.17 with PHP 5.3. In fact, the vB version shouldn't really matter at all.

Ok first of all wrap the CMD constant in an if statement, as outline in post #215.

Second of all open up the AuthPlugin_vBSSO.php file in the includes directory of Mediawiki and search for the line:

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

Simply delete the "&" from this line and the plugin will work fine with PHP 5.3 and above
Reply With Quote
  #227  
Old 01 Sep 2010, 14:43
c0mm c0mm is offline
 
Join Date: May 2010
I want to disallow registered user logins or rather page editing. I guess I just change the permissions for regular users in mediawiki.
Reply With Quote
  #228  
Old 19 Oct 2010, 12:55
grey_goose grey_goose is offline
 
Join Date: Jun 2009
when i use this mod, my users can't change mediawiki skins; if i disable it, they can. is this by design? am i missing something?
Reply With Quote
  #229  
Old 08 Nov 2010, 20:49
sub_ubi sub_ubi is offline
 
Join Date: Dec 2004
Users can not login through the Wiki side. Any ideas what I'm doing wrong?
Reply With Quote
  #230  
Old 04 Jan 2011, 05:00
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Originally Posted by X-or View Post
anyone could tell me how to save user preference in wiki please?
What do you mean by User Preferences?
__________________
Reply With Quote
  #231  
Old 04 Jan 2011, 08:00
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Real name: Mark Daniel Martinez
Ah, I see. I don't have any trouble saving mine. Is everything else saving as expected, like entires and articles?
__________________
Reply With Quote
  #232  
Old 15 Jan 2011, 13:00
Big Kahuna's Avatar
Big Kahuna Big Kahuna is offline
 
Join Date: Feb 2002
I have been using this add on with VB3.8 for some time, and my concern with losing access to my Wiki has kept me from upgrading to VB4. It appears that this addon is no longer supported and usable for VB4
__________________
Reply With Quote
  #233  
Old 20 Jan 2011, 10:24
Mark Hewitt Mark Hewitt is offline
 
Join Date: Nov 2001
Anyone got this working with vBulletin 4.x?

I have vBulletin 4.1.1 and MediaWiki 1.16.0
Reply With Quote
  #234  
Old 24 Jan 2011, 11:40
augrunt augrunt is offline
 
Join Date: Mar 2006
Works fine on vB 4.1.1 and MediaWiki 1.16.0 -- EXCEPT I keep seeing a lot of "Unknown Location" but it has the path okay.
Reply With Quote
  #235  
Old 24 Jan 2011, 11:52
augrunt augrunt is offline
 
Join Date: Mar 2006
Scratch that, the path is not okay.

e.g.
forums.site.com
wiki.site.com

If user is browsing wiki.site.com/index.php?title=Special:WhatLinksHere
They see

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

and it links to the relative URL... so the link goes to forums.site.com/index.php?title=...

Not good at all... anyone got a fix for this? the hooks aren't working because MediaWiki isn't sending back the full path.
Reply With Quote
  #236  
Old 24 Jan 2011, 21:24
dutchbb dutchbb is offline
 
Join Date: Dec 2003
I just upgraded to the latest PHP, I get this on the Wiki:

Detected bug in an extension! Hook vBSSOAutoAuth failed to return a value; should return true to continue hook processing or false to abort.
Backtrace:

#0 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(748): wfRunHooks('UserLoadFromSes...', Array)
#1 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(221): User->loadFromSession()
#2 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(1637): User->load()
#3 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(1895): User->getOption('skin')
#4 [internal function]: User->getSkin()
#5 /home/tijl/domains/mydomain.com/public_html/wiki/includes/StubObject.php(58): call_user_func_array(Array, Array)
#6 /home/tijl/domains/mydomain.com/public_html/wiki/includes/StubObject.php(184): StubObject->_call('getSkin', Array)
#7 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Article.php(682): StubUser->__call('getSkin', Array)
#8 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Article.php(682): StubUser->getSkin()
#9 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Wiki.php(437): Article->view()
#10 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#11 /home/tijl/domains/mydomain.com/public_html/wiki/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#12 {main}
Anyone willing to help out?

Edit: solution found http://www.vbulletin.org/forum/showp...6&postcount=73

Last edited by dutchbb; 24 Jan 2011 at 21:33.
Reply With Quote
  #237  
Old 02 Feb 2011, 01:08
seovb_m4carbine seovb_m4carbine is offline
 
Join Date: Jun 2010
For everyone running into 404 not found errors on a mediawiki login.
I'm not sure if my scripts were configured correctly or not to begin with (took over a project), so this problem may only exist for me...but anyhow.

I was able to fix this by modifying the /includes/templates/userlogin.php file. This file controls the action attribute of the login form, and it currently points to vB's login.php file, which takes an optional url GET variable, telling the script where to redirect the user after login.

You just need to modify the userlogin.php template file to create the correct value for the return url.

I did this by changing:


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

To:

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

And:

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

To:

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

Reply With Quote
  #238  
Old 16 Feb 2011, 01:18
Gryphon's Avatar
Gryphon Gryphon is offline
 
Join Date: Oct 2001
Real name: Ryan Snook
Originally Posted by X-or View Post
any idea to save user preferences please?
Digital Jedi are you using mw 1.16
Trying to figure this out myself, http://wiki.planetside-universe.com/ps/Special:Version

Disabling the extension, preferences save just fine.

Edit: I have worked around the issue. I am unsure what consequences it may have, but so far everything appears to be working as intended.

I changed

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

to

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


Last edited by Gryphon; 22 Jun 2012 at 23:39.
Reply With Quote
  #239  
Old 11 Jun 2011, 06:31
jerseyda6 jerseyda6 is offline
 
Join Date: Apr 2007
has this ever been solved?

Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text.
is this the result of not turning off magic quotes?

Last edited by jerseyda6; 11 Jun 2011 at 07:25.
Reply With Quote
  #240  
Old 11 Jun 2011, 15:21
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Originally Posted by Gryphon View Post
Edit: I have worked around the issue. I am unsure what consequences it may have, but so far everything appears to be working as intended.
You are awesome, thank you so much!
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 20:50.

Layout Options | Width: Wide Color: