vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Integration with vBulletin - vbWiki Standard - vBulletin+MediaWiki integration (https://vborg.vbsupport.ru/showthread.php?t=136242)

ElfMage 03-21-2007 01:35 PM

:) Glad you figured it out.

BrAinZ 03-21-2007 06:11 PM

Quote:

Originally Posted by ElfMage (Post 1208333)
Hi, this usually happens when your board is set to not allow guests to access it.

vbWiki requires that guests be allowed to at least visit your forum's home page (FORUMHOME), so that the MediaWiki - vBulletin bridge can be established.

Is this the case in your site?

Yes.. Well spotted.. Guests are not allowed any access into the site.

Is there any way around this?, as I'm not going to be able to grant any guest access without registering.

ElfMage 03-21-2007 06:25 PM

I think we implemented a workaround in the latest version, but we haven't gotten a chance to upload it yet.

Try doing the following:

Open LocalSettings.php in your MediaWiki directory, and find these lines of code:

PHP Code:

} elseif ( empty( $wgNoOutputBuffer ) ) {
    
## Compress output if the browser supports it
    
if( !ini_get'zlib.output_compression' ) ) @ob_start'ob_gzhandler' );


And replace them for this:

PHP Code:



Then vbWiki_Init.php, and find this line:

PHP Code:

require_once dirname(__FILE__) . "/vbWiki.php"

And add the following code right after it:

PHP Code:

if ( empty( $wgNoOutputBuffer ) ) {
    
## Compress output if the browser supports it
    
if( !ini_get'zlib.output_compression' ) ) @ob_start'ob_gzhandler' );


I haven't tested this, but it should work... :rolleyes:

I'll give it a try in a few...

BrAinZ 03-22-2007 01:43 PM

That ALMOST works, but seems to mess up the paths to all the graphics used on the login page.

ie:
Code:

http://www.mydomain.com/mediawiki/index.php/images/misc/mainlogo.gif
Perhaps it would just be better to redirect to the normal forum login page if the user is not registered?

ElfMage 03-22-2007 03:31 PM

:) Yes, what happens is that the no permission message is shown from the wiki's path, so all relative images/links would point to the incorrect location.

An alternate solution is to add a plugin (Admin CP > Plugins & Products > Plugin Manager > Add New Plugin) for the hook named error_nopermission.

In this plugin, add the following PHP code:

PHP Code:

if (THIS_SCRIPT == 'vbwiki')
{
   global 
$vbulletin;
   
exec_header_redirect$vbulletin->options['bburl'] );


What this does is that whenever a no permission error will be shown to the user from the wiki, the user gets redirected to the forums' home page.

This will only happen in the case you describe where guests are not given view access to the forum.

BrAinZ 03-22-2007 09:00 PM

That works a treat, thanks ElfMage!

I'm getting really frustrated trying to remove the "Discussion" tab from each page though.... Doesn't seem logical having that there, as this would distract from the forum discussions themselves.

antiekeradio 03-22-2007 10:57 PM

errrr I feel enormously stupid having to ask this.. however.. It doesn't figure for me.

in the file "vbWiki-1.0.2 RC3.zip" there is NO such thing as a "LocalSettings.php" file.

so; I cannot find the place where to put the absolute dir into.

is this changed or was my zip corrupt ? (or something else?)

greetings, Wouter

antiekeradio 03-22-2007 11:08 PM

euhw.. wait just a second. does this thing just provide the link-up between mediawiki and your vB? ..

(in that case: d?h. i'll get my coat...)


[edit]somewhat more serious, please include a clear link to the MediaWiki in your announcement message (preferably near the top :) ) [/edit]

ElfMage 03-22-2007 11:37 PM

Quote:

Originally Posted by BrAinZ (Post 1209899)
That works a treat, thanks ElfMage!

Glad it worked.

Quote:

Originally Posted by BrAinZ (Post 1209899)
I'm getting really frustrated trying to remove the "Discussion" tab from each page though.... Doesn't seem logical having that there, as this would distract from the forum discussions themselves.

You can hide the 'Discussion' Tab using CSS (this is not an elegant solution, but it is simple and works.. :rolleyes:). If you want to go this route let me know...

Alternatives include modifying MW core file, or creating a MW extension.

ElfMage 03-22-2007 11:48 PM

Quote:

Originally Posted by antiekeradio (Post 1209975)
euhw.. wait just a second. does this thing just provide the link-up between mediawiki and your vB? ..

:D

Yes, indeed, the LocalSettings.php refers to MediaWiki's configuration file.


Quote:

Originally Posted by antiekeradio (Post 1209975)
[edit]somewhat more serious, please include a clear link to the MediaWiki in your announcement message (preferably near the top :) ) [/edit]

Valid point. Just changed the message on top. Added link to MediaWiki's official download site. Thanks.


All times are GMT. The time now is 01:07 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.01264 seconds
  • Memory Usage 1,754KB
  • 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
  • (5)bbcode_php_printable
  • (5)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