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)

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....&postcount=143

BRotondi 12-23-2008 08:42 PM

Quote:

Originally Posted by Lionel (Post 1688309)
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.

Quote:

Originally Posted by Lionel (Post 1688309)
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

Quote:

Originally Posted by Dexter_kcd (Post 1690874)
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

Quote:

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

Quote:

Originally Posted by obsidian (Post 1673833)
- Install media Wiki
- Edit the Localsettings file with

define( VB_SYSTEM_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
[S]$wgGroupPermissions['*']['createaccount'] = false;[/S]

- 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

Quote:

Originally Posted by Jaxel (Post 1673281)
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 :D
MediaWiki 1.13.3
VB 3.7.4PL1

Thanks :up:


All times are GMT. The time now is 04:50 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01531 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

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

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