Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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.8.x Rating:
Released: 05-06-2009 Last Update: Never Installs: 115
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.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

File Type: zip mmog_wiki_v2.2.0.zip (9.1 KB, 1011 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Wired1

Comments
  #72  
Old 09-07-2009, 07:18 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there, I hope someone can help

I've installed this mod, but so far have been unable to get it working. I think the problem is that I've also got vB Nexus installed, which is making it fall over because it can't find some required files:

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

Warning: require_once(./vbnexus/facebook/facebook.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(1091) : eval()'d code on line 90

Fatal error: require_once() [function.require]: Failed opening required './vbnexus/facebook/facebook.php' (include_path='/home/unknown/public_html/beta/wiki:/home/unknown/public_html/beta/wiki/includes:/home/unknown/public_html/beta/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/unknown/public_html/beta/forum/global.php(1091) : eval()'d code on line 90
Does anyone have any ideas on how I might be able to get this to work? I did have a look to see if I can find where I would need to update the path to fix this, but no joy.

(Just in case you need this info, I've got the forum installed at /root/forum and the wiki at /root/wiki)
Reply With Quote
  #73  
Old 09-08-2009, 11:29 AM
kent_lkc kent_lkc is offline
 
Join Date: Feb 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice MOD.

any idea how to get mediawiki to display in forum theme ? instead of mediawiki own skins.
Reply With Quote
  #74  
Old 09-13-2009, 12:17 PM
jawatkin jawatkin is offline
 
Join Date: Apr 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by aciurczak View Post
Reloaded wiki from scratch, built it from an empty database, and confirmed everything was working fine before added this mod. Added this mod by adding the few lines in the localsettings.php, uploaded the include files, and I keep getting this same error. New host is on Centos 5.3, PHP 5.3.0, MySQL 5.1.137.

Hmm, I'm wondering if it's because the new site doesn't have an actual domain pointing to it yet, and is only being referred to by IP address. (http://xxx.xxx.xxx.xxx/wiki). Perhaps everything is set up OK and when I actually move the domain over things will start working on their own. I can always hope.
I can confirm your error as duplicated and I didn't move hosts... I upgraded to PHP 5.3.0, so that's where the issue is coming from. My backtrace was slightly different, but very close:
Quote:
Internal error

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/public_html/w/includes/User.php(810): wfRunHooks('UserLoadFromSes...', Array)
#1 /home/public_html/w/includes/User.php(260): User->loadFromSession()
#2 /home/public_html/w/includes/User.php(1989): User->load()
#3 /home/public_html/w/includes/User.php(2002): User->getGroups()
#4 /home/public_html/w/includes/User.php(1975): User->getEffectiveGroups()
#5 /home/public_html/w/includes/User.php(2125): User->getRights()
#6 [internal function]: User->isAllowed('read')
#7 /home/public_html/w/includes/StubObject.php(58): call_user_func_array(Array, Array)
#8 /home/public_html/w/includes/StubObject.php(184): StubObject->_call('isAllowed', Array)
#9 [internal function]: StubUser->__call('isAllowed', Array)
#10 /home/public_html/w/includes/Title.php(1523): StubUser->isAllowed('read')
#11 /home/public_html/w/includes/Wiki.php(151): Title->userCanRead()
#12 /home/public_html/w/includes/Wiki.php(55): MediaWiki->preliminaryChecks(Object(Title), Object(OutputPage), Object(WebRequest))
#13 /home/public_html/w/index.php(116): MediaWiki->initialize(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#14 {main}
NoeJeko: I know it's unsupported, but any help would be appreciated, as I was totally loving this!

Found this on a Mediawiki support site from someone who was complaining about a similar issue with other extensions:
Quote:
This happens when the callback expects an argument to be passed by reference but this argument isn't passed by reference when calling wfRunHooks(). These extensions are being fixed (ConfirmEdit should already be fixed), so try to download the latest for the extensions causing these errors and see if it's fixed. iAlex 08:13, 13 September 2009 (UTC)
If I comment out the AuthPlugin_vBSSO extension, the Wiki will load (but I have no access to edit)...

Fixed!!

Apparently, PHP 5.2.x used to auto-convert value passing to reference passing, but 5.3.x won't and it errors out. Very simple fix.

Line 264 of includes/AuthPlugin_vBSSO.php:
Replace
Quote:
function vBSSOAutoAuth(&$user) {
with
Quote:
function vBSSOAutoAuth($user) {
Reply With Quote
  #75  
Old 09-16-2009, 08:29 PM
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good call on that; I upgraded to PHP 5.3 and it broke so much crap that I had to downgrade back to 5.2 so I had no idea it was incompatible. I'll try to get a version up that accounts for this.

I have, however, confirmed that it works on MW 1.15.
Reply With Quote
  #76  
Old 09-19-2009, 11:07 PM
aciurczak aciurczak is offline
 
Join Date: Jun 2005
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That one character fix worked like a charm! Now up and running with vBulletin 3.8.4, mediawiki 1.15.1, and PHP 5.3. Thx folks!
Reply With Quote
  #77  
Old 09-20-2009, 02:47 AM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks promising. I'll give this a try soon.
Reply With Quote
  #78  
Old 09-23-2009, 12:40 PM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got my VPS yesterday, and installed wiki immediately. However, I keep running into trouble when attempting to install this mod. Particularly, I have isolated the trouble to the second line that is to be added to the PHP file. I can insert the first line and have things working, but as soon as the second line is implemented, the page turns blank (Like referenced in page 21, and reported solved later. I just have no idea how to achieve it at my forum, since the wiki and forum reside on the same server on the same domain. Forum in /forums, wiki in /w).

Could someone explain in coochie coo talk what exactly that line is supposed to do, and how I could go about troubleshooting for possible workarounds or solutions, please?

Thanks.

Peter
Reply With Quote
  #79  
Old 09-23-2009, 01:32 PM
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Peter,
could you be more specific and show us examples of the code you feel is causing the problem. My forum / wiki is working perfectly now.

Regards

Peter
Reply With Quote
  #80  
Old 09-23-2009, 03:39 PM
jawatkin jawatkin is offline
 
Join Date: Apr 2007
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NoeJeko View Post
Good call on that; I upgraded to PHP 5.3 and it broke so much crap that I had to downgrade back to 5.2 so I had no idea it was incompatible. I'll try to get a version up that accounts for this.

I have, however, confirmed that it works on MW 1.15.
I've reverted to 5.2.10 myself because it broke soooooo many other things I just couldn't handle it..

Quick question: if I go to Special:Statistics, it only says I have 1 Registered User but when I click the Users link, it shows a list of all the members who have been "auto-logged-in". Is there a way to auto-assign them so that they appear in the statistics page?
Reply With Quote
  #81  
Old 09-23-2009, 04:03 PM
AfterWorldForum AfterWorldForum is offline
 
Join Date: Dec 2008
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Peter Walker View Post
Hi Peter,
could you be more specific and show us examples of the code you feel is causing the problem. My forum / wiki is working perfectly now.

Regards

Peter
Hi Peter,

Sure. Sorry. I was at work before and did not have access to the files. The statement that ends up throwing me the blank page is:

Code:
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
That page is definitly in place, so I'm not sure how to debug where it stuffs up now.

Thanks in advance.

Update: Been trying different things, including removing the $IP setting. No go. I ensured it wasn't the
Code:
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
line (Just a quick check. I replace /var/www/html/forum' with my actual path, and leave it within single quotes, right?) by commenting that out, but whether it is enabled or commented, the site still works. As soon as I uncomment the link to the AuthPlugin file, I just see a white empty page.

The source of the page is like this:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>
e
MediaWiki 1.15.1
PHP 5.1.6 (apache2handler)
MySQL 5.0.77

vBulletin 3.8.4


Peter2
Reply With Quote
Reply

Thread Tools

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 05:40 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.15155 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
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_code
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete