vb.org Archive

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

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.
  1. Files uploaded
  2. localsettings.php set to:
    define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
    require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
  3. Wiki's user.php set to '+#+'
  4. 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

Quote:

Originally Posted by rlfs (Post 1679293)
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.
Quote:

Originally Posted by BRotondi (Post 1680371)
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, 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 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:
Code:

<!-- 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 bad: "Login error: Incorrect password entered. Please try again."
2. Login via vB o.k.
3. Wiki-Mainpage o.k. (logged in)
4. Wiki-Log out 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

Quote:

Originally Posted by Varsh (Post 1680865)
Just sign up at my site here 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 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 (Top right) or mine (Logout through Sidebar).
english 1: .../login.php?do=logout
english 2: .../Special:UserLogout
german: .../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

Quote:

Originally Posted by BRotondi (Post 1683327)
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 (Top right) or mine (Logout through Sidebar).
english: .../login.php?do=logout
german: .../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:
Quote:

Originally Posted by Varsh (Post 1680303)
  1. Files uploaded
  2. localsettings.php set to:
    define( VB_SYSTEM_PATH, '/home/varsh/public_html/forums' );
    require_once( "/home/varsh/public_html/forums/includes/AuthPlugin_vBSSO.php" );
  3. Wiki's user.php set to '+#+'
  4. 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

Quote:

Originally Posted by Varsh (Post 1684061)
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

Quote:

Originally Posted by rob01 (Post 1684969)
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

Quote:

Originally Posted by DawnsWebDesigns (Post 1685060)
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

Quote:

Originally Posted by Varsh (Post 1685158)
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: 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;

Pip 12-19-2008 12:24 PM

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:
Quote:

Originally Posted by trackpedia (Post 1683322)
//$wgHooks['AutoAuthenticate'][] = 'vBSSOAutoAuth';
$wgHooks['UserLoadFromSession'][] = 'vBSSOAutoAuth';

and it's fixed.

Thanks for that Integration!

FunkyDiver 12-19-2008 03:37 PM

Quote:

Originally Posted by obsidian (Post 1673833)
- 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

Quote:

Originally Posted by kapoor22 (Post 1690769)
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

Quote:

Originally Posted by BRotondi (Post 1686070)
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

Quote:

Originally Posted by GoodOmens (Post 1668697)
Ok a new bug popped up recently:

Users can no longer edit ANYTHING. I get the following error:

Quote:

Your edit has been rejected because your client mangled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a buggy web-based anonymous proxy service.
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.


All times are GMT. The time now is 06:03 PM.

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

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

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete