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)

Digital Jedi 01-04-2011 07:00 AM

Ah, I see. I don't have any trouble saving mine. Is everything else saving as expected, like entires and articles?

Big Kahuna 01-15-2011 12:00 PM

I have been using this add on with VB3.8 for some time, and my concern with losing access to my Wiki has kept me from upgrading to VB4. It appears that this addon is no longer supported and usable for VB4

Mark Hewitt 01-20-2011 09:24 AM

Anyone got this working with vBulletin 4.x?

I have vBulletin 4.1.1 and MediaWiki 1.16.0

augrunt 01-24-2011 10:40 AM

Works fine on vB 4.1.1 and MediaWiki 1.16.0 -- EXCEPT I keep seeing a lot of "Unknown Location" but it has the path okay.

augrunt 01-24-2011 10:52 AM

Scratch that, the path is not okay.

e.g.
forums.site.com
wiki.site.com

If user is browsing wiki.site.com/index.php?title=Special:WhatLinksHere
They see
Code:

Unknown Location
/index.php?title=Special:WhatLinksHere

and it links to the relative URL... so the link goes to forums.site.com/index.php?title=...

Not good at all... anyone got a fix for this? the hooks aren't working because MediaWiki isn't sending back the full path.

dutchbb 01-24-2011 08:24 PM

I just upgraded to the latest PHP, I get this on the Wiki:

Quote:

Detected bug in an extension! Hook vBSSOAutoAuth failed to return a value; should return true to continue hook processing or false to abort.
Backtrace:

#0 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(748): wfRunHooks('UserLoadFromSes...', Array)
#1 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(221): User->loadFromSession()
#2 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(1637): User->load()
#3 /home/tijl/domains/mydomain.com/public_html/wiki/includes/User.php(1895): User->getOption('skin')
#4 [internal function]: User->getSkin()
#5 /home/tijl/domains/mydomain.com/public_html/wiki/includes/StubObject.php(58): call_user_func_array(Array, Array)
#6 /home/tijl/domains/mydomain.com/public_html/wiki/includes/StubObject.php(184): StubObject->_call('getSkin', Array)
#7 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Article.php(682): StubUser->__call('getSkin', Array)
#8 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Article.php(682): StubUser->getSkin()
#9 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Wiki.php(437): Article->view()
#10 /home/tijl/domains/mydomain.com/public_html/wiki/includes/Wiki.php(59): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#11 /home/tijl/domains/mydomain.com/public_html/wiki/index.php(93): MediaWiki->initialize(Object(Title), Object(Article), Object(OutputPage), Object(User), Object(WebRequest))
#12 {main}
Anyone willing to help out?

Edit: solution found https://vborg.vbsupport.ru/showpost....6&postcount=73

seovb_m4carbine 02-02-2011 12:08 AM

For everyone running into 404 not found errors on a mediawiki login.
I'm not sure if my scripts were configured correctly or not to begin with (took over a project), so this problem may only exist for me...but anyhow.

I was able to fix this by modifying the /includes/templates/userlogin.php file. This file controls the action attribute of the login form, and it currently points to vB's login.php file, which takes an optional url GET variable, telling the script where to redirect the user after login.

You just need to modify the userlogin.php template file to create the correct value for the return url.

I did this by changing:

PHP Code:

$base_mw_url $vbulletin->options['mmog_wiki_path'] . ( $vbulletin->options['mmog_wiki_short_url'] ? '/' '/index.php/'  ); 

To:
PHP Code:

$base_mw_url $vbulletin->options['mmog_wiki_path'] . ( $vbulletin->options['mmog_wiki_short_url'] ? '/' '/index.php?title='  ); 

And:
PHP Code:

$redirlink '?url=' $base_mw_url $returnNS

To:
PHP Code:

$redirlink =  '?url=' .$vbulletin->options['bburl']. $base_mw_url $returnNS


Gryphon 02-16-2011 12:18 AM

Quote:

Originally Posted by X-or (Post 2149444)
any idea to save user preferences please?
Digital Jedi are you using mw 1.16

Trying to figure this out myself, http://wiki.planetside-universe.com/ps/Special:Version

Disabling the extension, preferences save just fine.

Edit: I have worked around the issue. I am unsure what consequences it may have, but so far everything appears to be working as intended.

I changed
PHP Code:

            else 
            {
                
$u->clearInstanceCache'id' );
                
$u->load();
            } 

to
PHP Code:

            else 
            {
                
//$u->clearInstanceCache( 'id' );
                
$u->load();
            } 


jerseyda6 06-11-2011 05:31 AM

has this ever been solved?

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.
is this the result of not turning off magic quotes?

grey_goose 06-11-2011 02:21 PM

Quote:

Originally Posted by Gryphon (Post 2163023)
Edit: I have worked around the issue. I am unsure what consequences it may have, but so far everything appears to be working as intended.

You are awesome, thank you so much!


All times are GMT. The time now is 03:17 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.02344 seconds
  • Memory Usage 1,759KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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