View Full Version : Integration with vBulletin - MediaWiki/vBulletin Single Sign-On
NoeJeko
09-17-2008, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=213102)
Demo of plugin in action: MyMMOGames - Multiplayer Gaming and Media Community (http://www.mymmogames.net/)
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
Milchi
09-18-2008, 06:53 AM
Great one!
NoeJeko
09-18-2008, 06:56 AM
I'm hoping that I didn't miss anything when I tried to "package" it for redistribution. If I did, just post a note here and I'll get to it ASAP.
Also, that "demo" site is a live, production site so if you must test the SSO - please do so on your user page or user talk page - not the wiki articles. Thanks!
Webnower
09-18-2008, 07:58 AM
This looks great! /install
TimberFloorAu
09-18-2008, 08:20 AM
This isnt something that we would use, but can appreciate the amount of work put in, well done ^5
Ozzy
edermix
09-18-2008, 12:35 PM
Very good boy ..
I will test it here.
A doubt: I need to have the MediaWiki (http://www.mediawiki.org/wiki/Download)?
Thanks
NoeJeko
09-18-2008, 12:47 PM
Yeah.... you definitely need MediaWiki to use this hack.
Jaxel
09-19-2008, 07:03 AM
What advantage does this have over this?
https://vborg.vbsupport.ru/showthread.php?t=136242
As well, I already have that other mod, would I be able to transfer over to this mod easily, if I find out that it is better?
NoeJeko
09-19-2008, 01:07 PM
Supposedly, vBWikiStandard is a complete integration package; mine is not. vBWS hasn't been developed/supported for over a year by the original author and I didn't feel it made sense to use that product on my production servers; thus the reason mine was created.
In all honesty, if yours works and you can still upgrade your vB without worrying about breaking it, I'd use that. I'm not a fan of fixing things that aren't broken. I read pages and pages of problems out of that mod here and on NuHIT's forums and decided it wasn't for me.
valendono
09-19-2008, 02:32 PM
I tried on my forum and its failed to login, because not compatible with vbseo or sumtin else?
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron|wiki/)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|wiki )/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
still cannot login, I mean login success but not on wiki, its on forum.
Notes: I already follow readme.txt - sumtin I miss ?
NoeJeko
09-19-2008, 02:58 PM
Please post a url to your forum and wiki. Also, what versions of vB and MW are you using? I don't think its vBSEO as I use this on 2 forums with vBSEO.
Posted from my Blackberry, please excuse spelling.
Elenna
09-25-2008, 12:54 PM
This works wonderfully, thank you very much!
/me clicks install and nominates for MOM.
NoeJeko
09-25-2008, 05:08 PM
Thanks!
To those posting support requests, I cannot help you if I don't have links to your forum and wiki. Also, if you see me not online for a few weeks don't worry - I get real time notifications of replies to this thread via Blackberry so I'll drop in as I see posts. The project will remain active as I use this product on my own site.
daFish
09-26-2008, 10:13 AM
This looks like a very promising addon. However, do you support the login from an wiki which resides on the same server but under a different domain?
E.g.:
Board: www.domainboard.com/board
Wiki: www.domainwiki.com
Brian30fl
09-26-2008, 10:58 AM
quick question how did u get ur wiki to mach ur forums layout?
NoeJeko
09-26-2008, 09:18 PM
This looks like a very promising addon. However, do you support the login from an wiki which resides on the same server but under a different domain?
E.g.:
Board: www.domainboard.com/board
Wiki: www.domainwiki.com
I do not. Cookies cannot be shared across domains - just subdomains. If you want to achieve single sign-on across different domains you'll need a SAML token or some other federated authentication method - and that is outside the scope of this plugin.
quick question how did u get ur wiki to mach ur forums layout?
I modified the MonoBook Wiki skin manually - the plugin is for single sign-on and user integration only.
For all - I've put in a request for a new hook and/or Admin CP option. This will eliminate the need to modify class_core.php if accepted and I'll try to make the integration process easier in the future.
leonnix
09-27-2008, 03:32 PM
I'm so interested in this hack ! but I have a problem, for some reasons I have to set /mysite.com to be able to send and receive email from from users. Is there a way to make this hack work in my situation !
NoeJeko
09-27-2008, 03:51 PM
Could you be more specific?
leonnix
09-27-2008, 05:57 PM
Sorry! I was talking about the cookie path but I set my cookie path to back "/" , everything works fine now !
I haven't installed this mod yet but I'd like to have my site look similar to yours after installing.
I wanna make my wiki match my forum layout, but I don't know how. Could you help me on this matter ?
Below is my site and wiki:
Site: http://www.rowiki.net
Wiki: http://www.rowiki.net/wiki
NoeJeko
09-27-2008, 06:02 PM
To do it as I did, you have to modify an existing wiki skin or create your own. It's a fair amount of work since MediaWiki uses absolute positioning and that's outside the scope of this plugin. Sorry, but I just don't have time for requests such as this.
leonnix
09-27-2008, 06:04 PM
I can try to do it on my own ! I just need your tips on this; cause I don't know where to begin !
NoeJeko
09-29-2008, 06:54 PM
Sorry but I really don't know what to tell you - you can just do what I did and modify one of the existing MediaWiki skins. I used MonoBook.
It's possible, but unlikely, that this could develop into a full integration (skin/users/etc) one day but I'm really not inclined to do that as it works as I have it. Hopefully the vB team will take my request into consideration so I can just package this as one product and one wiki plugin.
BRotondi
09-29-2008, 07:14 PM
Thanks for this Addon! It is really, what I searched for ... and I also almost bought vbWiki Pro.
I also changed the following, which perhaps also helps other users:
a) Before each Forum description I add a Link "wiki" which referrs to the wiki page oft this forum
ACP -> Foren -> before each description <a href="../wiki/index.php?search=TITLE&go=Seite">Wiki</a> b) Added a wiki-Button http://SinnImLeben.net/tmp/wiki.gif in the Editor with a customized BB-Tag (save to images/editor/wiki.gif)
ACP -> BB-Codes
BB-Code Beschreibung
HTML-Code <a href="../wiki/index.php?search={option}&go=Seite">{param}</a>
Image: wiki.gif This is my part to say thanks :D
Are there other interesting MediaWiki-Integration-Hacks?
Thanks!
Bruno
BRotondi
09-29-2008, 07:53 PM
In your Readme some things are unclear:
STEP 3
Edit LocalSettings.php.
-> Do you mean the one on the wiki-root?
Add this line after DefaultSettings
-> do you mean after require_once( "includes/DefaultSettings.php" );?
Now, change/add this setting:
$wgGroupPermissions['*']['createaccount'] = false;
-> do you mean after require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
STEP 4
Edit class_core.php
-> do you mean [vB]/includes/class_core.php
STEP 5
Import the product
-> do you mean ACP -> Addons&Plugins -> Addons -> Upload from your Computer
Edit the plugin "MMOG Wiki: Online Location Hack"
-> This I do not understand at all...
I'm new in Hacks, but perhaps not the only one, so perhaps also others are unsure on what to do...
But anyway 1001 Thanks for the Hack!!
Bruno
BRotondi
09-29-2008, 08:07 PM
I skipped the red step above and tested what I've done yet:
- vBulletin still works
- wiki first not, but the problem was obvious:
_________________________________
Warning: require_once(/sinnimleben.net/forum/global.php) [function.require-once (http://www.sinnimleben.net/wiki/function.require-once)]: failed to open stream: No such file or directory in /home/.lukey/br_noreply/sinnimleben.net/wiki/includes/AuthPlugin_vBSSO.php on line 257
Fatal error: require_once() [function.require (http://www.sinnimleben.net/wiki/function.require)]: Failed opening required '/sinnimleben.net/forum/global.php' (include_path='/home/.lukey/br_noreply/sinnimleben.net/wiki:/home/.lukey/br_noreply/sinnimleben.net/wiki/includes:/home/.lukey/br_noreply/sinnimleben.net/wiki/languages:.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.lukey/br_noreply/sinnimleben.net/wiki/includes/AuthPlugin_vBSSO.php on line 257
_________________________________
I realized that the FTP-Path seems not to be the same like the server path. So I changed in STEP 1
define( VB_SYSTEM_PATH, '/sinnimleben.net/forum' );
to
define( VB_SYSTEM_PATH, '/home/.lukey/br_noreply/sinnimleben.net/forum' );
Now Wiki works :), have to test the Hack itself :)
But this is also unclear: Now my users will have to register only in wiki or only in VB?
Thanks!
Bruno
BRotondi
09-29-2008, 08:26 PM
(Sorry for all these messages, but with 45 downloads and 15 installs perhaps it's written really a little complicated...)
Now I cannot logoff in wiki any more, after pressing "log off" (or "sign out", here I have only german...) I got this error:
The requested URL /login.php was not found on this server.
I installed wiki to /home/.lukey/br_noreply/sinnimleben.net/wiki
and vB to /home/.lukey/br_noreply/sinnimleben.net/forum
The Link under "logout" points to http://www.sinnimleben.net/login.php?do=logout&...
which of course is false... must try to find out where I have to fix that...
Thanks for any help!
Bruno
NoeJeko
09-29-2008, 08:34 PM
Wow.. that's a lot of questions and many of which I thought were ... rather obvious but I'll do my best to answer them.
In your Readme some things are unclear:
STEP 3
Edit LocalSettings.php.
-> Do you mean the one on the wiki-root?
There should only be one LocalSettings.php and yes it is located on the wiki root.
Add this line after DefaultSettings
-> do you mean after require_once( "includes/DefaultSettings.php" );?
Yes, there should be only one reference to DefaultSettings in that file and that's it.
Now, change/add this setting:
$wgGroupPermissions['*']['createaccount'] = false;
-> do you mean after require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
Wherever in LocalSettings that the other account permissions are set. Look for the other similar lines and add it there. I can't give you an exact line number because your LocalSettings will be different than mine.
STEP 4
Edit class_core.php
-> do you mean [vB]/includes/class_core.php
There should be only one class_core.php and yes, this is where it is located.
STEP 5
Import the product
-> do you mean ACP -> Addons&Plugins -> Addons -> Upload from your Computer
Yes.
Edit the plugin "MMOG Wiki: Online Location Hack"
-> This I do not understand at all...
I'm new in Hacks, but perhaps not the only one, so perhaps also others are unsure on what to do...
But anyway 1001 Thanks for the Hack!!
Bruno
ACP->Edit Plugins->MMOG Wiki: Online Location Hack
(Sorry for all these messages, but with 45 downloads and 15 installs perhaps it's written really a little complicated...)
Yes, that's why I said it was cumbersome. I explained why it was complicated in the first post.
Now I cannot logoff in wiki any more, after pressing "log off" (or "sign out", here I have only german...) I got this error:
The requested URL /login.php was not found on this server.
I installed wiki to /home/.lukey/br_noreply/sinnimleben.net/wiki
and vB to /home/.lukey/br_noreply/sinnimleben.net/forum
Thanks for any help!
Bruno
You didn't properly follow step 2 of the instructions if you're getting this error.
My mistake - this will be caused if you didn't properly set $vbsso_forumpath in AuthPlugin_vBSSO.php.
BRotondi
09-29-2008, 08:58 PM
I still need your help:
Wherever in LocalSettings that the other account permissions are set. Look for the other similar lines and add it there.
Sorry, I do not understand, what you mean... There is no line with Permissions or account (see Attachement)
this will be caused if you didn't properly set $vbsso_forumpath in AuthPlugin_vBSSO.php.
AuthPlugin_vBSSO.php seems correct:
define( VB_SYSTEM_PATH, '/home/.lukey/br_noreply/sinnimleben.net/forum' );
$vbsso_forumpath = '/forum';
and also Userlogin.php, which already was set up correct:
$vbsso_forumpath = '/forum';
$vbsso_wikipath = '/wiki';
ACP->Edit Plugins->MMOG Wiki: Online Location Hack
I changed nothing since /wiki/ ist correct...
Thanks for further helps!
Bruno
NoeJeko
09-29-2008, 09:09 PM
You can skip that step; however users will show up in your "Who's Online" list as "Unknown Location" for moderators and "Viewing Index" for users.
Also, there was an error in the original AuthPlugin_vBSSO.php - a global variable was not declared as global. I have updated the plugin as necessary; please download the latest copy of it and make the required changes. Only AuthPlugin_vBSSO.php and the MMOG Wiki plugins were changed; there is no need to update Userlogin.php. I visited your forum and was able to register an account - then go to the wiki and edit my User:talk page without creating a new wiki account so it's working. This should give you the logout link functionality.
Thanks for helping me find this bug!
BRotondi
09-29-2008, 09:12 PM
I got a msg that you registered in vB - Thanks! - and this step seems to work...
NoeJeko
09-29-2008, 09:19 PM
Ok.. actually there is a need to update Userlogin.php - the same issue was affecting that file and your login form wasn't working from the wiki either.
Please download the (yet latest) version. Sorry about this; I added those variables after it was working on my site and I decided to redistribute it and forgot to declare them global. I shouldn't code on no sleep, heh.
After you've updated to the latest versions of the files can you let me know so I can test it out? Hopefully this clears the last of your remaining issues.
BRotondi
09-29-2008, 09:21 PM
(Ups have not seen your last post)
BRotondi
09-29-2008, 09:25 PM
... uploaded, but still this stupid bug...
why does he link to http://www.sinnimleben.net/login.php instead of http://www.sinnimleben.net/forum/login.php?
Bruno
If you want to have a look at the Files...
NoeJeko
09-29-2008, 09:27 PM
I just checked that - did you set $vbsso_wikipath in Userlogin.php? It looks like this variable isn't set. Everything else seems to work well.
BRotondi
09-29-2008, 09:30 PM
yes, I did... in the post above you see all my changes.
Please check also the $wgGroupPermissions['*']['createaccount'] = false;
I do not understand this point...
BRotondi
09-29-2008, 09:31 PM
and btw: THANKS!!!!
NoeJeko
09-29-2008, 09:34 PM
yes, I did... in the post above you see all my changes.
Please check also the $wgGroupPermissions['*']['createaccount'] = false;
I do not understand this point...
You have that properly set in LocalSettings.php. I also recommend you delete that attachment from your post now as it has login information for your MySQL database and could be used against you ;D
This is set to keep users from creating a wiki account through the wiki. It makes them create a forum account instead - which is the only way to log into the wiki after you have this hack installed.
BRotondi
09-29-2008, 09:40 PM
... an idea why wiki logout still points to http://www.sinnimleben.net/login.php instead of http://www.sinnimleben.net/forum/login.php (http://www.sinnimleben.net/forum/login.php?)?
NoeJeko
09-29-2008, 09:42 PM
Because it's cached. If you're on FireFox or Internet Explorer, press <Ctrl+F5> on the wiki page and it will force a refresh of the page from the server. Alternatively, you can clear your cache and it will display properly. I just checked it on your site and it's working.
BRotondi
09-29-2008, 09:49 PM
On my Firefox Shift-F5 and F5 has no effect...
So I started MSIE. But why do I have login which points to the wiki-login instead the vb-Login?
NoeJeko
09-29-2008, 09:52 PM
Not <Shift+F5> - <Ctrl+F5> (The control key)
Also, I'm not quite sure why but I'm out of time to troubleshoot it with you for now. In the meantime, you can make this modification to Userlogin.php to make it work until I can figure it out:
Find this line:
$redirlink = '?url=' . $vbsso_wikipath . '/index.php/' . $returnNS;
Replace it with this:
$redirlink = '?url=/wiki/index.php/' . $returnNS;
Please note, this only applies to BRotondi's case; I will update the code later tonight so that this works for all installations.
After you've made this change, please clear your browser's cache (Usually in privacy settings) because MediaWiki likes to cache pages until the end of time, heh...
BRotondi
09-29-2008, 09:55 PM
1001 Thanks. For me it fine also - and I have 00:55 AM here... :)
Good Night to all!
Bruno
BRotondi
09-29-2008, 10:00 PM
just checked your http://www.mymmogames.net/wiki/index.php/Main_Page -> Same Problem! ... will have a look after slleping :)
1001 Thanks again and a last good night!
Bruno
NoeJeko
09-29-2008, 10:05 PM
That's really odd - from my browser both your and my site are working properly...
BRotondi
09-30-2008, 03:49 AM
Good Morning!
Simple cache functions: First in the bed, first out of the bed :)
a) Perhaps we missunderstand each other: Your Wiki-Login works (wiki form ist shown but vb-login executed) and so does mine.
It irritated me to see a wiki-login, but I think it's the best solution to leave this that way since the wiki-login will be executed only in exception cases.
b) I put back the userlogin.php without your special edit for BRotondi's case... and get an error again: If I use the wiki-login I get the vB-confirm but then instead of the mainbage the followin error follows:
http://www.sinnimleben.net/index.php/Hauptseite not found
=> Same error we had with the forum: /wiki is missing
Bruno
BRotondi
09-30-2008, 03:54 AM
=> b) does not happen now, because I put back the Userlogin.php to your special customization for me, but if you want to solve this problem for all users, ... be my guest :)
(perhaps the same bug you had to solve earlier for /forum, but this time for /wiki)
For me all is fine now. Thanks!
As little welcome for you I made some minor changes in your readme to help first-hacking people like me :) - hope you enyoj it!
Hope also also my customized BB-Code with the Button is interesting for you. ... it should, since this way it's very easy to link to the wiki.
Bruno
BRotondi
09-30-2008, 05:47 AM
what we allso will have to do: The Sign in (http://www.sinnimleben.net/wiki/index.php?title=Spezial:Anmelden&returnto=Hauptseite) has buggy parts and no Register-Link Register (http://www.sinnimleben.net/forum/register.php):
<loginstart>
Anmelden
cow
Um sich bei Wiki SinnImLeben.net anmelden zu k?nnen, m?ssen Cookies aktiviert sein.
Bruno
NoeJeko
09-30-2008, 04:00 PM
I'll work on those - I want to get the path settings into the ACP so people aren't having to alter the files manually. There will be a new version of this coming soon.
BRotondi
09-30-2008, 04:15 PM
online too :) (Thanks for your work!)
Bruno
NoeJeko
09-30-2008, 05:26 PM
Ok, I have a bit more intuitive version of this in work - I should have it released by tonight. It cuts out the need to edit every single file and gives an Admin CP option to set your wiki path. Hopefully this will ease the pain of installing a bit =]
There's nothing I can do to get around the edits to LocalSettings.php in the wiki or class_core.php, but these should be the only files you have to edit once this is over. Hopefully I can bypass the class_core edit once vB 3.8 is out.
BRotondi
09-30-2008, 05:41 PM
And again a big thanks for your work!!
(I need more sleep tonight, so I will not be present for debugging :) )
Bruno
NoeJeko
09-30-2008, 07:49 PM
It's been updated.
The process has been taken from 5 steps, editing in every file of every step, to 3 steps - and all you have to edit is LocalSettings.php.
If you've previously installed the vBulletin product, you'll need to uninstall it and then install this version as the product ID changed (it wasn't really designed as a product before...) Installation of the product is now a requirement or it will fail to function properly. You can simply upload the contents of "upload" to your wiki root and it will overwrite the necessary files. Make sure you check your LocalSettings.php file - there was a change to VB_SYSTEM_PATH.
Hopefully this will make it MUCH easier for people to use this product.
BRotondi
10-01-2008, 07:13 AM
Very nice, Thanks!!!
I will check it and give you feedback in perhaps 2 weeks, since I got some new work now... (sorry...)
Bruno
BRotondi
10-01-2008, 06:27 PM
o.k. some spare time and willing to try it :)
My localsettings has no "require_once( "$IP/includes/DefaultSettings.php" );", but a "require_once( "includes/DefaultSettings.php" );"
BRotondi
10-01-2008, 06:34 PM
hmmm... did not worked...
I can register in vB, but Wiki is not touched...
I can logoff in Wiki, vB-Logoff works, but Wiki still logged on...
I can logon in Wiki, vB Appears (!) but in vB still logged out...
BRotondi
10-01-2008, 08:02 PM
I went back to 1.0.3 which workes.
Perhaps I made some mistake... Does 2.0 work at someone else?
Bruno
BRotondi
10-01-2008, 08:42 PM
Found an error of mine:
sinde I had only
require_once( "includes/DefaultSettings.php" );
I did only add
require_once( "includes/AuthPlugin_vBSSO.php" );
instead of
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
now I tried to remove $IP in my 1.0.3 installation and WOW! Same "not working" like written!
Sorry, my fault!!
... but no Time to test again 2.0 ...
Greetings
Bruno
BRotondi
10-01-2008, 09:42 PM
... and now it does not work again even when I reinsert the $IP!!!!
Bruno
Edit: It was an issue from MediaWiki! See Post 61. Everything works fine.
NoeJeko
10-01-2008, 10:36 PM
Um... I can't even begin to follow your string of posts. This product is working on 2 other boards - mine and my work's corporate site. The instructions said to completely remove the old product - if you downgraded back to 1.0.3 there will likely be a conflict. I'll need to see your LocalSettings.php file to begin trying to decipher what went wrong.
Also, did you check the value of Wiki Root in the ACP?
NoeJeko
10-01-2008, 10:40 PM
Nevermind. I just checked your site and everything works 100% properly. I cannot understand what issues you are still having out of this.
If the fact that a user still appears logged in on the wiki after they log out - I stated before that this was an issue with the wiki cache. The user is in fact not logged in, but MediaWiki likes to remain in cache until the end of time. This is not something that I have any control over - at least within the scope of this plugin. MediaWiki itself states that "you may continue to appear logged in on some pages until you clear your cache."
BRotondi
10-02-2008, 04:37 AM
Hi NoeJeko
Thanks!
In fact this MediaWiki-Cache-Problem is what made me cracy, since I searched the bug on my side...
When Changing 1.0.3 <-> 2.0 I always uninstalled all, checked the vB + Wiki and then installed the other Product
... and next Time I will alter the Reply instead of write a new one.... Sorry!
Greetings
Bruno
NoeJeko
10-02-2008, 04:50 AM
So you see everything as working properly now? I did when I visited your site.
BRotondi
10-02-2008, 05:05 AM
Good Morning NoeJeko!
Yes, 1.0.3 works fine.
Perhaps these two Infos are important for this Hack:
- Wiki-Cache(-Bug)
- Ctrl-F5 forcing reload
Thanks for your help! Your support is the nicest feature of this hack :)
Bruno
NoeJeko
10-03-2008, 09:20 PM
Planned features coming in 2.0.1:
Usergroup mapping:
In the vB ACP you will have the ability to map forum usergroups to wiki usergroups. Useful if you have certain groups (like administrators) that you wish to automatically make sysops, etc.
In the vB ACP, you will be able to specify what (if any) usergroups will be unable to log into your wiki. This will not prevent them from viewing it, but it will prevent them from making edits.
Possibly more - and I'm open to taking feature requests.
BRotondi
10-03-2008, 09:37 PM
Hi NoeJeko
Nice, that you are continuing this project!
If you can use these Icons: http://www.sinnimleben.net/forum/images/editor/wiki.gif http://www.sinnimleben.net/forum/images/editor/wikip.gif I use them as BB-Buttons for Wiki and Wikpedia
One Feature I use manually: Mapping Forums to Wiki-Pages (adding a "(Wiki)" at the Forum-Name and a redirect-Page.
00:37 here, so good night!
Bruno
Ozidoggy
10-04-2008, 01:56 AM
I am new at all of this. I am unsure as to way if I log into wiki with my forum user and passowrd as admin, why I do not have admin rights in wiki. I can't edit for example the navigation bar, as it says I don't have the right permssions.
Can anyone point me in the right direction?
Thanks
GoodOmens
10-04-2008, 12:52 PM
Great plugin.
Just had one issue with it with redirects for logins.
I don't use /wiki/index.php/Page_Name but /wiki/Page_Name so had to edit your hard coded path to get rid of the problem.
Dunno how to add a soft path to fix the problem for everyone but know there should be a way.
NoeJeko
10-04-2008, 01:02 PM
I am new at all of this. I am unsure as to way if I log into wiki with my forum user and passowrd as admin, why I do not have admin rights in wiki. I can't edit for example the navigation bar, as it says I don't have the right permssions.
Can anyone point me in the right direction?
Thanks
This falls under my last post about changes coming in 2.0.1 =] It'll be out soon (hopefully tonight) so stay tuned!
Great plugin.
Just had one issue with it with redirects for logins.
I don't use /wiki/index.php/Page_Name but /wiki/Page_Name so had to edit your hard coded path to get rid of the problem.
Dunno how to add a soft path to fix the problem for everyone but know there should be a way.
I actually didn't even think about this. In 2.0.1, I'll add a switch allowing you to specify if you use Wiki's short URL options. Thanks for the feedback!
Tianuc
10-04-2008, 01:59 PM
Hi NoeJeko~I love you ^.^
When 2.0.1 release?
GoodOmens
10-04-2008, 04:56 PM
This falls under my last post about changes coming in 2.0.1 =] It'll be out soon (hopefully tonight) so stay tuned!
I actually didn't even think about this. In 2.0.1, I'll add a switch allowing you to specify if you use Wiki's short URL options. Thanks for the feedback!
Sweet, as a former coder I know you always can't think of everything. We, as users, find interesting ways to break things :-).
Anyways the only other really missing feature would be who's online status.
I get things like:
Unknown Location
/action/edit/Classes/Dwarf_Fighter
Etc ....
I also noticed some Hardcoded values for your MyMMOGames Wiki and Blog in place.
If I get a chance this weekend I'll see if I can come up with a nice clean solution. Regardless this plugin is heading in the right direction.
NoeJeko
10-04-2008, 11:03 PM
Version 2.1.0 has been released. The following changes were made:
- 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
Please read the upgrade instructions in readme.txt. If you're upgrading from version 2.0.x, the upgrade is very quick but you must ensure you check the new ACP settings or you may give someone unauthorized access to your wiki. I recommend turning off vBulletin before the upgrade.
I get things like:
Unknown Location
/action/edit/Classes/Dwarf_Fighter
Etc ....
I didn't see this in time to address it in this version. You have an interesting wiki setup and I'll do my best to see if I can code support for that.
I also noticed some Hardcoded values for your MyMMOGames Wiki and Blog in place.
If I get a chance this weekend I'll see if I can come up with a nice clean solution. Regardless this plugin is heading in the right direction.
Removed in version 2.1.0.
GoodOmens
10-05-2008, 04:36 AM
I didn't see this in time to address it in this version. You have an interesting wiki setup and I'll do my best to see if I can code support for that.
Yea so please don't try and accommodate me. I've found my own solution just adding on to your code. I'll update it to work with 2.1 and post my results (If however you want to know how I did my install let me know as I'm more then happy to share ... nothing more then htaccess and simple localsetting settings).
I'm going a step beyond just using /wiki and have /action for all action events (Instead of index.php&action=)
While I would classify it as interesting (I doubt many use it) it is a documented approach.
You can see my site:
http://www.lineagejunkies.com
http://www.lineagejunkies.com/wiki
Thanks again for providing a *working* plugin with fast updates!
(Also thanks for not coming off as arogant like the ElfMage person who programed the last mediawiki plugin .... I really appreciate your hard work)
Ozidoggy
10-05-2008, 07:42 AM
Works GREAT!
Anyone know how I can wrap my mediawiki so it has my VB header and footer? Or wrap it completely with VB oo VBadvanced?
Cheers
NoeJeko
10-05-2008, 05:00 PM
Thanks again for providing a *working* plugin with fast updates!
(Also thanks for not coming off as arogant like the ElfMage person who programed the last mediawiki plugin .... I really appreciate your hard work)
Thanks! Positive feedback give me motivation to continue development on this product. If no one had used it then it most likely would have never evolved, heh - it worked for my purpose.
Works GREAT!
Anyone know how I can wrap my mediawiki so it has my VB header and footer? Or wrap it completely with VB oo VBadvanced?
Cheers
This discussion somewhat started earlier in the thread. For my site, I modified the wiki templates directly. Sorry, but between work, running a game community, and trying to keep somewhat of a life, I really don't have time to go as in-depth as elfmage tried to go. Maybe one day, but there are no plans for this functionality in the foreseeable future.
KingPin6
10-06-2008, 01:05 AM
the system seems to work as far as sending me to me VB for logging in but when I get back to the wiki it seems to not have me logged in, I have tried multiple times to login. not sure why its not working. any ideas/hints welcome.
Linux, vb 3.7.3, MW 1.13
(not on my main forums, rather on a new forum im working on)
NoeJeko
10-06-2008, 01:18 AM
Are your forums and wiki on different subdomains? If so, do you have your cookie settings properly configured? If not, press <Ctrl+F5> after you log in and are back on the wiki to see if it's a cache issue.
blaze718
10-06-2008, 01:30 AM
i downloaded MediaWiki but theres no Localsettings.php file anywhere
NoeJeko
10-06-2008, 01:46 AM
i downloaded MediaWiki but theres no Localsettings.php file anywhere
You need to use the MediaWiki configuration script to generate LocalSettings.php.
blaze718
10-06-2008, 01:52 AM
sorry i don't get that
NoeJeko
10-06-2008, 02:43 AM
Please follow the setup instructions for MediaWiki. After you have completed these, you should see LocalSettings.php.
KingPin6
10-06-2008, 11:00 AM
thank you for your answer. They are on different domains actually, forum is on a abc.org and wiki is on abc.info, so the tld is different,
NoeJeko
10-06-2008, 01:16 PM
This will not work for different domains as cookies aren't designed to be read across domains - just within a single domain.
daFish
10-06-2008, 01:23 PM
This will not work for different domains as cookies aren't designed to be read across domains - just within a single domain.
You're correct. However, IIRC the Mediawiki-Extension CentralAuth uses some kind of mechanism to tunnel cookies to make exactly this possible.
NoeJeko
10-06-2008, 01:33 PM
Sorry, that is outside the scope of this product.
daFish
10-06-2008, 04:22 PM
Sorry, that is outside the scope of this product.
I didn't meant to completly integrate this plugin with CentralAuth but to get inspired by their methods of cross-domain-cookies which would be a great plus for sites who are running forum and wiki under their own domains. :)
NoeJeko
10-06-2008, 04:27 PM
I didn't meant to completly integrate this plugin with CentralAuth but to get inspired by their methods of cross-domain-cookies which would be a great plus for sites who are running forum and wiki under their own domains. :)
At my job (not MyMMOGames), we use SAML tokens for cross-domain authentication. It can be done; I just do not have the time to devote to it for a community project like this for which I receive no compensation, heh.
KingPin6
10-07-2008, 12:47 AM
ok changed to use a subdomain, same issue :( one thing (dunno if it makes a diff) is that wiki is not part of the forums folder, its set outside the forums folder, that ok?
getting mixed reports some people say it does allow them to login. will check further.
NoeJeko
10-07-2008, 04:44 AM
Please check your cookie settings in vBulletin - make sure the cookie domain is set to ".domain.com".
KingPin6
10-07-2008, 10:25 AM
thank you for your continued help. I reset it to that, now im getting somewhat farther, now on top it says
* <myip>* Talk for this IP* Log in* Log out
it doesnt change to my username, I have tried ctrl F5 to refresh with no change. thank you.
NoeJeko
10-07-2008, 12:23 PM
Did you configure the admin control panel settings for disallowed usergroups/admin usergroups? Could you possibly paste (or PM) the values you have in the ACP settings here?
GriZzm0
10-08-2008, 04:56 PM
the system seems to work as far as sending me to me VB for logging in but when I get back to the wiki it seems to not have me logged in, I have tried multiple times to login. not sure why its not working. any ideas/hints welcome.
Linux, vb 3.7.3, MW 1.13
(not on my main forums, rather on a new forum im working on)
I had the same problem. As the first post says "Mediawiki version: 1.12.0+" I assumed that 1.13.* would work, but apparently it doesn't. Downgraded to 1.12.0 and it works like a charm. ;)
NoeJeko
10-08-2008, 05:02 PM
That's interesting; I'll set up a MW 1.13 and try to test this.
GriZzm0
10-08-2008, 06:03 PM
That's interesting; I'll set up a MW 1.13 and try to test this.
Could you upload your monobook files somewhere? Just to see exactly how you've done it. ;)
all4jah
10-08-2008, 08:13 PM
I get this error after installing and trying to login on my wiki page:
Warning: require_once(/var/www/html/forum/global.php) [function.require-once]: failed to open stream: No such file or directory in /homepages/5/d100789014/htdocs/wiki/includes/AuthPlugin_vBSSO.php on line 254
Fatal error: require_once() [function.require]: Failed opening required '/var/www/html/forum/global.php' (include_path='/homepages/5/d100789014/htdocs/wiki:/homepages/5/d100789014/htdocs/wiki/includes:/homepages/5/d100789014/htdocs/wiki/languages:.:/usr/lib/php5') in /homepages/5/d100789014/htdocs/wiki/includes/AuthPlugin_vBSSO.php on line 254
Sorry, I'm new to this. What exactly does that mean?
GriZzm0
10-08-2008, 09:30 PM
I get this error after installing and trying to login on my wiki page:
Sorry, I'm new to this. What exactly does that mean?
If you read the readme file it tells you to change '/var/www/html/forum' to the path where you forum is located.
Edit:
@ NoeJeko
After some playing around with the monobook theme I managed to get it to "mimic" my vBulletin theme almot flawlessly in both firefox and opera but not IE6. Realized you had the same problem if you haven't noticed already. ;9 The left sidebar does not position correctly. I've tried to add "clear: left;" at several elements without any luck. I'll post another post if I find a solution. ;)
Jaxel
10-09-2008, 02:51 AM
First I wanna say to you Joe (is that your name? NekoJoe?), I ABSOLUTELY APPRECIATE your work on this product! I had been using vBWikiStandard for a while now, but I was getting tired of the lack of support and constant problems with that script. So I decided to switch over to your bridge. I also decided to take the oppurtunity to upgrade to the newest version of MediaWiki...
Unfortunately, I didn't read the last page of comments (my fault!), and I missed that this mod is not yet compatible with MW 1.13... oops. I really dont want to go through the trouble of downgrading, only to upgrade again, as for some reason, on my server, the upgrade process was a lot of work. So I know its my fault, but I'm asking you to please upgrade this script for MW 1.13 as soon as possible. Hell, if all you can do is a temporary fix, that is good enough for me until you have more time on your hands!
Once again, thank you!
shikareez
10-09-2008, 07:16 AM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Jaxel
10-09-2008, 02:25 PM
Sweet! Thanks friend!
Jaxel
10-10-2008, 06:37 AM
For anyone that has been asking about vBulletin Skins...
https://vborg.vbsupport.ru/showthread.php?t=193244
emath
10-12-2008, 12:36 AM
i get :
Unable to add cookies, header already sent.
File: /mounted-storage/home94b/sub006/sc49471-HPSH/www/maagar/LocalSettings.php
Line: 1
when i trying to access my wiki after installing the mode and did all right...
http://www.math-pl.co.il/maagar
emath
10-12-2008, 12:58 AM
nvm..
BRotondi
10-12-2008, 07:47 PM
Thanks for the new version and to all debuggers/helpers!
... nice that there ist such a project here :)
Bruno
NoeJeko
10-16-2008, 12:46 AM
I'm still looking to address the MW 1.13 issues ... lack of time is catching up to me. This is not abandoned and a fix will be posted; I just cannot guarantee when.
Veridiac
10-16-2008, 03:15 PM
I discovered the reason (or at least one reason) that 1.13 doesn't work - the hook used to authenticate from a session (AutoAthenticate) was removed and changed to a new one that also requires a result
The new hook is UserLoadFromSession http://www.mediawiki.org/wiki/Manual:Hooks/UserLoadFromSession
I'm going to try changing it myself to see if thats all it is *crosses fingers*
Veridiac
10-16-2008, 06:02 PM
I think I have it working, in addition to modifying the hook to UserLoadFromSession, and adding &$result to the function prototype I did the following:
Changed the User::newFromName to initialize the $user object itself without replacing it... when it was replaced the calling function appeared to still have the old $user object which was giving an error.
In doing that I first load defaults, then set the name, set mFrom to name, call load, check if the user has a valid ID and if not add to the database, and then continue on.
In addition, I Found that the sysop groups weren't being removed when I removed someone from admin group so I added $user->removeGroup for both before then adding it again (or not) depending on the users vb group.
I'm not totally familiar with mediawiki's authorization process (I just installed it actually) so some of this may be redundant, or worse something could be missing....
At any rate it appears to be working if I find any problems I'll post here, I'm attaching my copy of AuthPlugin_vBSSO.php if anyone wants to use it.
Edit: Not working at this time, something is causing edit tokens (and maybe more) to not be correct during POST requests, still investigating
BRotondi
10-16-2008, 07:57 PM
ey wow! Great Work!! Thanks in the name of the vb/Wiki-Community :up:
(even I cannot test it myself, since still 1.9)
Bruno
carrlos
10-17-2008, 03:03 AM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Thanks a million shikareez!! That did the trick!!
From this point on I solemnly swear to read all posts on all pages before installing any add-on!! I actually had 1.12 installed then upgraded before installing this!!! :D
Edit:
Is the link in Who's Online suppose to go to a download of the opensearch_desc.php file?????
https://vborg.vbsupport.ru/
http://www.androidmodding.com/wiki
GriZzm0
10-17-2008, 10:01 AM
Thanks a million shikareez!! That did the trick!!
From this point on I solemnly swear to read all posts on all pages before installing any add-on!! I actually had 1.12 installed then upgraded before installing this!!! :D
Edit:
Is the link in Who's Online suppose to go to a download of the opensearch_desc.php file?????
https://vborg.vbsupport.ru/
http://www.androidmodding.com/wiki
It's not like you'll download the "real" opensearch_desc.php. Your browser asks if you want to download it as the php script change the content header to xml as the output is an xml file.
carrlos
10-17-2008, 01:18 PM
It's not like you'll download the "real" opensearch_desc.php. Your browser asks if you want to download it as the php script change the content header to xml as the output is an xml file.
So how do I remove the link or change the link to go to my wiki instead???
Veridiac
10-17-2008, 06:06 PM
I think I discovered my problem, I run vbDrupal, and drupal uses "user" php sessions, but mediawiki uses file, and apparently loading vbulletin's core stuff to get the authentication from the cookies will sometimes (but apparently not always...) cause drupal to start a session preventing mediawiki from opening the existing session (containing important edit tokens, etc)
Sooo for now I think I'm going to have to use a regular authentication plugin forcing users to sign in twice :( Nice work though, maybe eventually I'll track down what makes drupal start the session, or try again when I get around to upgrading vbdrupal.
azn_romeo_4u
10-18-2008, 12:16 AM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Thank you worked perfectly
Pavlus
10-18-2008, 01:31 PM
So theres no solution for 1.13 for now? I tried to change this hook, but its not working.
thunder28
10-18-2008, 03:45 PM
Hi
i have this problem:
when i will logged in to the wiki, i became this error
Forbidden
You don't have permission to access /mediawiki/index.php5/login.php on this server.
On the Loginsite i have this:
Fatal error: Call to undefined function is_member_of() in /is/htdocs/XXXXXXXXXX/XXXXXXXX/mediawiki/includes/AuthPlugin_vBSSO.php on line 258
xxxx is my homepage path.
sorry for my bad englisch.
greetz
thunder28
Slewey
10-23-2008, 04:52 PM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Had the same problem and this worked great for me! Thanks for sharing
And thanks for the bridge, exactly what I was looking for! Keep up the good work
NoeJeko
10-23-2008, 05:06 PM
Hey guys - I'll try to get a version detection built in and automate this based upon version within the next couple of days. Thanks for pointing it out as we're not currently using MW 1.13.
Hi
i have this problem:
when i will logged in to the wiki, i became this error
Forbidden
You don't have permission to access /mediawiki/index.php5/login.php on this server.
On the Loginsite i have this:
Fatal error: Call to undefined function is_member_of() in /is/htdocs/XXXXXXXXXX/XXXXXXXX/mediawiki/includes/AuthPlugin_vBSSO.php on line 258
xxxx is my homepage path.
sorry for my bad englisch.
greetz
thunder28
It seems like you didn't set one of the directives in the Admin CP properly - or you didn't define VB_SYSTEM_PATH in LocalSettings.php
carrlos
11-01-2008, 09:10 PM
Is the link in Who's Online suppose to go to a download of the opensearch_desc.php file?????
https://vborg.vbsupport.ru/
http://www.androidmodding.com/wiki
Bump!!!!!
figu120
11-01-2008, 11:31 PM
thanks
petchat
11-10-2008, 08:09 AM
This is excellent, thanks so much!
Digital Jedi
11-12-2008, 06:15 PM
I think I have it working, in addition to modifying the hook to UserLoadFromSession, and adding &$result to the function prototype I did the following:
Changed the User::newFromName to initialize the $user object itself without replacing it... when it was replaced the calling function appeared to still have the old $user object which was giving an error.
In doing that I first load defaults, then set the name, set mFrom to name, call load, check if the user has a valid ID and if not add to the database, and then continue on.
In addition, I Found that the sysop groups weren't being removed when I removed someone from admin group so I added $user->removeGroup for both before then adding it again (or not) depending on the users vb group.
I'm not totally familiar with mediawiki's authorization process (I just installed it actually) so some of this may be redundant, or worse something could be missing....
At any rate it appears to be working if I find any problems I'll post here, I'm attaching my copy of AuthPlugin_vBSSO.php if anyone wants to use it.
Edit: Not working at this time, something is causing edit tokens (and maybe more) to not be correct during POST requests, still investigating
Seems to have fixed things for me as well.
GoodOmens
11-19-2008, 02:48 PM
Ok a new bug popped up recently:
Users can no longer edit ANYTHING. I get the following error:
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.
If I remove the plugin everything works fine.
No changes have been made by me so I'm really scratching my head on this one.
Only thing I can think of is changes in latest vbulletin.
NoeJeko
11-19-2008, 02:54 PM
it sounds like you didn't make the required changes to class_core.php or the changes were overwritten by a vB upgrade. Remember if you upgrade your forum you must reapply the changes to class_core.php.
Posted from my Blackberry, please excuse spelling.
GoodOmens
11-19-2008, 02:58 PM
it sounds like you didn't make the required changes to class_core.php or the changes were overwritten by a vB upgrade. Remember if you upgrade your forum you must reapply the changes to class_core.php.
Posted from my Blackberry, please excuse spelling.
That is exactly what it was. I forgot a manual edit of the vbulletin files was necessary. Thanks for the quick reply - everything is working perfectly again!
Consider this a user error :o
NoeJeko
11-20-2008, 12:16 AM
Hopefully they'll work something into vBulletin so that I don't have to do this in the future. I posted in the "hook requests" forum on vb.com but it isn't really a hook I'm after... more like an option to disable the input cleaner for certain scripts.
seoranter
11-21-2008, 12:30 PM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Thanks a million for posting this! Can we have this updated / included in the latest version of the plugin, too, please? Perhaps switching between userloadfromsession and autoauthenticate based on mw version at install / runtime?
In the meantime, I'll mark as installed and satisfied :)
leitel
11-21-2008, 04:36 PM
I have it running now. This is an awesome hack. I did notice though that in vB when looking at a user and where there are I get: Current Activity: Unknown Location /index.php/Erythropoietin_(EPO) .
My wiki is on a sub.domain although URLs to domain.com/wiki will resolve to the sub domain.
I have tried various "Wiki Path" in the vB options.
So basically, the Who's On doesn't see the path of the wiki and the link DOES point to the correct wiki page however, it is without the base wiki domain.
NoeJeko
11-21-2008, 05:52 PM
Thanks a million for posting this! Can we have this updated / included in the latest version of the plugin, too, please? Perhaps switching between userloadfromsession and autoauthenticate based on mw version at install / runtime?
In the meantime, I'll mark as installed and satisfied :)
Yeah, it'll be implemented but I need to upgrade my own wiki to 1.13 before I can reasonably support it on that platform. I've been swamped with other projects - that's why I've just dropped by to provide quick support when I can but it will get done by the end of the year.
I have it running now. This is an awesome hack. I did notice though that in vB when looking at a user and where there are I get: Current Activity: Unknown Location /index.php/Erythropoietin_(EPO) .
My wiki is on a sub.domain although URLs to domain.com/wiki will resolve to the sub domain.
I have tried various "Wiki Path" in the vB options.
So basically, the Who's On doesn't see the path of the wiki and the link DOES point to the correct wiki page however, it is without the base wiki domain.
That's odd - I may have an idea on how to get around this but as it isn't security-related I'll queue it with the above request. Keep in mind, your users cannot see the "Unknown Location" - just staff (we had a few mods on our board that didn't know that).
Thanks to everyone for your support and using this mod.
NoeJeko
11-21-2008, 06:13 PM
Double post ftw.
I just realized what's causing this and /facepalm for not realizing it beforehand.
You can add this line to the .htaccess file in your wiki directory and then the change to class_core.php is not necessary:
php_flag magic_quotes_gpc off
If you don't have a .htaccess file in your wiki directory, just create it. This applies to servers running Apache only. Alternatively, you can disable magic_quotes_gpc in php.ini.
This feature is depreciated as of PHP 6.0.0 anyway, so it makes sense to start coding with the mentality that your input no longer has this shield. I'll update the installation instructions when I make the next major update; it doesn't make sense to advertise an update for this minor change. Future versions will not require the code change.
BRotondi
11-23-2008, 02:56 PM
Sorry for asking the same, but I cannot find the solution in the thread: Does this Hack work with vBulletin 3.7.4 and MediaWiki 1.13?
Login via Wiki does not work... (Redirecting to vB, but nothing happens. I restored the original Userlogin.php to be able to login...)
Thanks for a short info.
Bruno
NoeJeko
11-23-2008, 03:03 PM
vB 3.7.4 just came out recently; I haven't had time to test this plugin against it.
BRotondi
11-23-2008, 05:10 PM
Thanks for the Info. So it should work with 3.7.3 and 1.13?
NoeJeko
11-24-2008, 01:13 AM
vB 3.6.9-3.7.3 / MW 1.12. There are steps in this thread to get it to work with 1.13 but I haven't integrated them into the package yet.
I do intend to make this compatible with vB 3.8 when it is released.
Also, I've added PayPal information so the "Support Developer" links are now active. It's not a requirement for use (else it wouldn't be called a donation, heh) but if users like this mod a small donation would be greatly appreciated =]
GoodOmens
11-24-2008, 03:12 AM
Double post ftw.
I just realized what's causing this and /facepalm for not realizing it beforehand.
You can add this line to the .htaccess file in your wiki directory and then the change to class_core.php is not necessary:
php_flag magic_quotes_gpc off
Just confirmation this works fine (after an update to 3.7.4 P1) on Apache 2 and PHP 5.
BRotondi
11-24-2008, 03:17 AM
I tried the AuthPlugin_vBSSO.php for MediaWiki 1.13 here (https://vborg.vbsupport.ru/showthread.php?p=1646522#post1646522)... but it does not work 100%:
- login/logout through Wiki does not work
- logout through Forum does not work
- but login through Forum works
Anyone got it to work with 1.13 and 3.7.4?
Bruno
NoeJeko
11-24-2008, 03:23 AM
I'll try to get a working version for 1.13/3.7.4 out by the end of this week. I have a few days off from my job but I have a major project coming up with my startup.
BRotondi
11-24-2008, 03:28 AM
Tried also only to change AutoAuthenticate to UserLoadFromSession (#115 (https://vborg.vbsupport.ru/showpost.php?p=1651238&postcount=115))... same effect...
Thanks for your efforts!
It does not really hurry for me... but I'm curious about bringing it to work :)
Bruno
BRotondi
11-24-2008, 03:45 AM
And a little hint: Use vars in LocalSettings.php for "Forgot password" and "Please use your forum information for login. Login across the forum and wiki is the same"
since other languages need to update this
German: "Passwort verloren", "Bitte verwenden Sie für die Anmeldung die selben Login-Daten wie fürs Forum." (not perfect, perhaps someone can improve this...)
Bruno
Big Kahuna
11-26-2008, 02:40 AM
Thanks a million shikareez!! That did the trick!!
From this point on I solemnly swear to read all posts on all pages before installing any add-on!! I actually had 1.12 installed then upgraded before installing this!!! :D
Edit:
Is the link in Who's Online suppose to go to a download of the opensearch_desc.php file?????
http://www.androidmodding.com/photogallery/misc/wiki_link_2_download.gif
http://www.androidmodding.com/wiki
Yeah I'm bummed too. I spent a whole freaking day trying to figure out what I was doing wrong with retracing my steps over and over and over again. I've got VB3.7.4.patch 1 and MW 1.12.1 and after 9 hours don't have it working.
I really wish the original post would actually say that it won't work with MW1.13.1 in red bold. Sure could save a lot of people from wasting a whole day.
www.moparstyle.com/forums (http://www.moparstyle.com/forums)
www.moparstyle.com/wiki (http://www.moparstyle.com/wiki)
Big Kahuna
11-26-2008, 02:44 AM
I someone ever figures this out -- please email me at dave@oldhippie.com so I can get back on this.
NoeJeko
11-26-2008, 02:52 AM
I'll update this thread when I get it working.
Digital Jedi
11-26-2008, 11:18 AM
Yeah I'm bummed too. I spent a whole freaking day trying to figure out what I was doing wrong with retracing my steps over and over and over again. I've got VB3.7.4.patch 1 and MW 1.12.1 and after 9 hours don't have it working.
I really wish the original post would actually say that it won't work with MW1.13.1 in red bold. Sure could save a lot of people from wasting a whole day.
www.moparstyle.com/forums (http://www.moparstyle.com/forums)
www.moparstyle.com/wiki (http://www.moparstyle.com/wiki)
There's a fix posted within the thread to get it working with 1.13.1 and it's posted two pages back.
BRotondi
11-26-2008, 11:22 AM
I tried it, but it's not working 100% (see above)...
Bruno
1.13.2 / 3.7.4 SP1
Jaxel
11-26-2008, 11:37 AM
I use VB 3.7.4.PL1 and MW 1.13.2 and everything is working fine...
(Follow this to get it working: https://vborg.vbsupport.ru/showpost.php?p=1640896&postcount=98)
Also... you DONT need to edit class_core.php...
I found a different way as I really dont like editing VB core files...
In wiki/includes/User.php find:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );
Thats it. http://www.8wayrun.com/wiki/Special:Version
Digital Jedi
11-26-2008, 11:40 AM
I tried it, but it's not working 100% (see above)...
Bruno
1.13.2 / 3.7.4 SP1
Try downloading the file he fixed himself from two pages back. He uploaded a file where me made the edits himself and it works perfectly for me.
Picolet
11-26-2008, 01:39 PM
http://semantic-mediawiki.org/wiki/Semantic_MediaWiki
Semantic MediaWiki (SMW) is a free extension of MediaWiki ? the wiki-system powering Wikipedia ? that helps to search, organise, tag, browse, evaluate, and share the wiki's content. While traditional wikis contain only texts which computers can neither understand nor evaluate, SMW adds semantic annotations that bring the power of the Semantic Web to the wiki. http://semantic-mediawiki.org/wiki/Semantic_MediaWiki
BRotondi
11-26-2008, 01:43 PM
I tried this already (last poste on Page 9)...
Bruno
Jaxel
11-26-2008, 02:30 PM
What is all that extra stuff that Veridiac did to AuthPlugin_vbSSO.php? All I did is rename AutoAuthenticate to UserLoadFromSession and everything works fine. Why was all that extra stuff necessary?
BRotondi
11-26-2008, 03:02 PM
What Versions do you use?
obsidian
11-27-2008, 05:39 AM
I just got everything running with Vb 3.72 and MW 1.13.
Steps I followed:
- Install media Wiki
- Edit the Localsettings file with
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;
- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
- edited User.php as stated in Post #143
After that I just went to the Wiki page and refreshed and it showed me logged in. I did not make any of the class_core.php edits.
Great Hack... just takes a bit of patience to work through it due to all the new versions.
BRotondi
11-27-2008, 05:50 AM
the class_core hacks are not necessary for login, only for "user count/where is the user" inside vB. For such a thing you need to edit the core...
Thanks for the information, I will try it again!
Bruno
BRotondi
11-27-2008, 05:59 AM
I did all you said but still have the same problem... Are you sure it works 100%? Please check the following:
1. login from vB -> check at wiki
2. logout from wiki -> go back and see if inside wiki really logged out
3. login from Wiki -> check at vB and wiki
If it works for you I'm really curious what vB changed from 3.72 to 3.74 ...
Bruno
Big Kahuna
11-27-2008, 02:25 PM
OK -- I'm really really confused as to where to go from here as this thread has jumped all over and I can't figure out the good information from the bad information.
What I've done so far is to follow the instruction in the upload:
STEP 1: Upload the contents of the "upload" directory into your wiki root directory. Edit
LocalSettings.php find this line:
require_once( "$IP/includes/DefaultSettings.php" );
After it, add these two lines:
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
VB_SYSTEM_PATH should be the full filesystem path to your vBulletin installation. If
you don't know the full path, change to your forum home directpry and type pwd in a shell.
It will print the current directory. Ensure you do not add a trailing slash to VB_SYSTEM_PATH!
You no longer have to edit anything in AuthPlugin_vBSSO.php or Userlogin.php
If you have anything in LocalSettings for $wgGroupPermissions['*']['createaccount'], change
all instances of 'createaccount' to false. If you don't have anything in your
LocalSettings.php for 'createaccount', add this line after the two you just added:
$wgGroupPermissions['*']['createaccount'] = false;
This is important so that new users create a forum account instead of a wiki account. If
they create a wiki account by mistake, they will not be able to log in.
STEP 2: Edit class_core.php (found in <forumhome>/includes). Why? vBulletin will mangle a security
token needed by MediaWiki. If you do not make this change, your users will not be able to
edit your wiki. It's really simple and it's worked across vB 3.6.9, 3.7.1, and 3.7.3.
In class_core.php, search for this block of code:
// reverse the effects of magic quotes if necessary
if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc())
{
$this->stripslashes_deep($_REQUEST); // needed for some reason (at least on php5 - not tested on php4)
$this->stripslashes_deep($_GET);
$this->stripslashes_deep($_POST);
$this->stripslashes_deep($_COOKIE);
if (is_array($_FILES))
{
foreach ($_FILES AS $key => $val)
{
$_FILES["$key"]['tmp_name'] = str_replace('\\', '\\\\', $val['tmp_name']);
}
$this->stripslashes_deep($_FILES);
}
}
Replace it with this:
// reverse the effects of magic quotes if necessary
if (function_exists('get_magic_quotes_gpc') AND get_magic_quotes_gpc())
{
if ( THIS_SCRIPT != 'wiki' ) {
// MMOG Wiki hack
$this->stripslashes_deep($_REQUEST); // needed for some reason (at least on php5 - not tested on php4)
$this->stripslashes_deep($_GET);
$this->stripslashes_deep($_POST);
$this->stripslashes_deep($_COOKIE);
if (is_array($_FILES))
{
foreach ($_FILES AS $key => $val)
{
$_FILES["$key"]['tmp_name'] = str_replace('\\', '\\\\', $val['tmp_name']);
}
$this->stripslashes_deep($_FILES);
}
}
}
STEP 3: Import the product product-mmog_wiki.xml via your Admin CP. This is the hack that shows the users in
"Who's Online" instead of "Unknown Location" and also configures your login/wiki paths.
Go to your vBulletin Options and look for MMOG Wiki Options. Change "Wiki Path" to the URL path of your wiki.
If your wiki is on a different subdomain, you need to put the full URL of your wiki path minus the trailing
slash. Otherwise, just a relative directory is fine.
So what do I need to do to get this to work?
1. replace modified class_core.php back with the original unmodified version?
2. Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
3. edited User.php as stated in Post #143 (which mediawiki or vbulletin?)
4. Do I make any changes in my LocalSettings.php -- beyond what I did in the instructions?
Am I missing anything on what I need to do to take this from where doing everything in the readme.txt to getting this to work?
BRotondi
11-27-2008, 02:35 PM
Which Versions do you use?
Big Kahuna
11-27-2008, 03:15 PM
Vb 3.74.1
Mw 1.13.2
BRotondi
11-27-2008, 03:53 PM
does not work.... I have the same Versions...
BRotondi
11-27-2008, 05:36 PM
With this versions it is possible to login via vB in Wiki AND vB, but as written above you cannot logout both or login through Wiki.
NoeJeko will try to solve the problem. We need some patience... :)
Bruno
NoeJeko
12-01-2008, 04:07 PM
I am working the issue. Right now I can only claim compatibility with vB 3.6.9-3.7.3 and MW <= 1.12.
BRotondi
12-01-2008, 04:23 PM
1001 Thanks! ... hope you dont lose to much time with this...
Check the MediaWiki 1.13.2 RELEASE-NOTES file.
* AutoAuthenticate hook renamed to UserLoadFromSession
I had to change that hook in includes/AuthPlugin_vBBSSO.php below:
//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
Otherwise Single-Signon did not work with MediaWiki 1.13.2.
FYI for y'all.
Rick
BRotondi
12-06-2008, 04:01 AM
Thanks for your feedback. This is written above, but you still will not be able to
1. logout from wiki -> go back and see if inside wiki really logged out
2. login through Wiki -> check at vB and wiki
Or does it work on your side?
Bruno
Big Kahuna
12-06-2008, 06:30 PM
Checking back to see if there was a fix yet to the newest version of MediaWiki and Vbulletin. Looks like the answer is still no.
Varsh
12-07-2008, 02:40 PM
Well I tried installing this and looked throughout the thread. I'm bemused on how you guys have managed to get it to work. I've installed it exactly as the instructions asked and yet, despite changing the forum path in localsettings.php, it seems that it's trying to find the file from the wiki path. This is what's happening (http://wiki.nexusrealms.co.uk/).
Files uploaded
localsettings.php set to:
define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
Wiki's user.php set to '+#+'
plugin installed and URL set to above link
So what exactly have I done wrong? I must've missed something.
vBulletin 3.8 RC1 and the latest MediaWiki 1.13.2.
edit: I changed require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" ); and it worked fine, hope this doesn't mess anything up though.
BRotondi
12-07-2008, 04:38 PM
Hi Varsh
Since your login is not beeing redirected to vBulletin your wiki/LocalSettings.php seems not to be correct. Or did you disabled it again?
Have a look at my site: If you press login on Wiki it should redirect to vB: http://www.sinnimleben.net/wiki/
Bruno
TomasDR
12-07-2008, 09:20 PM
Check the MediaWiki 1.13.2 RELEASE-NOTES file.
* AutoAuthenticate hook renamed to UserLoadFromSession
I had to change that hook in includes/AuthPlugin_vBBSSO.php below:
//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
Otherwise Single-Signon did not work with MediaWiki 1.13.2.
FYI for y'all.
Rick
This worked for me except for one minor issue. I logout of vBulletin but not Wiki, not a really big deal.
3.7.4PL1 + MediaWiki 1.13.2
Varsh
12-07-2008, 09:30 PM
That's the only issue I'm having at the moment. Doesn't bother me either, I'll just have to mention it in the FAQs.
Hi Varsh
Since your login is not beeing redirected to vBulletin your wiki/LocalSettings.php seems not to be correct. Or did you disabled it again?
Have a look at my site: If you press login on Wiki it should redirect to vB: http://www.sinnimleben.net/wiki/
Bruno
Since I did the change in my edit, Wiki logs me in via vBulletin, however if I put the $IP in localsettings, then it just wants to pick up from the wiki directory and not my forums directory, which is why I just put the straight path, replacing the $IP altogether.
If doing it this way has no effects to the usage of the Wiki then I shall leave it as is, if it does then I'll be eager to see some sort of alternative fix for this. Fantastic sign in mod and so far is working nicely, although I haven't used the Wiki yet, once the sign out part is sorted then it really will be complete. Keep it up! :)
BRotondi
12-08-2008, 05:41 AM
On my side it's not possible to login through Wiki: If I enter my Login-Data there, and press the button, vb will appear, but without logging in.
Does it work on your installations?
@TomasDR (https://vborg.vbsupport.ru/member.php?u=128960), Varsh: Can you please post the link to your site? I want to test, if it works there better than on my site...
Bruno
Varsh
12-08-2008, 11:22 AM
Just sign up at my site here (http://www.nexusrealms.co.uk/) and mess around with the Wiki. I haven't tested it myself yet but it's definitely running so far.
BRotondi
12-08-2008, 11:59 AM
Thanks for the link!
I registered but... where's the Wiki? (found it now, from your previous post: http://wiki.nexusrealms.co.uk)
If you want to add it left of "Register", you can customize the navbar-Tamplate by adding the red line:
<!-- nav buttons bar -->
<div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<td class="vbmenu_control"><a href="http://wiki.nexusrealms.co.uk">Wiki</a></td>
<if condition="$show['member']">
Your wiki needs 80 Seconds to load a Page, your Forum 20 seconds... seems you got an even slover provider than me :)
1. Wiki-Login (http://wiki.nexusrealms.co.uk/index.php?title=Special:UserLogin&returnto=Special:UserLogin) bad: "Login error: Incorrect password entered. Please try again."
2. Login via vB (http://www.nexusrealms.co.uk/) o.k.
3. Wiki-Mainpage (http://wiki.nexusrealms.co.uk/index.php/Main_Page) o.k. (logged in)
4. Wiki-Log out (http://forums.nexusrealms.co.uk/login.php?do=logout&logouthash=1228746517-1494c1f123f678dcab2d5b4ff8cbe044ab31a29b) bad: vB loggs out, Back, (Ctrl-F5) -> Wiki still logged in!
You seem to have the same Problems: Does not work perfect, but better than nothing :)
Thanks for your link and all the best with your site!
Bruno
Varsh
12-08-2008, 01:54 PM
Oh, forgot to set the new template to default, my fault. :P
I've only just installed the stuff on the site so there's barely anything there and needs to be fully configured. I think the VPS just needs a reboot, knowing Apache it's misbehaving as usual, I'm actually with a very very fast provider. Actually wow it is going slow, time to sort that out.
BRotondi
12-08-2008, 02:17 PM
10 Seconds now for Wiki :)
Bruno
Varsh
12-08-2008, 02:35 PM
I did a quick reboot of the server. It's still going slow though, wasn't like that the other day. Ah I bet it was after updating Apache... ugh! Cheers for the ups on that btw. xD
Anyway at least you know now that it's possible on 3.8 RC1 and 1.13.2. :D
TomasDR
12-08-2008, 09:24 PM
Just sign up at my site here (http://www.nexusrealms.co.uk/) and mess around with the Wiki. I haven't tested it myself yet but it's definitely running so far.
Glad you did it, I sent BRotonedi a PM since I run an adult board. Wanted BRotonedi to be sure they wanted to visit my board before sending the URL.
But I do want to mention Logging in through WIki works fine for me and logs me into vBulletin & Wiki.
Only the logout fails on the Wiki side, I stay logged into Wiki but do logout of vBulletin. This is the case logging out on either side.
Varsh
12-09-2008, 02:16 AM
I tested the login on the Wiki side too and it worked fine also. And yes, I have the same problem signing out, however when it takes you back to the Wiki, logout again and it'll work.
Oh and don't mess around with the Wiki anymore. :p
BRotondi
12-09-2008, 04:56 AM
@TomasDR (https://vborg.vbsupport.ru/member.php?u=128960) Thanks for the info, have not seen your PM since it's only blinking a little big on the upper right :)
@Varsh: Wiki-Login now works. What have you changed? (I'm quite sure I tested it correct... perhaps it was a problem with these 80s-Site-loads :) )
What could be the Problem on my www.SinnImLeben.net/wiki ? There I cannot login through Wiki, but I've found no missconfiguration... Where should I have a deeper look?
Bruno
Varsh
12-09-2008, 11:04 AM
I haven't changed anything, you're most likely right in thinking that it was because my site was running slowly at the time. At least now it loads in about 1-3s. Told you I was with a fast host. ;)
DawnsWebDesigns
12-11-2008, 02:14 PM
I tried to log-out of my site & that worked but I can't log-out of wiki. I keep going to the wiki page & trying to log-out there too & it still won't let me...it redirects me back to the forum. I logged in on someone else's account & when I tried to visit the wiki it still shows me logged in versus the someone else.
http://www.dawnswebdesigns.com/forum/index.php
http://dawnswebdesigns.com/wiki/index.php/Main_Page
Thanks for any help
trackpedia
12-11-2008, 06:40 PM
Just wanted to drop a line here and say with Mediawiki 1.13.2 and VB3.7.4 making this change gets me rolling along just swimmingly
//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
logout from vb doesn't propigate but at the moment I dont see that being and issue and given how great the developer is working on this I am sure there will be a fix coming soon.
Thanks for the work that's gone into this baby.
BRotondi
12-11-2008, 06:45 PM
Logout from Wiki
You need to add manually a link to the wiki-logout, since the hack currently reroutes to vBulletin-logout:
Look at Varsh's Wiki (http://wiki.nexusrealms.co.uk) (Top right) or mine (http://www.sinnimleben.net/wiki/index.php?title=MediaWiki:Sidebar&action=edit) (Logout through Sidebar).
english 1: .../login.php?do=logout (http://forums.nexusrealms.co.uk/login.php?do=logout)
english 2: .../Special:UserLogout (http://forums.nexusrealms.co.uk/Special:UserLogout)
german: .../index.php?title=Spezial:Abmelden (http://www.sinnimleben.net/wiki/index.php?title=Spezial:Abmelden)
If these links do not work on your wiki, you can find the correct Link by temporarly disable the Hack (// require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); ) and perhaps reset the original /wiki/includes/Userlogin.php
Bruno
DawnsWebDesigns
12-12-2008, 01:37 AM
Logout from Wiki
You need to add manually a link to the wiki-logout, since the hack currently reroutes to vBulletin-logout:
Look at Varsh's Wiki (http://wiki.nexusrealms.co.uk) (Top right) or mine (http://www.sinnimleben.net/wiki/index.php?title=MediaWiki:Sidebar&action=edit) (Logout through Sidebar).
english: .../login.php?do=logout (http://forums.nexusrealms.co.uk/login.php?do=logout)
german: .../index.php?title=Spezial:Abmelden (http://www.sinnimleben.net/wiki/index.php?title=Spezial:Abmelden)
If these links do not work on your wiki, you can find the correct Link by temporarly disable the Hack (// require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); ) and perhaps reset the original /wiki/includes/Userlogin.php
Bruno
Actually I'm just going to wait until this one's a lil more done. There's edits all over the place & it's too much for me. I'm no programmer I admit it. :o
Varsh
12-12-2008, 07:34 PM
There are barely any edits at all, just look at my previous post:
Files uploaded
localsettings.php set to:
define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" );
Wiki's user.php set to '+#+'
plugin installed and URL set to above link
Using: vBulletin 3.8 RC1 and the latest MediaWiki 1.13.2.
Just remember to change the system path to yours from mine. If I knew about the change in the require_once setting, then it would've taken me only a minute to install the entire thing. Other than the signing off bug (which isn't much of one), then it works perfectly.
rob01
12-14-2008, 03:44 AM
the login dosnt seem to work :S
i can login well in vb, but in my wiki if i click login it will send me to my vb forums i mean the login function wont disapear meaning im still not logged in
any idea?
DawnsWebDesigns
12-14-2008, 07:36 AM
There are barely any edits at all, just look at my previous post:
Just remember to change the system path to yours from mine. If I knew about the change in the require_once setting, then it would've taken me only a minute to install the entire thing. Other than the signing off bug (which isn't much of one), then it works perfectly.
There shouldn't be any edits over & above the ones which must be done in the first place. And if there are they should be posted at the top of this page along with the rest.
I did look at your previous post. And I did try your edit. It still didn't work. As my post said...not only can I not sign out...while I can sign my kid into the forum - I can't into Wikipedia. Although I'm not logged in to the forum it still shows me logged in at Wikipedia. My site wasn't meant to be a beta testing site...I'd like people to actually show up & use it. I'd rather have no bugs if at all possible. :o
BRotondi
12-14-2008, 08:42 AM
i can login well in vb, but in my wiki if i click login it will send me to my vb forums i mean the login function wont disapear meaning im still not logged in
Same Problem on my site! (but it works on Varsh's site...) Which Versions are you using?
Thanks for the Link. Very interesting: Login through Wiki works with 3.7.4 and 1.13.2 on ThomasDR's Site!
Bruno
Varsh
12-14-2008, 11:38 AM
There shouldn't be any edits over & above the ones which must be done in the first place. And if there are they should be posted at the top of this page along with the rest.
I did look at your previous post. And I did try your edit. It still didn't work. As my post said...not only can I not sign out...while I can sign my kid into the forum - I can't into Wikipedia. Although I'm not logged in to the forum it still shows me logged in at Wikipedia. My site wasn't meant to be a beta testing site...I'd like people to actually show up & use it. I'd rather have no bugs if at all possible. :o
Wait a sec, you're trying to log into Wikipedia? You do realise that won't work, unless you meant MediaWiki. Could you post your edits so I can check what you did please. Also remember that to log out of MediaWiki, you need to log out of the site first and then MediaWiki; so it definitely works, it's just a bit weirdly done that's all.
DawnsWebDesigns
12-14-2008, 12:11 PM
Wait a sec, you're trying to log into Wikipedia? You do realise that won't work, unless you meant MediaWiki. Could you post your edits so I can check what you did please. Also remember that to log out of MediaWiki, you need to log out of the site first and then MediaWiki; so it definitely works, it's just a bit weirdly done that's all.
No. I logged out of my site. It would not log me out of the wiki...not from my site or the wiki site. Trying to logout from the wiki site got me redirected back to my site. And when I revisited the wiki site I was still logged in.
Then I logged my kid into my site. If this mod works like it should then once she logs-in to my site she should be automatically signed into the wiki too. But when I went to check it (using her account) I was still showing up as logged in...not her. If I can't log myself out of both places...& I can't...then she can't be logged in to the wiki.
I'm not sure who you are & I do appreciate you trying but I'm done with this one. I can't post my edits because when I uninstalled the mod I also uninstalled the wiki. I didn't really consider a wiki in the first place & only tried it cuz of this mod. After installing yet another software I can assure you I read everything at the top of this thread & everything within & tried various edits before finally giving up & uninstalling/deleting both. Now I'm done. But thank you anyway. :)
BRotondi
12-14-2008, 04:38 PM
Another Idea: Install XAMPP and there your vB and wiki... so you can try whatever you want on your personal PC, ... or install a 2nd wiki/vb on your Server as debugging platform. Of course you should never change your primary site, if you're not 100% sure, what you're doing or if it will work...
@Varsh (https://vborg.vbsupport.ru/member.php?u=156369): Can you please give a linkt to where you downloaded the 3.8beta? I did not fount it even in the member area...
Bruno
Varsh
12-14-2008, 05:08 PM
Did I say b1 earlier? If I did sorry, I meant RC1. That's in the Members Area where you normally download the unstable and stable versions.
BRotondi
12-14-2008, 06:17 PM
No, my fault, I called it Beta... and now found also the download under "further downloads" -> Pulldown up. Thanks!
Bruno
Skyrider
12-15-2008, 10:45 AM
Doesn't seem to be working for me. It logs you in on the forums, redirects back to the wiki and is not even logged in on there.
BRotondi
12-15-2008, 06:50 PM
Versions?
Lionel
12-18-2008, 11:07 PM
For those who can't logout from the wiki, make sure you add that line LocalSettings.php as instructed
$wgGroupPermissions['*']['createaccount'] = false;
I had this problem:
- Login / Logut worked fine
- Users appeared correctly in the "Who is online list"
- When a user edited an wiki article it was edited by "#IP Address" and not by the user
- The user didn't appear as loged in on the wiki
Then I applied to this:
//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
and it's fixed.
Thanks for that Integration!
FunkyDiver
12-19-2008, 03:37 PM
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
- edited User.php as stated in Post #143
Got mine working using that... VB 3.7.4 PL1 and MW 1.13.3
kapoor22
12-22-2008, 01:30 AM
Any idea if 'MediaWiki/vBulletin Single Sign-On' would work with vBulletin 3.6.8? Your input is very much appreciated.
Dexter_kcd
12-22-2008, 05:47 AM
Any idea if 'MediaWiki/vBulletin Single Sign-On' would work with vBulletin 3.6.8? Your input is very much appreciated.
The specs above say it was tested on 3.6.9, and I don't think there was anything significantly changed in the user authorization between 3.6.8 and 3.6.9. I would speculate that it would work for you.
Dexter...
Skyrider
12-22-2008, 06:56 AM
Versions?
Using latest MediaWiki as I downloaded it a few days ago, and using VB 3.7.4
Rev O
12-22-2008, 02:39 PM
Does this Mod only work on a clean install of Mediawiki, or can it be used with a Mediawiki that already has registered users made prior to the 'single sign on' integration?
Thanks for your input.
Varsh
12-22-2008, 06:21 PM
MediaWiki would still work but the problem is that there would be conflictions with the user databases.
Rev O
12-22-2008, 07:49 PM
Darn.
What if all of the usernames on the wiki were changed before integration, so that they weren't the same as forum usernames, would there still be a conflict?
Thanks for your help btw.
Digital Jedi
12-23-2008, 06:33 AM
Ok a new bug popped up recently:
Users can no longer edit ANYTHING. I get the following error:
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.
If I remove the plugin everything works fine.
No changes have been made by me so I'm really scratching my head on this one.
Only thing I can think of is changes in latest vbulletin.
I'm getting the same error message now as GoodOmens did, but I recently just redid the edits to my class_core.php file because of a sign-in problem we were having. I fixed the sign-in problem, but not sure what the posting error would be.
Jaxel
12-23-2008, 04:14 PM
User mangling token has been fixed in a previous post... in fact, you dont need to make thos edits to class_core.php.
https://vborg.vbsupport.ru/showpost.php?p=1673281&postcount=143
BRotondi
12-23-2008, 08:42 PM
For those who can't logout from the wiki, make sure you add that line LocalSettings.php as instructed
$wgGroupPermissions['*']['createaccount'] = false;
no effect... Still not working. Bruno
Digital Jedi
12-24-2008, 12:09 AM
Hrm, I must have missed that. That seems to work.
Digital Jedi
12-24-2008, 12:25 AM
I have to logout two times, either twice from the wiki or once from the forum and again from the wiki to be truly logged out from the wiki. Not a big deal for my forum, but good to know in any case.
For those who can't logout from the wiki, make sure you add that line LocalSettings.php as instructed
$wgGroupPermissions['*']['createaccount'] = false;
The instructions say that's to prevent users from registering on the wiki instead of the forum.
kapoor22
12-25-2008, 05:13 AM
The specs above say it was tested on 3.6.9, and I don't think there was anything significantly changed in the user authorization between 3.6.8 and 3.6.9. I would speculate that it would work for you.
Dexter...
Thanks for your input Dexter. I gathered the courage to install the wiki with this SSO hack.
NoeJeko,
Thank for the excellent plug-in. Here is my story -
I was able to install and make it to work on vb v3.6.8 with MediaWiki v1.12.0, however, the following 4 lines of errror message continues to show up on all th pages of MediaWiki -
__________________________________________
Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in $wikihome/LocalSettings.php on line 26
Notice: Constant CWD already defined in $forumhome/global.php on line 16
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTP_REFERER in $forumhome/includes/class_core.php on line 1621
__________________________________________
For the sake of privacy I have modified the absolute paths with the env varibales $forumhome and $wikihome
__________________________________________
The cookie appear to be recognized after the forum user has logged in the forum. But the user is not able to directly login from MediaWiki. If you would like, I could PM you the link to the wiki on the site. You help is very much appreciated.
Thanks again!
kapoor22
12-25-2008, 02:20 PM
Thanks for your input Dexter. I gathered the courage to install the wiki with this SSO hack.
NoeJeko,
Thank for the excellent plug-in. Here is my story -
I was able to install and make it to work on vb v3.6.8 with MediaWiki v1.12.0, however, the following 4 lines of errror message continues to show up on all th pages of MediaWiki -
__________________________________________
Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in $wikihome/LocalSettings.php on line 26
Notice: Constant CWD already defined in $forumhome/global.php on line 16
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTPS in $forumhome/includes/class_core.php on line 1594
Notice: Undefined index: HTTP_REFERER in $forumhome/includes/class_core.php on line 1621
__________________________________________
For the sake of privacy I have modified the absolute paths with the env varibales $forumhome and $wikihome
__________________________________________
The cookie appear to be recognized after the forum user has logged in the forum. But the user is not able to directly login from MediaWiki. If you would like, I could PM you the link to the wiki on the site. You help is very much appreciated.
Thanks again!
I modified error_reporting in php.ini file to get ride of the error notifications showing up on the wiki page -
error_reporting = E_ALL & ~E_NOTICE
But the wiki login redirection back to wiki page is still not working. I could not find 'create account' link which will take the new user to vBulletin forum registration page.
Your input is very much appreciated.
Thanks!
kapoor22
12-25-2008, 02:21 PM
BTW, I initially tried this plug-in with MediaWiki v1.13.3 but that attempt was not successful. The I tried with Mediawiki v1.12.0 and it works like a charm, other than the 'log-in redirection' issue and 'create account' redirection to forum registration page. Still trying to resolve these issues in test environment.
.
kapoor22
12-25-2008, 05:26 PM
Here is one possible solution which seem to work for me to fix the two issues I reported earlier-
Open $wikihome/includes/templates/Userlogin.php and hard code the complete URL of the website as shown below for the SSO logon and for lost password page. Somehow [$bburl] is not providing the complete URL, not sure why.
__________________________________________________ ________________
<form name="userlogin" method="post" action="http://$COMPLETE_WEBSITE_URL/forum/login.php?url=/wiki/index.php/Main_Page">
<input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="<?php $this->msg('login') ?>" />
<br /><a href="http://$COMPLETE_WEBSITE_URL/forum/login.php?do=lostpw">Forgot password?</a>
__________________________________________________ ________________
That's it. Thanks NoeJeko, for an excellent plug-in. This will make my 35000 users happy.
.
NoeJeko
12-25-2008, 09:43 PM
Hey guys - sorry for not replying sooner - I've been in Germany and for some reason I was not receiving notifications from this thread. I'll do my best to research these issues and provide a fix.
SARA75
12-25-2008, 09:58 PM
- Install media Wiki
- Edit the Localsettings file with
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;
- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
In wiki/includes/User.php find:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );
Following these steps but changing
$wgGroupPermissions['*']['createaccount'] = true;
to
$wgGroupPermissions['*']['createaccount'] = false;
in wiki/includes/DefaultSettings.php (I don't know why, but on LocalSettings doesn't works for me)
I get it finally works correctly :D
MediaWiki 1.13.3
VB 3.7.4PL1
Thanks :up:
kapoor22
12-26-2008, 09:15 PM
Hey guys - sorry for not replying sooner - I've been in Germany and for some reason I was not receiving notifications from this thread. I'll do my best to research these issues and provide a fix.
Thanks NoeJeko, everything is now working fine with vBulletin v3.6.8. With the help of your plug-in we were able to promote Wiki into production environment today. Thanks for the excellent work. I have nominated this plug-in for MOTM.
Also, BuddyPress released their latest version on 15th December. Apparently, that's the next big thing for social-networking software. Any chance you'd be interested to develop similar single sign on plug-in for vBulletin-BuddyPress?
Thanks again!
.
nwingate
12-28-2008, 03:08 AM
Oops, wrong thread. Sorry.
CompiledMonkey
12-29-2008, 07:01 PM
Has anyone gotten this to wrap inside of vBadvanced?
tylneyt
12-30-2008, 09:51 AM
Failed to install / work
vBulletin 3.7.3
MediaWiki 1.13.3
array errors in the vba_cmps_include_template.php
seems to be a major drama with the line
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
as when this is commented out the wiki shows up just can't log in... (but at least ya can see the wiki!)
but yeah I'm no coder so I dunno why re following all the docs (and making sure the edits were correct etc) it's not working
Digital Jedi
12-30-2008, 04:16 PM
That error is a vBAdvanced error. Are you using vBa for anything to do with the Wiki?
tylneyt
12-30-2008, 09:32 PM
hmm had it as an iframe in an ajax tab that was setup as a vba page.
I can remove that and try again today some time.
Q: Even though I tried hitting the /wiki url direct was still throwing an error would it do that regardless of trying to view it via a vba setup or not?
(What I mean is that if I view via vba through the forums I'd expect an error, but hitting the wiki url directly should bipass any vba and show the wiki directly how ever that is still throwing an error)
Digital Jedi
12-30-2008, 10:17 PM
I would think you shouldn't be getting that error if your not looking at it through vBa. Sounds like vBa is conflicting another way. Your wiki is not in your forum root, right? It's outside? I have vBa, but I chose to put the Wiki in the forum root and I haven't had any conflicts like that. I think your problem might be the directory.
tylneyt
12-31-2008, 08:37 AM
vBulletin 3.7.3
MediaWiki 1.13.3
- I upgraded vba to 3.1.0
- Then moved directory into /forums/ (so it's now accessible via /forums/wiki ) and edited the LocalSettings.php to reflect this change.
I'm still getting the following error
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/.scorn/PRIVATEDIRS/forums/includes/vba_cmps_include_template.php on line 19
same error for lines 42, 50 , 621 (and Argument #2 on 621)
and
Warning: Invalid argument supplied for foreach() in /includes/init.php(293) : eval()'d code on line 122
the .scorn is a hidden folder I assume as it's never been needed anywhere re linking back to the hosting. the PRIVATEDIRS I've typed for security reasons here.
I have also tried the following suggestions re the version of mediawiki
Originally Posted by obsidian View Post
- Install media Wiki
- Edit the Localsettings file with
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;
- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
Originally Posted by Jaxel View Post
In wiki/includes/User.php find:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+\\' );
Replace with:
PHP Code:
define( 'EDIT_TOKEN_SUFFIX', '+#+' );
Following these steps but changing
$wgGroupPermissions['*']['createaccount'] = true;
to
$wgGroupPermissions['*']['createaccount'] = false;
in wiki/includes/DefaultSettings.php (I don't know why, but on LocalSettings doesn't works for me)
I get it finally works correctly
MediaWiki 1.13.3
VB 3.7.4PL1
If I disable the product for vba all works well and the logins are shared fine, but turn it back on and it won't even display the wiki.
pete_brady
12-31-2008, 12:13 PM
is there a (simple) migration path from nuhit's vbWiki Pro to this?
currently running vB 3.8RC2 with mediawiki 1.3
Dexter_kcd
01-04-2009, 05:28 AM
One more thing to throw onto your plate....
I was speaking with the server administrator at my webhost, and he mentioned that this mod seems to be generating a PHP error every time a user access a page on the wiki:
Constant CWD already defined in /home/httpd/vhosts/**sitename**.com/httpdocs/forum/global.php on line 16
PHP Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in home/httpd/vhosts/**sitename**.com/httpdocs/forum/wiki/LocalSettings.php on line 28
Apparently the server PHP log is filled with thousands of those. He believes it has something to do with how the VB_SYSTEM_PATH constant is defined.
Dexter...
GriZzm0
01-08-2009, 02:59 PM
Has anyone tried it with vB 3.8?
Edit: Looks like it's working the same under 3.8 (the same as in minor errors ;)).
Varsh
01-08-2009, 05:44 PM
It works perfectly with vB3.8:
Well I tried installing this and looked throughout the thread. I'm bemused on how you guys have managed to get it to work. I've installed it exactly as the instructions asked and yet, despite changing the forum path in localsettings.php, it seems that it's trying to find the file from the wiki path. This is what's happening (http://wiki.nexusrealms.co.uk/).
Files uploaded
localsettings.php set to:
define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
Wiki's user.php set to '+#+'
plugin installed and URL set to above link
So what exactly have I done wrong? I must've missed something.
vBulletin 3.8 RC1 and the latest MediaWiki 1.13.2.
edit: I changed require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" ); and it worked fine, hope this doesn't mess anything up though.
NoeJeko
01-09-2009, 04:32 PM
All,
I'll be updating my site to MW 1.13 and vB 3.8 near the end of January. At this time I'll have this plugin updated to work with vB 3.6.9-3.8.0 and MW 1.12-1.13. Thanks for all your patience and thanks to the users that have posted workarounds. I'll be sure to credit where it's due if I use your suggestions.
Also, to the vBa users - this is not designed to be wrapped within vB Advanced in any form. If you get it to work that's great, but I cannot support vB Advanced issues because it's not designed to work that way. Thanks for understanding.
tylneyt
01-09-2009, 10:42 PM
Hey Noe
That's kewl re VBA but I'm not trying to wrap it per say, I just want to share the logins, the wiki it self I can store / display where ever via a link to a fully fresh page nps.
The problem I was having is that due to VBA being installed as a product shut the hack down completely regardless of if it was being used as a vba page etc
So long as the hack `ignores' vba and runs so we can put the wiki up `outside' the vb forums (ie as a full page of content not embedded in the forums) that'd be great.
As it stands just having vba installed stops the hack from working period.
Varsh
01-09-2009, 11:01 PM
That's not true at all, my site has always been using vBA. Yes I have the wiki set to a different URL to the website, but having vBA installed does not stop this hack from working, if it's working for me but doing what I showed in my previous post, then it'll work for anyone. It's very easy to do and requires only 2 MediaWiki files to be edited, that's it.
You shouldn't need to embed the Wiki within vBA, although I can see the need, it would mean that queries would go through the roof.
Shawn385
01-10-2009, 04:48 AM
Hey everyone ! So I had a small question...I installed everything as mentioned. All paths are correct, all files edited etc. When I go to the wiki and click login, I input my VB user name and password, it takes me to the vBulletin "Login Successfull" page and then returns me to the WIKI main page...but on that page it tells me I am NOT logged in.
Any ideas ? Thanks so much !
Digital Jedi
01-10-2009, 08:38 AM
Hey everyone ! So I had a small question...I installed everything as mentioned. All paths are correct, all files edited etc. When I go to the wiki and click login, I input my VB user name and password, it takes me to the vBulletin "Login Successfull" page and then returns me to the WIKI main page...but on that page it tells me I am NOT logged in.
Any ideas ? Thanks so much !
This seemed to have done the trick for me.
1673281
oninuva
01-10-2009, 10:10 PM
I changed require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" ); and it worked fine, hope this doesn't mess anything up though.
Fatal error: Call to a member function getID() on a non-object in /home/sitename/public_html/wiki/includes/AuthPlugin_vBSSO.php on line 315
One of my users are getting this error. It works for myself but it does not work for them, any help?
metalguy639
01-11-2009, 12:41 AM
That's not true at all, my site has always been using vBA. Yes I have the wiki set to a different URL to the website, but having vBA installed does not stop this hack from working, if it's working for me but doing what I showed in my previous post, then it'll work for anyone. It's very easy to do and requires only 2 MediaWiki files to be edited, that's it.
You shouldn't need to embed the Wiki within vBA, although I can see the need, it would mean that queries would go through the roof.
Great! then maybe you can enlighten me on why I have the same errors as the other guy? I'm using vBa CMPS 3.10 & vB 3.8. I've done all that this thread has said to do and I get these errors...
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 96
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: include(./includes/config.php) [function.include]: failed to open stream: No such file or directory in [path]/global.php(609) : eval()'d code on line 1196
Warning: include() [function.include]: Failed opening './includes/config.php' for inclusion (include_path='[path]/metalwiki:[path]/metalwiki/includes:[path]/metalwiki/languages:.:/usr/local/php5/lib/php') in [path]/global.php(609) : eval()'d code on line 1196
Warning: require_once(./donationsystem/functions/donation.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(609) : eval()'d code on line 1197
Fatal error: require_once() [function.require]: Failed opening required './donationsystem/functions/donation.php' (include_path='/home/content/M/e/t/MetalPrincetmlss6/h/metalwiki:/home/content/M/e/t/MetalPrincess6/html/metalwiki/includes:/home/content/M/e/t/MetalPrincess6/html/metalwiki/languages:.:/usr/local/php5/lib/php') in /home/content/M/e/t/MetalPrincess6/html/global.php(609) : eval()'d code on line 1197
Seems like I most likely will need another answer to having articles on my site. I need something that works for one adn something that members can put their own articles up on.
metalguy639
01-11-2009, 01:28 AM
nvm Varsh fixed it myself. My problem was a two part problem. I'm using php5 on my server which made everything kinda act up a bit. I was also using the Donation hack called AWCoding- Donation System LITE which was causing a problem with this hack in some way.
I will put here how I fixed it.
Step One:
If you are using php5 you will need to do the following in your vba_cmps_include_template.php & vba_cmps_include_top.php files. You need to change some code to make vBAdvanced CMPS work with php5. I found a how-to here: https://vborg.vbsupport.ru/showthread.php?t=125302
Step Two:
Disabled the AWCoding- Donation System LITE hack in my admincp.
Now all works.
Shawn385
01-11-2009, 08:22 AM
Strange, I made the neccessary adjustments as mentioned in that post eg :
//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';
The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.
Above is the snipppet from the AuthPlugin_vBSSO.php
EDIT :
So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...
oninuva
01-11-2009, 10:05 PM
So how do I fix this?
Fatal error: Call to a member function getID() on a non-object in /home/sitename/public_html/wiki/includes/AuthPlugin_vBSSO.php on line 315
Varsh
01-11-2009, 10:51 PM
Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.
Digital Jedi
01-11-2009, 11:57 PM
Strange, I made the neccessary adjustments as mentioned in that post eg :
//$wgHooks['UserLogoutComplete'][] = 'QISSingleSignOnUserLogout';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoginForm'][] = 'vBLoginForm';
$wgHooks['PersonalUrls'][] = 'set_personal_urls';
The strangest thing is...I did login and Wiki did show my name as being logged in, and then today when I opened it back up I couldn't log back in again, neiother can anyone else.
Above is the snipppet from the AuthPlugin_vBSSO.php
EDIT :
So I downgraded to MW 1.12.3 reinstalled this plugin...still getting the same thing, I login just fine, but WIKI doesn't show me as logged in. And I changed UserLoadFromSession back to AutoAuthenticate...
I'll post this again, but this is what fixed this in my case. Note that I did not "downgrade" as you did.
https://vborg.vbsupport.ru/showthread.php?p=1673281#post1673281
tylneyt
01-12-2009, 07:52 AM
metalguy639 you are my hero
Thank you
oninuva
01-12-2009, 05:45 PM
Did you take a look at how I did it all? If I recall I got that till I changed a few settings suggested before. My fix is a few posts back.
Yes I did try doing those changes, still have error, I tried replacing a file with the file the posted on page 8 saying that it fixed it giving him a new AuthPlugin file.
After I replaced the file with the fix on post 8, he received this error;
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:(SQL query hidden)from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'Sourc[e]x' for key 2 (localhost)".
I would look at the databases but I dunno which one it is referring to. He only gets this error when he tries to login, so he can browse the wiki if he logs out.
petchat
01-12-2009, 06:53 PM
https://vborg.vbsupport.ru/showthread.php?p=1673281#post1673281
Working great on 3.8 using this method!
Cheers DJ :)
metalguy639
01-13-2009, 12:40 AM
metalguy639 you are my hero
Thank you
no prob man.
raisun
01-13-2009, 09:51 PM
I've got this mostly working on VB 3.7.3 / MW 13.3 as long as I disable another pluggin that I use. When I turn the other plugin on (GARS), I cannot get to the wiki and get this error:
Warning: require_once(./geek/gars/includes/gars_ignition.php) [function.require-once]: failed to open stream: No such file or directory in [path]/global.php(360) : eval()'d code on line 41
Fatal error: require_once() [function.require]: Failed opening required './geek/gars/includes/gars_ignition.php' (include_path='/home/mouseinf/public_html/info/wiki:/home/mouseinf/public_html/info/wiki/includes:/home/mouseinf/public_html/info/wiki/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/mouseinf/public_html/forums/global.php(360) : eval()'d code on line 41
From what I can tell, it looks like its looking in the wiki's include path for this file. So, I tried adding $VB_SYSTEM_PATH to the path in LocalSettings.php, but that doesn't seem to fix it. Any thoughts?
Thanks a lot!!
Varsh
01-14-2009, 01:26 AM
Change require_once( "$IP/includes/AuthPlugin_vBSSO.php" ); to require_once( "/home/mouseinf/public_html/forums/includes/AuthPlugin_vBSSO.php" ); in your LocalSettings.php file.
raisun
01-14-2009, 01:44 AM
actually, AuthPlugin_cVBSSO is located at /home/mouseinf/public_html/info/wiki/includes/AuthPlugin_vBSSO.php which is how i have it called in LocalSettings.php
Currently I have VB and MW installed in different subdirectories.
EDIT - Update:
I found a hotfix for the other product. Apparently there are several other products that cause the same issue.
Thanks for your help!
Varsh
01-14-2009, 10:27 AM
I didn't know exactly where you had it but you just needed to change it to exactly what yours was supposed to be. :p
It seems that there's a lot of plugins conflicting with this mod for some reason, how weird.
emperatour
01-16-2009, 08:04 AM
I just got everything running with Vb 3.72 and MW 1.13.
Steps I followed:
- Install media Wiki
- Edit the Localsettings file with
define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;
- Set the VB path in the localsettings file and then uploaded it.
- Edited the AuthPlugin_vBSSO.php file from:
$wgHooks[AutoAuthenticate ][] = 'vBSSOAutoAuth';
to
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';
- uploaded the files in the upload directory
- edited User.php as stated in Post #143
After that I just went to the Wiki page and refreshed and it showed me logged in. I did not make any of the class_core.php edits.
Great Hack... just takes a bit of patience to work through it due to all the new versions.
Running successfully with vBulletin 3.8.0 and MediaWiki 1.13.3.:)
Thanks for instruction,
pete_brady
01-16-2009, 08:54 AM
anyone got any advice on template integration?
dutchbb
01-17-2009, 08:10 AM
Installed it but it doesn't 'save' the login on the wiki side, what could be wrong?
dutchbb
01-17-2009, 01:38 PM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
Omg, can the coder PLEASE add this to the first post, I searched for hours trying to solve this issue, only to found this solution somewhere on page 7 in this thread.
Thanks for the hack, but please update it, it's just to important not to!!
KrisP
01-18-2009, 01:15 AM
Running successfully with vBulletin 3.8.0 and MediaWiki 1.13.3.:)
Thanks for instruction,
Installing this is a nightmare. Tried above with 3.7.4 PL1 + 3.13.3 and dosent work.
Vitaly
01-18-2009, 10:44 PM
How to eliminate php notice "Constant CWD already defined in ..../global.php" ?
optrex
01-20-2009, 09:13 AM
From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So just follow all the instruction and at all, just edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.
I have just installed mediawiki 1.13.3 with vb 3.8 and it seems to be running well so far. The only thing I have changed from the original instructions is this (above).
Thanks for a great hack :D
pete_brady
01-20-2009, 05:34 PM
anyone got any advice on template integration?
https://vborg.vbsupport.ru/showthread.php?t=193244
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.