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.
  #301  
Old 14 Apr 2009, 17:13
dutchbb dutchbb is offline
 
Join Date: Dec 2003
Originally Posted by bjhuang View Post
does anyone have logout problem? i have to logout twice every session. for the first time, the logout link like /forum/login.php?do=logout... and it logged me out from forum but not wiki. after this, the logout link became like /wiki/index.php/special:logout ... then i'm completly logged out from wiki.
Same here, would be nice if the coder could resolve this bug.
Reply With Quote
  #302  
Old 14 Apr 2009, 19:28
bjhuang bjhuang is offline
 
Join Date: Jul 2006
my solution. i'm not 100% sure what i'm doing. but it works.


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

Reply With Quote
  #303  
Old 15 Apr 2009, 12:56
dutchbb dutchbb is offline
 
Join Date: Dec 2003
Yeah it works, ty. My only problem left is, when logging in on the wiki, I get redirected to http://forum.mydomain.com/Mainpage instead of http://wiki.mydomain.com/Mainpage , resulting in a 404 error on the former url.
Reply With Quote
  #304  
Old 02 May 2009, 03:13
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Real name: Paul Stout
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)

I have unchecked the "support" box as, many of you have seen, I'm far too busy to provide timely support for this.
Reply With Quote
  #305  
Old 03 May 2009, 05:08
GoodOmens GoodOmens is offline
 
Join Date: Sep 2007
Originally Posted by NoeJeko View Post
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)

I have unchecked the "support" box as, many of you have seen, I'm far too busy to provide timely support for this.
Thanks for the update!
Reply With Quote
  #306  
Old 04 May 2009, 19:25
OneShot OneShot is offline
 
Join Date: Apr 2002
@Whoever can answer this : What steps do I have to undertake to get 2 Wikis to run in conjunction with just one vBulletin forum? BRotondi mentioned its possible, but sofar neither him nor anybody else as explained how to do this ...

Thanks in advance.
Reply With Quote
  #307  
Old 06 May 2009, 08:32
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Real name: Paul Stout
While I haven't tested it - it should be as simple as installing them in two different paths (i.e. /path1/wiki /path2/wiki or /wiki1 and /wiki2). The plugin should work (note *should* being used in the theoretical sense here).
Reply With Quote
  #308  
Old 07 May 2009, 18:54
proxx proxx is offline
 
Join Date: Oct 2003
I just installed the latest version of mediawiki (1.14) on my vb 3.8.1

Followed all installation steps.

I get the following error on:
http://www.domain.com/wiki/?do=/wiki


Fatal error: Call to undefined method Language::factory() in /path/to/htdocs/wiki/includes/StubObject.php on line 122

Could someone help fix this pls.
Reply With Quote
  #309  
Old 07 May 2009, 19:03
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Real name: Paul Stout
Hi Proxx,

The syntax "/wiki/?do=/wiki" is foreign to me. Could you provide a link to your wiki?

Also, I've created a 3.8 thread for this modification:

MediaWiki/vBulletin Single Sign-On 3.8 thread[/b]

Please use this thread for vB 3.7 discussion and the other for vB 3.8 discussion. Thanks!

Last edited by NoeJeko; 07 May 2009 at 19:11.
Reply With Quote
  #310  
Old 10 May 2009, 20:32
BRotondi BRotondi is offline
 
Join Date: Sep 2008
@OneShot:NoeJeko is right: Simply do the same on Wiki 2 that you did on Wiki 1. (I think I already told it...) so you will have 2 Wikis (or more...) with all the same users: The ones of ONE vBulletin.

@NoeJoko: 1000 Thanks for the Update!

Bruno
Reply With Quote
  #311  
Old 11 May 2009, 03:43
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
vBadvanced and geek

I've seen others having problems with vBadvanced and geek.
Has anyone got this mod to work with vBa and geek addons?


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

I also get a misconfiguration error with my .htaccess file containing php_flag magic_quotes_gpc off

Without the magic quotes off, I get the above errors.
__________________
...steven
www.318ti.org
forum.nccbmwcca.org

Last edited by steven s; 16 May 2009 at 21:26.
Reply With Quote
  #312  
Old 04 Jun 2009, 04:36
bitwise2000 bitwise2000 is offline
 
Join Date: Apr 2008
Almost working...

I'm using a subdomain (wiki.penturners.org) so I had to set the forum cookie DOMAIN to penturners.org along with setting the cookie PATH to "/"

The wiki logo redirect is is going to:
http://wiki.penturners.org/index.php/Main_Page

but it should be going to:
http://wiki.penturners.org/index.php?title=Main_Page

I'm new to MW... is that a config setting or htaccess or what?

Thanks
Reply With Quote
  #313  
Old 24 Aug 2009, 20:03
rexford.kim rexford.kim is offline
 
Join Date: Oct 2008
When I try to use the MediaWiki/vBulletin Single Sign-On and try to edit the MediaWiki pages I get this error from MediaWiki and I get Apache errors for PHP. If I do not use the Single Sign-On edits to the MediaWiki page go through fine.

I CANNOT edit the mediawiki or save preferences with the Single Sign-On installed. I did the /includes/User.php edit but I still cannot EDIT!

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

How do you get rid of the PHP errors concerning the CWD error!?!?!?

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.ph...&action=submit


Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Posted Solution on MediaWiki that does not work for me.
Assuming you get this error even when you do have a seemingly valid logon session:

Check if /var/lib/php5 is writable and not readable for user and world ( # chmod 733 /var/lib/php5 )
Check to see if your session.save_path value in php.ini is valid and writable to the webserver - PHP configuration.
Check to see if there is enough disk space.

After making changes restart Apache:

/etc/init.d/httpd restart


I get Apache errors for PHP:

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/html/wiki/LocalSettings.php on line 28, referer: http://www.website.com/wiki/index.ph...&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.ph...&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /var/www/html/wiki/LocalSettings.php on line 28, referer: http://www.website.com/wiki/index.ph...&action=submit

[Wed Aug 19 17:47:02 2009] [error] [client 10.15.15.41] PHP Notice: Constant CWD already defined in /var/www/html/forum/global.php on line 16, referer: http://www.website.com/wiki/index.ph...&action=submit

Last edited by rexford.kim; 25 Aug 2009 at 03:56.
Reply With Quote
  #314  
Old 16 Sep 2009, 22:31
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Real name: Paul Stout
rexford.kim,

You need to disable magic_quotes_gpc as stated in the readme file. If you don't you're going to need to make an edit to class_core.php of vBulletin but I don't suggest that route. Disabling GPC magic quotes will fix your session error.

As far as the warnings you can edit global.php to include an "if (!defined ('CWD'))" before the CWD definition but I see no way to do this with the extention. They're annoying but harmless.
Reply With Quote
  #315  
Old 23 Oct 2009, 02:36
Daryn Daryn is offline
 
Join Date: Nov 2008
Hey there.

I just got this installed into 3.8.4.

Two things I'm wondering:

First, I think I've configured it correctly, so I'm wondering if it is only supposed to autologin when someone goes to the Wiki via the forums, not directly?
And second, even after importing the product and setting the path and title, I still only see Unknown Location in the Who's Online list.

Could you clarify those points for me?

Thanks.
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 04:35.

Layout Options | Width: Wide Color: