Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MediaWiki/vBulletin Single Sign-On Details »»
MediaWiki/vBulletin Single Sign-On
Version: 2.2.0, by NoeJeko NoeJeko is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.x Rating:
Released: 09-17-2008 Last Update: 05-01-2009 Installs: 112
Uses Plugins
Additional Files  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #172  
Old 12-08-2008, 02:35 PM
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did a quick reboot of the server. It's still going slow though, wasn't like that the other day. Ah I bet it was after updating Apache... ugh! Cheers for the ups on that btw. xD

Anyway at least you know now that it's possible on 3.8 RC1 and 1.13.2.
Reply With Quote
  #173  
Old 12-08-2008, 09:24 PM
TomasDR TomasDR is offline
 
Join Date: Feb 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Varsh View Post
Just sign up at my site here and mess around with the Wiki. I haven't tested it myself yet but it's definitely running so far.
Glad you did it, I sent BRotonedi a PM since I run an adult board. Wanted BRotonedi to be sure they wanted to visit my board before sending the URL.

But I do want to mention Logging in through WIki works fine for me and logs me into vBulletin & Wiki.

Only the logout fails on the Wiki side, I stay logged into Wiki but do logout of vBulletin. This is the case logging out on either side.
Reply With Quote
  #174  
Old 12-09-2008, 02:16 AM
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested the login on the Wiki side too and it worked fine also. And yes, I have the same problem signing out, however when it takes you back to the Wiki, logout again and it'll work.

Oh and don't mess around with the Wiki anymore.
Reply With Quote
  #175  
Old 12-09-2008, 04:56 AM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@TomasDR Thanks for the info, have not seen your PM since it's only blinking a little big on the upper right
@Varsh: Wiki-Login now works. What have you changed? (I'm quite sure I tested it correct... perhaps it was a problem with these 80s-Site-loads )

What could be the Problem on my www.SinnImLeben.net/wiki ? There I cannot login through Wiki, but I've found no missconfiguration... Where should I have a deeper look?

Bruno
Reply With Quote
  #176  
Old 12-09-2008, 11:04 AM
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't changed anything, you're most likely right in thinking that it was because my site was running slowly at the time. At least now it loads in about 1-3s. Told you I was with a fast host.
Reply With Quote
  #177  
Old 12-11-2008, 02:14 PM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to log-out of my site & that worked but I can't log-out of wiki. I keep going to the wiki page & trying to log-out there too & it still won't let me...it redirects me back to the forum. I logged in on someone else's account & when I tried to visit the wiki it still shows me logged in versus the someone else.

http://www.dawnswebdesigns.com/forum/index.php
http://dawnswebdesigns.com/wiki/index.php/Main_Page

Thanks for any help
Reply With Quote
  #178  
Old 12-11-2008, 06:40 PM
trackpedia trackpedia is offline
 
Join Date: Sep 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to drop a line here and say with Mediawiki 1.13.2 and VB3.7.4 making this change gets me rolling along just swimmingly

//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';

logout from vb doesn't propigate but at the moment I dont see that being and issue and given how great the developer is working on this I am sure there will be a fix coming soon.

Thanks for the work that's gone into this baby.
Reply With Quote
  #179  
Old 12-11-2008, 06:45 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logout from Wiki
You need to add manually a link to the wiki-logout, since the hack currently reroutes to vBulletin-logout:

Look at Varsh's Wiki (Top right) or mine (Logout through Sidebar).
english 1: .../login.php?do=logout
english 2: .../Special:UserLogout
german: .../index.php?title=Spezial:Abmelden

If these links do not work on your wiki, you can find the correct Link by temporarly disable the Hack (// require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); ) and perhaps reset the original /wiki/includes/Userlogin.php

Bruno
Reply With Quote
  #180  
Old 12-12-2008, 01:37 AM
DawnsWebDesigns DawnsWebDesigns is offline
 
Join Date: Feb 2008
Location: Tulsa, OK
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BRotondi View Post
Logout from Wiki
You need to add manually a link to the wiki-logout, since the hack currently reroutes to vBulletin-logout:

Look at Varsh's Wiki (Top right) or mine (Logout through Sidebar).
english: .../login.php?do=logout
german: .../index.php?title=Spezial:Abmelden

If these links do not work on your wiki, you can find the correct Link by temporarly disable the Hack (// require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); ) and perhaps reset the original /wiki/includes/Userlogin.php

Bruno
Actually I'm just going to wait until this one's a lil more done. There's edits all over the place & it's too much for me. I'm no programmer I admit it.
Reply With Quote
  #181  
Old 12-12-2008, 07:34 PM
Varsh's Avatar
Varsh Varsh is offline
 
Join Date: Aug 2006
Location: UK
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are barely any edits at all, just look at my previous post:
Quote:
Originally Posted by Varsh View Post
  1. Files uploaded
  2. localsettings.php set to:
    define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
    require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" );
  3. Wiki's user.php set to '+#+'
  4. plugin installed and URL set to above link
Using: vBulletin 3.8 RC1 and the latest MediaWiki 1.13.2.
Just remember to change the system path to yours from mine. If I knew about the change in the require_once setting, then it would've taken me only a minute to install the entire thing. Other than the signing off bug (which isn't much of one), then it works perfectly.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:58 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06030 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete