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.


All times are GMT. The time now is 09:11 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.01460 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_code_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