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)

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

Quote:

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

Quote:

Originally Posted by shikareez (Post 1640896)
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

Quote:

Originally Posted by emperatour (Post 1714384)
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

Quote:

Originally Posted by shikareez (Post 1640896)
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

Quote:

Originally Posted by pete_brady (Post 1714414)
anyone got any advice on template integration?

https://vborg.vbsupport.ru/showthread.php?t=193244

MarWien 01-21-2009 03:25 PM

It does'nt work for me. The redirect from MediaWiki to the vBulletin site with the authentication form is working. After the authentication the site is redirecting me back to the MediaWiki but i'm not logged in. I've tried it with vb3.7.4 / vb3.8.0 + MW1.13.3.
Can anyone help me with this issue? I've already read this thread and tried the hints of the users but i can't solve this issue.

optrex 01-22-2009 10:29 PM

Sounds to me like you need to do the following as I had the same issue

From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Pavlus 01-25-2009 02:41 PM

It doesn`t work for 3.7.3 for newest mediawiki even if i change authoanthenticate hook and other stuff.

MarWien 01-26-2009 07:52 PM

Quote:

Originally Posted by optrex (Post 1721660)
Sounds to me like you need to do the following as I had the same issue

From MW 1.13+ the "AutoAuthenticate" Hook is renamed to "UserLoadFromSession". So edit the hook name to "UserLoadFromSession" at near the end of AuthPlugin_vBSSO.php.

Thx fo your hint, but i already have done this. :(

ndahiya 01-26-2009 11:51 PM

I already have vbWiki Pro running, but as the product is no longer supported, suspect will have to move away from it soon. the best that runs with is vb3.8 and Mediawiki 1.11

How does installing this product (replacing vbWiki pro) change things ? TIA.

ccunnin71 01-27-2009 08:38 AM

I just set everything up with MediaWiki 1.13.3 and a copy of just updated 3.8.0. Using pages 14 - 16 of this thread have got me running with working integration. I am causing my own grief adding extensions to MediaWiki.

A good set of notes might not be a bad idea, but NeoJeko must be close on updates.

proxx 01-27-2009 11:44 PM

Hi guys,

I just installed the latest mediawiki and this hack.

When I go to /wiki/ I see a blank page with error 'Page not found'

could someone please point me in the right direction. Where did I mess up?

proxx 01-28-2009 12:04 AM

I figured it out. The problem was that I have VBSEO installed with .htaccess

Could someone tell me what can I add to the .htaccess so the rules don't apply to /wiki/ folder?

RewriteEngine On

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

proxx 01-28-2009 06:00 AM

1) Ok, I found a solution by adding this to vbseo's .htaccess
RewriteRule ^wiki/.*$ - [PT]
seems to work.

2) But now I have different problems. It seems that it doesn't recognize me as logged on.

I have 3.7.4L1 and 1.13.3

I followed all the recommendations in this thread.

The only thing is my site like this:

subdomain.domain.com < forum
subdomain.domain.com/wiki/ < wiki

is the problem because I have a subdomain?

In vbulletin, I made sure that my cookie domain is '.domain.com'

3) My wiki redirects to /wiki/index.php/Main_Page , although i have selected "short urls" in options.

I'd appreciate any help

Pavlus 01-28-2009 04:42 PM

God damned, i really get angry now.

I updated vBulletin to 3.8.1 ver, and still having problem with wiki 1.13.3.

I edited all files including user.php, i have changed file path from relative, and it still doesn`t log into wiki. Maybe there wiki database should by in myisam - the same as vbulletin?

It should work, as you posted before with 3.8.0 version...

Digital Jedi 01-30-2009 12:20 PM

Quote:

Originally Posted by Pavlus (Post 1724286)
It doesn`t work for 3.7.3 for newest mediawiki even if i change authoanthenticate hook and other stuff.

Yes it does, as I have both. But you have to search the most recent posts of this thread to see what was done to make it work.

katriders 01-30-2009 03:51 PM

I upgraded my VB install to 3.8.1 last night, and now I get the following error message when trying to load the wiki
Code:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in *Edited*/public_html/wiki/includes/AutoLoader.php on line 10
I went back and verified that all my other settings were correct per the install instructions... it was up and running great before the upgrade of vBulletin.

Any ideas on where I can look to track down the problem? I'm running mediaWiki version 1.13.3.

Pavlus 01-30-2009 05:51 PM

Quote:

Originally Posted by Digital Jedi (Post 1729070)
Yes it does, as I have both. But you have to search the most recent posts of this thread to see what was done to make it work.

I have done everything i read any post from this topic two times. Is there any possibility that in php.ini some function is disabled to transfer session information from sites? Maybe this is the reason that its not working?

katriders 01-30-2009 07:33 PM

Disregard my message. I just found out that my host changed how they do the order of precedence when loading a page.... and php5 is lower on the list than html.

Doh!

ericdesmontagne 02-09-2009 06:18 AM

Hello :) i have planned to replace deprecated vbwiki pro by this mod... but...
is it compatible with vb 3.8 ?
is it possible to have 2 mediawiki installed and linked to the vb forum as actually in my configuration ?

Thanks for your help.:up:

Wakey 02-09-2009 10:55 AM

I use this Facebook Connect mod.

Anyone else use it and know how to integrate the facebook connect login with this hack

OneShot 02-09-2009 01:47 PM

Quote:

Originally Posted by ericdesmontagne (Post 1738447)
Hello :) i have planned to replace deprecated vbwiki pro by this mod... but...
is it compatible with vb 3.8 ?
is it possible to have 2 mediawiki installed and linked to the vb forum as actually in my configuration ?

Thanks for your help.:up:

That would interest me as well because I'm in the same predicament (i.e. I have two wikis running with the same vB Forum).

ericdesmontagne 02-12-2009 08:28 AM

I have a white page with 3.8... anybody have the solution for this ?

ericdesmontagne 02-12-2009 06:56 PM

It is probably due to my version of WIKI (1.13.4) and vb (3.8)

ericdesmontagne 02-12-2009 07:00 PM

Quote:

Originally Posted by ndahiya (Post 1725719)
I already have vbWiki Pro running, but as the product is no longer supported, suspect will have to move away from it soon. the best that runs with is vb3.8 and Mediawiki 1.11

How does installing this product (replacing vbWiki pro) change things ? TIA.

I think no...
I have uninstalled vbwiki pro, and trying to install this mod... but still not working as you can read hereabove...

ericdesmontagne 02-12-2009 07:24 PM

Quote:

Originally Posted by SARA75 (Post 1693661)
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:

It did not work with 1.13.4 wiki and 3.8 vb :( i'm trying something else now...

carrlos 02-13-2009 04:49 PM

Confirmed to work with vB 3.8.1 and MediaWiki 1.13.4. Only two fixes needed:

1. From the zip file, open AuthPlugin_vBSSO.php. Near the end, replace "AutoAuthenticate" with "UserLoadFromSession".
Props to shikareez!

2. I still had to make the class_core.php edit.

Working! :D

Jaxel 02-16-2009 03:45 PM

Getting this to work with MW 1.13.4 is EASY... You DONT need to edit class_core.php...

1. Install Media Wiki, following the standard install instructions...

2. Install this mod, following the standard instructions...

3. Open AuthPlugin_vBSSO.php. FIND: "AutoAuthenticate" and replace with "UserLoadFromSession".

4. Open wiki/includes/User.php FIND:
PHP Code:

define'EDIT_TOKEN_SUFFIX''+\\' ); 

Replace with:
PHP Code:

define'EDIT_TOKEN_SUFFIX''+#+' ); 

DONE. EASY. Step 4 fixes missing token problems, as well as login/logout issues that people keep claiming... If they simply followed step 4, instead of updating class_core.php, they wouldnt have these problems. I wish NekoJoe would upload this mod to explain these fixes.

http://www.8wayrun.com/wiki/Special:Version

carrlos 02-16-2009 06:22 PM

I did the User.php thing and still couldn't edit anything. So, I did the class_core.php and everything worked fine.

How do you explain that?

Jaxel 02-16-2009 07:39 PM

Quote:

Originally Posted by carrlos (Post 1746153)
I did the User.php thing and still couldn't edit anything. So, I did the class_core.php and everything worked fine.

How do you explain that?

You forgot to upload your changed User.php.

carrlos 02-17-2009 03:22 AM

Quote:

Originally Posted by Jaxel (Post 1746215)
You forgot to upload your changed User.php.

I uploaded it. But I tell you what.......I'll try again. :rolleyes:

squishi 02-22-2009 08:24 PM

It's really late here, and 19 pages is a lot to read. So...
I installed my wiki in a separate database than vbulletin.

Anybody have any pointers on what to modify to make this work with two separate databases?

I am working myself through the pages of this thread...

Post #42 solved the redirect problem that occured when you try to log in.

Unfortunately, after clicking the login button, the user gets redirected to the wiki and is still not logged in.

Also, the other wiki bridge modification is very heavy on the database, because it queries the user details on every page load.
Is this the case with this mod, too?

Radek125 02-23-2009 04:50 AM

Quote:

Originally Posted by oninuva (Post 1709957)
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;

Quote:

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.

I am having this exact same issue. My users are randomly getting this error, including my main admin account, all others work fine. I've tried deleting the user's manualy in the wiki db, and it APPEARS to work, but only works the very first time you load the wiki, clicking on any other page after will make the error pop up again.

squishi 02-23-2009 07:15 AM

will this only work with monobook style?
I am using the modern style, and am not able to log in.

squishi 02-23-2009 08:08 AM

I got it working now. Somehow I did not follow the readme.txt.

Now how would I set up the user group permissions?
I want to allow registered forum users to edit the wiki. Visitors who are not logged in should not be able to edit, though.


All times are GMT. The time now is 11:38 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.01726 seconds
  • Memory Usage 1,842KB
  • 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
  • (2)bbcode_php_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