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
  #312  
Old 05-11-2009, 01:43 AM
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Location: Greenville, SC
Posts: 572
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

HTML Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 42

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_template.php on line 50

Warning: Invalid argument supplied for foreach() in [path]/includes/init.php(298) : eval()'d code on line 25

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/includes/vba_cmps_include_top.php on line 621

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/vba_cmps_include_top.php(652) : eval()'d code on line 3

Warning: require_once(./geek/gal/includes/gal_class_core.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 94

Fatal error: require_once() [function.require]: Failed opening required './geek/gal/includes/gal_class_core.php' (include_path='/home/xxxxx/public_html/wiki:/home/xxxxx/public_html/wiki/includes:/home/xxxxx/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/forum/global.php(400) : eval()'d code on line 94
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.
Reply With Quote
  #313  
Old 06-04-2009, 02:36 AM
bitwise2000 bitwise2000 is offline
 
Join Date: Apr 2008
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #314  
Old 08-24-2009, 06:03 PM
rexford.kim rexford.kim is offline
 
Join Date: Oct 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #315  
Old 09-16-2009, 08:31 PM
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #316  
Old 10-23-2009, 12:36 AM
Daryn Daryn is offline
 
Join Date: Nov 2008
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #317  
Old 11-02-2009, 05:42 PM
bradbeattie bradbeattie is offline
 
Join Date: Feb 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.
Reply With Quote
  #318  
Old 11-02-2009, 06:29 PM
bradbeattie bradbeattie is offline
 
Join Date: Feb 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bradbeattie View Post
I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.
Be careful not to have anything within your vBulletin skin that calls back to MediaWiki by requiring LocalSettings.php. Bad things happen.
Reply With Quote
  #319  
Old 11-10-2009, 08:51 PM
azn_romeo_4u azn_romeo_4u is offline
 
Join Date: Feb 2006
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it me or mw usergroups dont save when you try to edit a user rights in the media wiki?
Reply With Quote
  #320  
Old 08-10-2010, 11:29 AM
gopalfreak gopalfreak is offline
 
Join Date: Apr 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sry I would like to get this kind of User Login, too...

But:
I have now vBulletin 4.0.5 and an nearly up to date Wiki... Would it run under vb4?

TIA
Reply With Quote
  #321  
Old 09-18-2010, 06:59 AM
Dexter_kcd Dexter_kcd is offline
 
Join Date: May 2005
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Same question as above basically, I upgraded to version 4 (4.0.7 specifically) and now cannot use my wiki at all, pages just come up blank. What modifications would one have to make to get this working with vBulletin 4?

Edit: should point out that I had this working under 3.7 nicely for quite some time, so it has become disconnected with the upgrade.

Thanks,

Dexter...
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 08:19 PM.


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.05540 seconds
  • Memory Usage 2,322KB
  • 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
  • (1)bbcode_html
  • (1)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
  • (3)pagenav_pagelink
  • (1)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