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)

Peter Walker 09-23-2009 06:19 PM

OK, I will give you my settings and so you can try them.

Code:

require_once( "$IP/includes/DefaultSettings.php" );
define( VB_SYSTEM_PATH, '/srv/www/vhosts/rifeforum.com/httpdocs/forum' );
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
require_once('extensions/Cite/Cite.php');
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['*' ]['createtalk'] = false;
$wgGroupPermissions['user']['edit'] = true;

and then at the end of the file:

Code:

$wgScriptPath = "/w";        # Path to the actual files. This should already be there
$wgArticlePath = "/wiki/$1";  # Virtual path. This directory MUST be different from the one used in $wgScriptPath
$wgUsePathInfo = true;        # Enable use of pretty URLs

$wgWhitelist['sysop']['read']  = $wgBlacklist['*']['read'] = array("Special:Export", "Special:Listusers", "Special:Ipblocklist", "Special:Log", "Special:Allmessages");

$wgAllowCopyUploads = true;  # Allow for upload to be copied from an URL. Requires Special:Upload?source=web
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'svg', 'xls', 'mpp', 'pdf', 'zip');

Note that I have a few extra features installed like cite.php for example.

Try this and report back.

I am using vb 3.8.4, MediaWiki 1.14.0, PHP 5.2.6, MySQL 5.0.45.

I hope this helps

AfterWorldForum 09-23-2009 06:36 PM

Quote:

Originally Posted by Peter Walker (Post 1889569)
I hope this helps

Peter,

As soon as I add the line mentioned earlier to the Auth-file, my page dissappears. I'm guessing that the problem is me running a newer version.

I've been reading up on old installs, and tried some tricks mentioned in there regarding the same line, but all of that seems to be covered in the new version of the hack.

I'm going to see if combing the release notes for the 1.15 version yields anything, otherwise I might just downgrade to wiki 1.14 (the wiki is blank anyway, so no harm done).

Danke!

Peter

Peter Walker 09-23-2009 06:48 PM

I was having the blank page issue when I had the wiki on a different domain to the forum. I had to set both my domain names to the same server space before that problem went away. Do you have the correct settings in vb as they play a major role, too.

e.g. the Wiki Path has to point to the "/wiki" directory and not "/w" (I used the full URL)

AfterWorldForum 09-23-2009 07:06 PM

Quote:

Originally Posted by Peter Walker (Post 1889585)
I was having the blank page issue when I had the wiki on a different domain to the forum. I had to set both my domain names to the same server space before that problem went away. Do you have the correct settings in vb as they play a major role, too.

e.g. the Wiki Path has to point to the "/wiki" directory and not "/w" (I used the full URL)

Aye, I saw your issue about the blank page in your posts before.

My wiki and forum are in seperate folders, but on the same server and domain.

Forum: www.afterworldforum.com/forum
Wiki: www.afterworldforum.com/wiki

I also installed everything in /w, and have the same settings as you in my localsettings.

As soon as I uncomment line to the the alternative SSO auth page, my wiki will just go blank. I'm going to try and see tomorrow if I can isolate the problem to a single functioncall or line of code by using selective commenting.

Not sure how else to troubleshoot, as I just obtained this VPS box, and my linux skills are extremely rusty (as in ten years or so). I've not bitten myself into this, and dangit, I shall either figure it out, or just give up and download 1.14 tomorrow evening.

Thanks a lot for your help so far, Peter. I did just try using /wiki in the hack, but that also did not do anything. I highly appreciate you taking the time, though.

Off to bed now. Maybe tomorrow morning I'll suddenly see the light.

Peter

Peter Walker 09-24-2009 12:19 AM

Hi Peter,
I had a look at your site and noticed a minor discrepency.

You just told me your forum was located at: "www.afterworldforum.com/forum"

Yet in reality, it is located at: www.afterworldforum.com/forums

If you used the term "forum" instead of "forums" anywhere in your settings, then it is bound not to work. Please check this out.

AfterWorldForum 09-24-2009 04:06 AM

Quote:

Originally Posted by Peter Walker (Post 1889701)
Hi Peter,
I had a look at your site and noticed a minor discrepency.

You just told me your forum was located at: "www.afterworldforum.com/forum"

Yet in reality, it is located at: www.afterworldforum.com/forums

If you used the term "forum" instead of "forums" anywhere in your settings, then it is bound not to work. Please check this out.

Hi Peter,

Must have been my mistake when posting. I am pretty certain that I did use /forums everywhere, but will be sure to check that. I should just learn not to post in the late evening hours ;)


Update: Just checked, and it is correctly defined in the file:

Code:

require_once( "$IP/includes/DefaultSettings.php" );
define( VB_SYSTEM_PATH, '/var/www/vhosts/afterworldforum.com/httpdocs/forums' );
#require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
$wgGroupPermissions['*']['createaccount'] = false;

Update 2:

Just noticed something weird. In my VPS file manager, I did not see the AuthLogin file. I could see it from my FTP folder, which is where I had been editing it, but for some reason, that obviously failed to get it working properly. I instead uploaded the file through the VPS File Manager (after renaming the other file in FTP), and that seemed to do the trick :D

I R HAPPY CAMPER NOWZ!

Still baffled an uploaded file doe not somehow not show up, but I guess I'll bug my host about that one.

Update 3: D'OH. My FTP client was pointing towards the OLD FTP site. Since I installed wiki before the migration, the environments looked identical, and I just never noticed.

Wiki-SSO is working great now, so the hack works on MediaWiki 1.15 as well.

Vielen dank fur deine hilfe, Peter. Kann ich dir mals ein bier kaufen wann du nach Danmark kommst? :D

Cheers.

Peter

futuredood 09-25-2009 05:04 AM

does anyone know if this works with jfusion?

murekhalir 09-25-2009 09:28 PM

this might be a stupid question - but anyone know the link where to get a vb bridge to WP?

jawatkin 10-01-2009 12:55 PM

Quote:

Originally Posted by murekhalir (Post 1890624)
this might be a stupid question - but anyone know the link where to get a vb bridge to WP?

It's not a stupid question, but it's definitely not in the right place.

I googled exactly what you asked for (vb bridge to wp) and there are plenty of links:
http://www.google.com/search?client=...UTF-8&oe=UTF-8

OSanchez 10-05-2009 12:29 AM

I can't find "localsettings.php"
public_html/Wiki/Localsettings.php is missing..I looked in the downloaded files and didnt come with it.

Peter Walker 10-05-2009 06:32 AM

To quote from my LocalSettings.php

Code:


# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings

Once you have installed MediaWiki, you will find that file has been created.

I hope this helps

OSanchez 10-06-2009 04:58 AM

Oh, I didnt install it yet. My bad. I should do that. XD

bradbeattie 11-02-2009 05:49 PM

I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.

bradbeattie 11-02-2009 06:28 PM

Quote:

Originally Posted by bradbeattie (Post 1909497)
I have this installed with vBulletin 3.8.4p1 and MediaWiki 1.15.1. It works well enough, but there's one tiny hiccup. Something related to Memcache is causing MediaWiki to forget about its extensions. I get an error like "Invalid tag extension name: myextension". Haven't yet found a solution to this, but I'm looking.

Be careful not to have anything within your vBulletin skin that calls back to MediaWiki by requiring LocalSettings.php. Bad things happen.

Dekard 11-10-2009 06:41 PM

Ok, so my install of MW is a bit borked right now. I'm getting the blank page issue mentioned earlier and it actually started when I was using an earlier script to integrate VB with MW. After removing the previous hack (vbwiki pro) I've installed this hack according to the directions listed here but its still not working. After taking a look at some of the posts in this thread I'd like to get a clean and fresh localsettings.php file to work with since this is a bit over my head. Whats the best way to do that?

Once I've got it working well independatly from VB I'll take another look at installing this hack.

