vb.org Archive

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

Beor 01-24-2010 02:07 PM

Hello

I have vb4 and use the modifications of post 115, on mediawiki access to enter login and is ok, appears the vb page with vblogin ok, but on the wiki not logged, i go to the forum and logged ok, but returns to wiki and not logged in.

What is the problem?

Thx

Beor 01-24-2010 02:52 PM

Hello

i resolved this on options vbulletin-----http & cookies-----path to save cookies (i have forum, i changed to / and works fine)

Thx

SuperGLS 01-25-2010 02:21 AM

Quote:

Originally Posted by BRotondi (Post 1943921)
Confirmed, GREAT!

Add the red code after the existing black in "wiki\includes\AuthPlugin_vBSSO.php"
Code:

# INITIALIZE VBULLETIN SUBSYSTEM
if ( !defined( 'CWD' ) )
    define( 'CWD', ( VB_SYSTEM_PATH ) );

$oldcwd = getcwd();
chdir( VB_SYSTEM_PATH );
require_once( CWD . '/global.php');
require_once( CWD . '/includes/functions.php');
chdir($oldcwd);

1000 Thanks!
Bruno

Confirmed again. Working great with me on 4.0.0. Thanks guys!

BRotondi 01-25-2010 11:02 AM

Modifications
  • For use with Wiki short-URLs you should remove this in product-mmog_wiki.xml (after installation in Plugin "MMOG Wiki: Online Location Hack"):
Code:

      <phpcode><![CDATA[if (strpos($userinfo['location'], ( $vbulletin->options['mmog_wiki_path'] . '/' )) !== false)
so you can use /w which will work with /w/... and /wiki/...

If checking for /w ist not enough, you could also use multiple
Code:

if (...) {$userinfo['activity'] = 'wiki';}
  • For German platforms you may change the hardcoded english in product-mmog_wiki.xm:
Code:

$userinfo['action'] = 'Viewing Wiki';
Greetings, Bruno

benjaminlwells 02-01-2010 10:49 PM

I am about to apply this hack. I had a similar one before with Media wiki and PHPBB. I'm wonder though, do I need to have both VB and Media Wiki using the same database? Currently I have them on separate databases on the same server.

Ben

BRotondi 02-02-2010 05:44 AM

Different is o.k.

Bruno

benjaminlwells 02-02-2010 03:05 PM

So, I have installed it. This is trying to get it to work with vb4.01 btw, which seems to have worked for others.

The only thing that had me unsure was VB_SYSTEM_PATH. VB is install right in my rood dir of my domain. I tried a few things, got errors finding class_bootstrap.php so I spoke with my domain host, they suggested I just enter '/' since it's my rood dir. When I do that I get the following error:

Warning: require_once(///global.php) [function.require-once]: failed to open stream: No such file or directory in /hermes/web04/b1777/moo.benjaminlwells/alphanex/includes/AuthPlugin_vBSSO.php on line 254

Fatal error: require_once() [function.require]: Failed opening required '///global.php' (include_path='/hermes/web04/b1777/moo.benjaminlwells/alphanex:/hermes/web04/b1777/moo.benjaminlwells/alphanex/includes:/hermes/web04/b1777/moo.benjaminlwells/alphanex/languages') in /hermes/web04/b1777/moo.benjaminlwells/alphanex/includes/AuthPlugin_vBSSO.php on line 254

Any Thoughts?

BRotondi 02-02-2010 03:28 PM

"." is the path for "this", perhaps this helps in some way... (try "/." or "./", don't remember it exactly yet)

BRotondi 02-02-2010 03:30 PM

And ... btw ... now a problem from myself: Wiki does not recognize the login any more... I'm always logged out but don't know, what could have been changed. Even if I reload an old backup it does not help...

Any ideas? Thanks!
Bruno

benjaminlwells 02-02-2010 04:39 PM

Quote:

Originally Posted by BRotondi (Post 1973144)
"." is the path for "this", perhaps this helps in some way... (try "/." or "./", don't remember it exactly yet)

Thanks for the suggestion, unfortunately neither worked. :(


All times are GMT. The time now is 01:54 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.01312 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_code_printable
  • (2)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