ggFTW

MMORPG Gamer Community


Go Back   ggFTW Forum > ggFTW > Questions, Feedback & Suggestions > Wiki Discussion

Grand Fantasia
Looking for a new MMO?

Try 

Grand Fantasia

Rating:  

7.4

 
LinkBack (1) Thread Tools Display Modes
09-30-2008   1 links from elsewhere to this Post. Click to view. #1 (permalink)
Crescent Fresh
Special
NoeJeko's Avatar
Games
Ragnarok OnlineTrickster OnlineLuniaPangya
Awards Facebook FanTwitter Fan
 
Join Date: Jun 2006
Location: San Jose, CA
Posts: 4,230
Blog Entries: 29
iTrader: (0)
NoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond repute
Send a message via AIM to NoeJeko Send a message via MSN to NoeJeko Send a message via Skype™ to NoeJeko
IGN: NoeJeko
Class: Warrior lt_warrior
Level: 23
Guild: Kirameki
Default MediaWiki/vBulletin SSO Plugin

MediaWiki/vBulletin Single Sign-On

Current Version: 2.1.0

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 requires an edit to class_core.php. Hopefully, I can get around this in future versions of vBulletin but it must exist for now. If you fail to make this change, you will not be able to edit your wiki. Also, if you upgrade vBulletin, you must remember to re-apply the change to class_core!

I'll do my best to support it, but I can make no promises.

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.12.0+
vBulletin Version: 3.7.0+ (has also been tested on 3.6.9)

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

AuthPlugin was inspired by and modified from this existing MediaWiki Extension:

http://www.mediawiki.org/wiki/Extension:QISSingleSignOn

Forum admins, please report bugs here. You can also find a download for the product here; I cannot host it on MMOG due to vBulletin license restrictions:

MediaWiki/vBulletin Single Sign-On - vBulletin.org Forum

MMOG Members, please use this thread for bugs regarding the wiki SSO as you cannot see some things on vBulletin.org without a valid vB license.
__________________
View my portfolio: Paul Stout Photography

