vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=213102)

NoeJeko 05-06-2009 10:00 PM

MediaWiki/vBulletin Single Sign-On
 
1 Attachment(s)
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

proxx 05-07-2009 05:20 PM

ok reposting here:

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.

proxx 05-07-2009 05:22 PM

the problem doesn't seem to be caused by the .htaccess rewrite rules. I just moved .htaccess and the above fatal error still appears.

NoeJeko 05-07-2009 05:29 PM

Hi Proxx,

I'm not familiar with the environment you're using - you may get better support for someone else if you post the information you sent me in PM - minus the urls and .htaccess rules.

XFSImperial 05-08-2009 10:52 PM

I was just looking for something like this yesterday. I too visited NuHIT's website and saw it almost abandoned by the admins/developers.

One feature that NuHIT Pro version did offer was to use vB's usergroup permissions when viewing/managing the wiki. Is this something you might look to add in the future?

shaqoneal 05-09-2009 01:05 AM

this sounds really interesting. You said this is not a bridge? In otherwords your saying that Wiki and vBulletin are using different mySQL databases?!?

PS: very nice site NoeJeko :)

SemperFideles 05-09-2009 06:28 PM

Installed but when I try to browse to wiki I receive the following error:

Quote:

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

Fatal error: require_once() [function.require]: Failed opening required './includes/functions_dfha.php' (include_path='/home/puritanb/public_html/wiki:/home/puritanb/public_html/wiki/includes:/home/puritanb/public_html/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/puritanb/public_html/global.php(400) : eval()'d code on line 369

Flowsion 05-09-2009 10:17 PM

I get this in my URL when logging in, I'm sure it's a mistake on my part, though.

Code:

http://www.flowsion.net/wiki/%3C?=%20$vbulletin-%3Eoptions[%27bburl%27]%20%20?%3E/login.php%3C?=%20$redirlink%20?%3E

SemperFideles 05-10-2009 09:16 AM

Quote:

Originally Posted by SemperFideles (Post 1807599)
Installed but when I try to browse to wiki I receive the following error:

I don't know why, but when global.php is called on line 254 of AuthPlugin_vBSSO.php, it is looking for function_dfha.php

It keeps returning this error:

Quote:

Warning: require_once(./includes/functions_dfha.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 369
The only way to get it to stop giving that error is to put a copy of functions_dfha.php into my wiki /includes directory. I'm then able to log into the wiki properly.

BUT

When I try to edit an article or change my preferences nothing seems to be working right.

Is there any way to install the old version on 3.8? I tried downloading the 3.7 version but it has the same instructions and files and I was hoping to try the old version because I don't think this one works yet.

BRotondi 05-10-2009 07:13 PM

Does login through Wikis Login-Page work on someones german wiki/vbulletin?
I can enter Login/PW, but will be redirected to the forum without beeing logged in... (workaround programmed in php so not an urgent bug... but interesting...)

Bruno


All times are GMT. The time now is 03:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01428 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete