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
  #12  
Old 05-10-2009, 07:36 PM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I know I'm sort of solving this problem as I go along but here is my "solution" to the problem in Post #9.

In AuthPlugin_vBSSO.php, I added a chdir commands before the call to global.php:

Quote:
define('THIS_SCRIPT', 'wiki');
chdir ('/home/puritanb/public_html');
require_once( CWD . '/global.php');
chdir ('/home/puritanb/public_html/includes');
require_once( CWD . '/includes/functions.php');
chdir ('/home/puritanb/public_html/w/includes');
It eliminates the error that it cannot find the functions_dfha.php file but I still cannot edit any pages or save preferences. I get this error when I attempt to edit pages:

Quote:
Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.
I've tried clearing the cache and cookies and multiple browsers but the problem persists. I hope you're able to understand what the problem might be because I'm hoping to get this nice mod working. I'm even willing to contribute to this mod to keep it supported.
Reply With Quote
  #13  
Old 05-10-2009, 09:01 PM
NoeJeko NoeJeko is offline
 
Join Date: Sep 2007
Location: Silicon Valley, CA
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Colonel,

Please try the steps I sent you in PM. Your board has quite a few addons and there's a good chance it's conflicting with one of them if this does not work. I've tested this addon against a clean MW and vB instance as well as with a few addons (vBSEO, vB Advanced, etc) but there's no way I can reasonably check against all existing mods. I'm willing to work with you directly as time permits.

@BRtondi, can you send me a PM message with any log errors you're encountering? I've had issues with MediaWiki on non iso-8859-1 character sets so this could be a flaw with mediawiki. Also, please send me the username you're attempting to log in (no password, please).

@Flowison, after stealing my site's design and me sending a legal request to your host to get it removed, you get no support from me. Good luck on your own.
Reply With Quote
  #14  
Old 05-14-2009, 02:29 AM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very interesting! I have the old NuWiki mod on my site and am in need of something new for my 1000+ articles. The one feature I must have to have before migrating to a new system is to have the auto-linking of the wiki entries to words in the forums.
Reply With Quote
  #15  
Old 05-15-2009, 09:49 PM
simunaqv simunaqv is offline
 
Join Date: May 2007
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi NeoJeko,
I am trying to get this mod to work on my site but it is not working properly. When I try to login to the wiki site, it immediately logs me out of the wiki and out of the forum as well.
Following is the information about my site:

forum url: http://www.urduweb.org/mehfil/
wiki url: htt://wiki.urduweb.org

I will readily provide any further information required by you.
Thanks,
Reply With Quote
  #16  
Old 05-16-2009, 09:38 AM
simunaqv simunaqv is offline
 
Join Date: May 2007
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, it seems to work now. I had overlooked the instruction for setting the cookie path to '/'. :erm:
Now I will begin testing this mod on my site. Thanks for this useful mod.
Reply With Quote
  #17  
Old 05-16-2009, 07:18 PM
XFSImperial's Avatar
XFSImperial XFSImperial is offline
 
Join Date: Jul 2004
Location: USA
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The bridge seems to be working as I see my forum username on the wiki, but the wiki header and footer is covered in errors. I know the vba is vbadvanced. I'm running vba 3.1.0, are these errors version related?


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

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 15

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

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at [path]/includes/class_core.php:3254) in /home/avelegio/public_html/wiki/wiki/includes/GlobalFunctions.php on line 2581

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3254) in /home/avelegio/public_html/wiki/wiki/includes/WebResponse.php on line 48

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3254) in /home/avelegio/public_html/wiki/wiki/includes/WebResponse.php on line 16
Edit: One of our network admins was able to fix the problem. Evidently had to do with difference in the way php4/php5 treat the arrays and the fact that the server for this wiki install is on Litespeed and not Apache.
Reply With Quote
  #18  
Old 05-18-2009, 06:17 PM
Mastergumble Mastergumble is offline
 
Join Date: Sep 2008
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got everything working, the only issue i get but not a big problem is if i log on vb and use the link to mysite/wiki everything wark without problems on mysite.com/wiki/Main_Page

But if i log from the wiki directly i get redirected to mysite.com/wiki/index.php?title/index.php/Main_Page

Still working just cant log frm any article without getting back to the main page...

Any idea if i can simple disable the login from the Wiki page making possible to log only by the vbullet ?

Tkx
Reply With Quote
  #19  
Old 05-20-2009, 02:57 PM
GoodOmens GoodOmens is offline
 
Join Date: Sep 2007
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of my users has a slash in his user name and is receiving a error when going to the wiki (fatal error)

Is there a simple fix or should I just ban user-names with slashes?
Reply With Quote
  #20  
Old 05-28-2009, 06:39 PM
Peter Walker Peter Walker is offline
 
Join Date: Oct 2005
Location: Germany
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
I have just installed this hack and think it is a great way of linking vBulletin with Mediawiki. By limiting access to Forum members, I can now forget about unwelcome spam and vandalism on my Wiki.

I tried to install it over two separate servers (Wiki on one web server and forum on another), but could not get that to work. I am moving the wiki domain to the same server as my forum instead.

There is one issue I hope can be solved. On my forum, I insist all members use their real names (e.g. "John Smith") as usernames. As it is a closed forum and non-members cannot see the usernames, this is no problem. However, as soon as my forum members start writing Wiki entries, their username, e.g. real name is displayed on the Wiki.

Could you implement a system where instead of the forum usernames, the Wiki optionally displays a pseudonym instead of the forum username. This could be an optional feature and use either a VB User Profile Field, to store the pseudonym, or alternatively the system automatically generates a pseudonym from the username (or both).

Some people do not want to have their real name displayed next to public Wiki entries and the way the system is setup now, there is no way of preventing this when using your mod.

Regards

Peter
Reply With Quote
  #21  
Old 05-28-2009, 06:55 PM
BRotondi BRotondi is offline
 
Join Date: Sep 2008
Location: Zurich
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Peter

As you can see, there are still little and bigger problems with this hack and the author has only little time.

My suggestion: Enable Multi-Registering in vB so your users can create a 2nd account and use this one for the wiki.

Bruno
Edit: btw. you can setup your Wiki also as "no anonymous reading"
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 10:51 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.07051 seconds
  • Memory Usage 2,341KB
  • 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_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
  • (3)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