Dekard 11-10-2009 07:42 PM

Ok, since things in my install were pretty messed up I deleted the localsettings.php file from the root and the /config directory. Then, I used the MW installer to create a new file using the settings I copied from the deleted copy. After that I was able to login using the standard MW systems. Then, following the directionsin the .txt file included with the mod I reinstalled the hack and it works now.

Dekard 11-10-2009 08:21 PM

So, this was working well for a while but seems to have died after just a few minutes. If I try to rollback a change I get this response from MW.

Quote:

You do not have permission to do that, for the following reason:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking.
Please hit "back" and reload the page you came from, then try again.
And if I try to edit the page I get this 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.
Any tips?

Dekard 11-10-2009 08:28 PM

Adding "php_flag magic_quotes_gpc off" to my .htaccess file corrected the above issues.

azn_romeo_4u 11-10-2009 08:44 PM

How do you add someone to a wiki usergroup? It doesn't appear to save them for some reason.

Dekard 11-14-2009 11:10 AM

Has anyone tested this with vb 4.0 beta yet and the latest version of Mediawiki? I'd love to update but its not worthing breaking anything.

Dekard 11-16-2009 01:19 PM

Needless to say, this mod is great for vb 3.8 but I wouldn't recommend running in a vb 4.0 site at all. When attempting to run this mod on an a site with the 4.0 beta 3 installed the following errors are produced on all pages of the wiki and no further content is rendered. Just the error message.

Code:

Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/overcloc/public_html/forums/global.php on line 15

Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/overcloc/public_html/forums/global.php on line 15

Fatal error: require() [function.require]: Failed opening required './includes/class_bootstrap.php' (include_path='/home/overcloc/public_html:/home/overcloc/public_html/includes:/home/overcloc/public_html/languages:.:/usr/lib/php:/usr/local/lib/php') in /home/overcloc/public_html/forums/global.php on line 15

I hope that sometime down the road soon we'll see a 4.0 native mod that will work however, this is an incredible mod. To support the production of a 4.0 mod I'm sending the author a donation right now. Lets all do it and see how soon we can get a 4.0 release. :)

Goomzee 11-18-2009 10:03 AM

there is no LocalSettings.php file in attachment

Dekard 11-23-2009 11:43 AM

Quote:

Originally Posted by Goomzee (Post 1916519)
there is no LocalSettings.php file in attachment

Thats true. You should have a LocalSettings.php in the root of your mediawiki installation folder. You want to edit that file.

bosal 11-26-2009 12:35 PM

Does this mod import old users from mediaWiki ? I have a big wiki with many users and I can't loose them.

Dekard 11-26-2009 12:44 PM

No, it just replaces the MW login with the VB one. So, you'd have to import all your users to VB or get them to sign up there before you put this on the production site.

bosal 11-26-2009 12:52 PM

Is there a Impex for such a import ?

Dekard 11-26-2009 01:01 PM

I don't think there is an impex for that but there are other solutions. Google is your best friend on this one since those type of mods come and go depending on the version supported.

BRotondi 11-26-2009 01:06 PM

Perhaps it's the easiest way to simply match the UserIDs. How many users are you talking about?

Bruno

RedFoxy 12-01-2009 02:20 PM

I've troubles with vBulletin 3.8.4 Patch Level 1 and MediaWiki 1.15.1 http://www.softairmania.it/samwiki/i...ciale:Versione

After installation, when I try to edit or insert a new page I give n error about my brouser and and an error abut my browser accent support

Big Kahuna 12-05-2009 03:21 PM

Love this hack but want to upgrade Vbulletin to 4.

Is this addon compatible to the upgrade.

Been Told 12-18-2009 02:00 PM

I would be willing to donate for this mod to become vB4 compatible. Any chance of that?

ndahiya 12-26-2009 08:51 PM

Hi,

I was able to get this to work in vb 4.0.0 (mediawiki 1.14) by editing AuthPlugin_vBSSO.php by adding 3 chdir commands twhere the scripts are called