[Forum Rules][NoeJeko's Blog][Guide Guide][TO Training Guide]
k0n: Explaining anything to ignorant people is the same as trying to teach a turtle to sing. At some point, it's just hopeless.

Last edited by NoeJeko; 10-04-2008 at 05:01 PM.
 
Get rid of this ad by registering for our community.
10-04-2008   #2 (permalink)
Crescent Fresh
Special
NoeJeko's Avatar
Games
Ragnarok OnlineTrickster OnlineLuniaPangya
Awards Facebook FanTwitter Fan
 
Join Date: Jun 2006
Location: San Jose, CA
Posts: 4,230
Blog Entries: 29
iTrader: (0)
NoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond repute
Send a message via AIM to NoeJeko Send a message via MSN to NoeJeko Send a message via Skype™ to NoeJeko
IGN: NoeJeko
Class: Warrior lt_warrior
Level: 23
Guild: Kirameki
Default

Version 2.1.0 of this product has been released.
__________________
View my portfolio: Paul Stout Photography

[Forum Rules][NoeJeko's Blog][Guide Guide][TO Training Guide]
k0n: Explaining anything to ignorant people is the same as trying to teach a turtle to sing. At some point, it's just hopeless.
 
12-16-2008   #3 (permalink)
MMOG Lurker
 
Join Date: Dec 2008
Posts: 4
iTrader: (0)
Kabuto is on a distinguished road
Default

Thank you very much!! Just what I needed!!
That's truly a great addon.
Currently it supports bridge for sysop & bureaucrat.
One thing you could add is support for custom wiki usergroups.

I have a lot of custom usergroups in my wiki like halfops or vip. How could I add a bridge for them please?
 
12-16-2008   #4 (permalink)
MMOG Lurker
 
Join Date: Dec 2008
Posts: 4
iTrader: (0)
Kabuto is on a distinguished road
Default

I think I figured how to add more custom groups

In your wiki create a group Custom (respect the case)

edit "product-mmog_wiki.xml"

before

Code:
			<phrase name="settinggroup_mmog_wiki" date="1222796687" username="MMOG" version="2.0.0.0"><![CDATA[MMOG Wiki Options]]></phrase>
add

Code:
			<phrase name="options_options_mmog_wiki_custom_ug_text" date="1223157636" username="MMOG" version="2.0.1.0"><![CDATA[Enter the usergroups you wish to map to Wiki Customs, separated by commas (<em>i.e. 6,7</em>).]]></phrase>
			<phrase name="options_options_mmog_wiki_custom_ug_title" date="1223157636" username="MMOG" version="2.0.1.0"><![CDATA[Custom Usergroups]]></phrase>
before

Code:
			<phrase name="settinggroup_mmog_wiki" date="1222796687" username="MMOG" version="2.0.0.0"><![CDATA[MMOG Wiki Options]]></phrase>
add

Code:
			<phrase name="setting_mmog_wiki_custom_ug_desc" date="1223157636" username="MMOG" version="2.0.1.0"><![CDATA[Enter the usergroups you wish to map to Wiki Customs, separated by commas (<em>i.e. 6,7</em>).<br /><br />Defaults to Customs.]]></phrase>
			<phrase name="setting_mmog_wiki_custom_ug_title" date="1223157636" username="MMOG" version="2.0.1.0"><![CDATA[Custom Usergroups]]></phrase>
before

Code:
		</settinggroup>
	</options>
	<helptopics>
add

Code:
			<setting varname="mmog_wiki_custom_ug" displayorder="7">
				<datatype>free</datatype>
				<defaultvalue>9</defaultvalue>
			</setting>
replace the number 9 for your custom group id in the forum!!

re-import the product and check "allow overwrite"


edit AuthPlugin_vBSSO.php (in wiki/includes/ )

after

// Check Sysop Groups

add

Code:
			$mmog_customgroup = explode( ',', str_replace( ' ', '', $vbulletin->options['mmog_wiki_custom_ug'] ) );

			foreach ( $mmog_customgroup as $customgroup ) {
			    if ( is_member_of( $vbulletin->userinfo, $customgroup ) ) {
				$user->addGroup( 'Custom' );
				break;
			}   }
(respect the case)


I HAVEN'T TESTED BUT IT SHOULD WORK, LET ME KNOW IF IT DOESN'T WORK PLEASE

Last edited by Kabuto; 12-16-2008 at 07:56 PM.
 
12-16-2008   #5 (permalink)
MMOG Lurker
 
Join Date: Dec 2008
Posts: 4
iTrader: (0)
Kabuto is on a distinguished road
Default

it is me again sorry for triple post

I have tested the above code with mediawiki 1.12.0 & vB 3.6.12 & it works perfect!

Now I have a request if you will allow me:

In the wiki sql table there
a user.user_editcount value

How can I display this value in the vB postbit of the user ?
 
12-16-2008   #6 (permalink)
ggFTW Supporter
Special
Medoria's Avatar
Awards Retired Division Head
 
Join Date: Jun 2008
Posts: 631
Blog Entries: 4
iTrader: (0)
Medoria is a glorious beacon of lightMedoria is a glorious beacon of lightMedoria is a glorious beacon of lightMedoria is a glorious beacon of lightMedoria is a glorious beacon of lightMedoria is a glorious beacon of light
IGN: Medoria
Class: Sorceress to_sheep
Level: 2X
Guild: Kitty Empire
Default

Hey Kabuto - thanks for your interests in this plugin! NoeJeko is currently in Germany on a trip so I'm not sure he'll be around for a while to answer your questions.
__________________
Faith, Trust, and Pixie Dust!



Kitty Empire Forever
 
12-17-2008   #7 (permalink)
MMOG Lurker
 
Join Date: Dec 2008
Posts: 4
iTrader: (0)
Kabuto is on a distinguished road
Default

Thank you Medoria

While awaiting I have done a bit of research, I think I am close but I failed to write the query properly, so here is as far as I went:

PRODUCT_PLUGIN.xml

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="wiki_usereditcount" active="1">
	<title>Wiki Edit Count</title>
	<description>This addon shows the number of wiki edits each user has on the thread postbit, and their profile.</description>
	<version>0.0.8</version>
	<codes>
	</codes>
	<templates>
	</templates>
	<plugins>
		<plugin active="1">
			<title>MemberInfo Wiki Edit Count (Total Wiki Edits)</title>
			<hookname>member_customfields</hookname>
			<phpcode><![CDATA[$wiki_editcount = ???? ]]></phpcode>
		</plugin>
		<plugin active="1">
			<title>ShowThread Wiki Edit Count (Total Wiki Edits)</title>
			<hookname>postbit_display_start</hookname>
			<phpcode><![CDATA[$wiki_editcount = ???? ]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
		<phrasetype name="GLOBAL" fieldname="global">
			<phrase name="wiki_usereditcount">><![CDATA[Wiki Edits]]></phrase>
		</phrasetype>
	</phrases>
	<options>
	</options>
</product>
then in the templates, where you want the number of wiki edits to appear, add

Code:
$vbphrase[wiki_usereditcount]: $wiki_editcount
???? are the missing parts

I am sure NoeJeko will be capable to figure out a proper query. So I am waiting amxiously his return!!!
 
01-04-2009   #8 (permalink)
MMOG Lurker
 
Join Date: Jan 2009
Posts: 1
iTrader: (0)
jfusiontest is on a distinguished road
Default

Great vBulletin / MediaWiki integration.

One small issue.

When I try to "Register for your site" via the wiki's Log in / create account - they are the same URL. And I can't seem to create an account that way.

I suggest either
(1) remove the words "create account"
(2) redirect "create account" to forums registration.

Now I do suppose most people are registering from the forums anyway ... but NOT everyone !

Especially as your wiki grows.

Otherwise ... great great job !
 
01-04-2009   #9 (permalink)
Crescent Fresh
Special
NoeJeko's Avatar
Games
Ragnarok OnlineTrickster OnlineLuniaPangya
Awards Facebook FanTwitter Fan
 
Join Date: Jun 2006
Location: San Jose, CA
Posts: 4,230
Blog Entries: 29
iTrader: (0)
NoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond reputeNoeJeko has a reputation beyond repute
Send a message via AIM to NoeJeko Send a message via MSN to NoeJeko Send a message via Skype™ to NoeJeko
IGN: NoeJeko
Class: Warrior lt_warrior
Level: 23
Guild: Kirameki
Default

My apologies for this, I didn't see any replies to this thread =[

Please keep any requests that involve code to vbulletin.org - I do not have mechanisms in place here to verify vBulletin licenses and it is against their policy to post code in the open. I'll be glad to address any of these solutions there; my username on vb.org is the same as it is here. Please keep in mind that this plugin is handled in my spare time; I do my best to offer support on it but I do have other things I must prioritize.
__________________
View my portfolio: Paul Stout Photography

[Forum Rules][NoeJeko's Blog][Guide Guide][TO Training Guide]
k0n: Explaining anything to ignorant people is the same as trying to teach a turtle to sing. At some point, it's just hopeless.
 
09-29-2011   #10 (permalink)
ggFTW Lurker
Awards Facebook Fan
 
Join Date: Jul 2011
Posts: 1
iTrader: (0)
Danb is on a distinguished road
Default

Hello, Thanks for the awesome plugin. Unfortunately, it seems it needs to be modified to make it compatible with the latest release of MW:

Fatal Error while upgrading from 1.16.5 to 1.17 - MediaWiki


Anything I can do to help?

Cheers,
Dan.
 

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://ggftw.com/forum/wiki-discussion/11550-mediawiki-vbulletin-sso-plugin.html
Posted By For Type Date
Mediawiki Forums User Guide - Mediawiki Vbulletin Sso Plugin Ggftw Ggftw Mmorpg Community This thread Refback 05-03-2012 02:48 PM

Pockie Ninja
Need a new browser game?

Try 

Pockie Ninja

Rating:  

8.3
Hide this banner by registering for our community.