<<<<<
define('THIS_SCRIPT', 'wiki');
chdir ('/home/sitename/www/forums');
require_once( CWD . '/global.php');
chdir ('/home/sitename/www/forums');
require_once( CWD . '/includes/functions.php');
chdir ('/home/sitename/www/w/includes');


<<<<<
the second chdir is redundant, i think, but just to be safe. :)

so far working, but will see how stable it is.

ndahiya

BRotondi 12-28-2009 04:59 PM

Great! Thanks! (not tested yet, but nice to hear :) )

Bruno

Dontom 12-30-2009 10:56 AM

Quote:

Originally Posted by RedFoxy (Post 1923548)
I've troubles with vBulletin 3.8.4 Patch Level 1 and MediaWiki 1.15.1 http://www.softairmania.it/samwiki/i...ciale:Versione

After installation, when I try to edit or insert a new page I give n error about my brouser and and an error abut my browser accent support

Same here, too, also after the latest patch with the changed salt in vb's functions.php I get the same message.

when saving an edit or adding a new page I get the 'token_suffix_mismatch' message:
=> "'''Your edit has been rejected because your client mangled the punctuation characters in the edit token.'''

Any help is appreciated!

dotted1337 12-31-2009 02:37 AM

Quote:

Originally Posted by ndahiya (Post 1938931)
Hi,

I was able to get this to work in vb 4.0.0 (mediawiki 1.14) by editing AuthPlugin_vBSSO.php by adding 3 chdir commands twhere the scripts are called

<<<<<
define('THIS_SCRIPT', 'wiki');
chdir ('/home/sitename/www/forums');
require_once( CWD . '/global.php');
chdir ('/home/sitename/www/forums');
require_once( CWD . '/includes/functions.php');
chdir ('/home/sitename/www/w/includes');


<<<<<
the second chdir is redundant, i think, but just to be safe. :)

so far working, but will see how stable it is.

ndahiya

Code:

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

this way you dont have anything you need to remember to edit beyond the instructions here, if the paths change for some reason.

BRotondi 01-01-2010 11:57 AM

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

ekool 01-04-2010 01:52 AM

Quote:

Originally Posted by XFSImperial (Post 1812043)
The bridge seems to be working as I see my forum username on the wiki, but the wiki header and footer is covered in errors. I know the vba is vbadvanced. I'm running vba 3.1.0, are these errors version related?




Edit: One of our network admins was able to fix the problem. Evidently had to do with difference in the way php4/php5 treat the arrays and the fact that the server for this wiki install is on Litespeed and not Apache.


I'm having this issue and am unable to fix it, any ideas?


Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr[path]/includes/vba_cmps_include_template.php on line 19

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr[path]/includes/vba_cmps_include_template.php on line 42

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr[path]/includes/vba_cmps_include_template.php on line 50

Warning: Invalid argument supplied for foreach() in /usr[path]/includes/init.php(304) : eval()'d code on line 15



Unable to add cookies, header already sent.
File: /usr/home/nexusone/public_html/forum/includes/class_core.php
Line: 3277


BRotondi 01-04-2010 05:38 AM

It worked fine with vBa 3.2.1 and vB 3.8.*. I don't think that's the reason for your errors...

nitra1000 01-04-2010 11:11 PM

posting here so I can find this tommorow (when I'm looking to install on VB4)

Behzad Varedi 01-07-2010 07:08 AM

Hello,

I have this error in vb4

Code:

Notice: Use of undefined constant VB_SYSTEM_PATH - assumed 'VB_SYSTEM_PATH' in /home/persianppc/domains/wiki.persianppc.com/public_html/LocalSettings.php on line 26
any Idea how can I fix it ?
I'm sure about the path I set in "LocalSettings.php"

Thanks


All times are GMT. The time now is 01:28 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.01697 seconds
  • Memory Usage 1,851KB
  • 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
  • (9)bbcode_code_printable
  • (11)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