vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - [obsolete!] vbMediaWiki 4.0.2 RC 3 (https://vborg.vbsupport.ru/showthread.php?t=235342)

Mondi 02-09-2010 07:23 PM

I am probably experiencing a very blonde or 'senior' moment here but - for the life of me, I cannot find 'LocalSettings.php'?

Where is this file located? I run a search at both the original and server files but to no avail.

Anyone prepared to answer this juvenile question?

Thanks

CoryHawk 02-09-2010 07:26 PM

Quote:

Originally Posted by Mondi (Post 1978555)
I am probably experiencing a very blonde or 'senior' moment here but - for the life of me, I cannot find 'LocalSettings.php'?

it is in the root directory of your mediawiki install. If you have just installed mediawiki and configured it using the script..you will need to move it from mediawikiroot/config to the root of the wiki dir.

bepe 02-09-2010 07:41 PM

Quote:

Originally Posted by Stubbed (Post 1978500)
Wat.

That has nothing to do with this mod. If you want paypal donations get the appropriate modification for vB.

Don?t worry, he wanted to send me a donation for my work :) ... and I had no link in the mod post

Quote:

Originally Posted by Stubbed (Post 1978500)
bepe - I'm watching this with great interest as well. Along with the CMS in vB4 this would go a long way to helping my community.

Yes, think so too... forum and a wiki are two things that belong together. I want to make a forum for smartphones, produced by HTC, running Windows Mobile or Android ... that is my real playground there :) ... it's really fun, HTC releases a new device, then we need to hack the protection (on iPhone that is called jail break I think)... after that we can start cooking roms for that device, change languages and more... as I said, my playground :)
Anyway, now I need a forum, and wiki is really essential, because it's all about getting information about the devices, about different hacks, and so on...

Quote:

Originally Posted by Stubbed (Post 1978500)
Regarding the gibberish above, that looks like binary output (ie, a jpg is being generated or something). What headers are being sent to the browser?


yes, thought so too... but it is not... now I?m almost sure, that it is an charset problem

starman? 02-09-2010 07:49 PM

Brilliant piece of work. Thank you very much.

A couple of issues though;

1) My wiki image files in articles have disappeared. Re-uploading them seems to be the only answer. e.g I have a wiki article on golf with an image of a golf course. The image isn't displaying (though it is in the file list) and therefore I've had to re-upload it. Perhaps there is a path problem somewhere?

2) Removing both instances of $wgContLang->ucfirst( $name ) from the user.php file causes blank wiki pages. I re-inserted them and all is okay. Are your instructions clear on this issue?

Once again thank you for an awesome product. Can't wait for the Gold version but will help you in reporting any other issues I come across.

Mondi 02-09-2010 07:50 PM

1 Attachment(s)
Thanks for your amazingly quick response CoreyHawk.

Just checking:

Quote:

Install Instructions:
STEP 1: Upload the contents of the "wiki_upload" directory into your wiki root directory.
Done that. I uploaded the contents of the file 'wiki_upload' to the root of my installation. See attachment to view the files I planted into the root, except, of course, the product and the readme file.

I did NOT place the file wholly into my root; there's currently no file called 'wiki_upload' in my root present.

Then:
Quote:

Add this line to the very end of your LocalSettings.php:

define( VB_INSTALL_PATH, '/var/www/html/forum' );
require_once( "$IP/includes/AuthPlugin_vbMediaWiki.php" );

VB_INSTALL_PATH should be the full filesystem path to your vBulletin installation. Ensure you do not add a trailing slash!
This is where I am getting stuck.

I haven't proceeded yet - the product itself has not been installed therefore.

Appreciate your assistance and wisdom mate!

bepe 02-09-2010 08:13 PM

Quote:

Originally Posted by starman? (Post 1978585)
Brilliant piece of work. Thank you very much.

A couple of issues though;

1) My wiki image files in articles have disappeared. Re-uploading them seems to be the only answer. e.g I have a wiki article on golf with an image of a golf course. The image isn't displaying (though it is in the file list) and therefore I've had to re-upload it. Perhaps there is a path problem somewhere?

2) Removing both instances of $wgContLang->ucfirst( $name ) from the user.php file causes blank wiki pages. I re-inserted them and all is okay. Are your instructions clear on this issue?

Once again thank you for an awesome product. Can't wait for the Gold version but will help you in reporting any other issues I come across.

1) 1) ... ow... I don't even have an idea what that could be relegated to... I don?t change anything related to images, except of the css, but that should not be the problem...
... if you select the monoblock skin, are the images back?

2) hm... no, not just delete the lines, do it like this:
PHP Code:

        if ( $name == ''
        
|| User::isIP$name )
        || 
strpos$name'/' ) !== false
        
|| strlen$name ) > $wgMaxNameChars
        
|| $name != $wgContLang->ucfirst$name ) ) {
            
wfDebugLog'username'__METHOD__ .
                
": '$name' invalid due to empty, IP, slash, length, or lowercase" );
            return 
false;
        } 

change to:
PHP Code:

        if ( $name == ''
        
|| User::isIP$name )
        || 
strpos$name'/' ) !== false
        
|| strlen$name ) > $wgMaxNameChars ) {
            
wfDebugLog'username'__METHOD__ .
                
": '$name' invalid due to empty, IP, slash, length, or lowercase" );
            return 
false;
        } 

and this:
PHP Code:

        # Force usernames to capital
        
global $wgContLang;
        
$name $wgContLang->ucfirst$name );

        
# Reject names containing '#'; these will be cleaned up
        # with title normalisation, but then it's too late to
        # check elsewhere
        
if( strpos$name'#' ) !== false )
            return 
false

change to:
PHP Code:

        # Force usernames to capital
        
global $wgContLang;

        
# Reject names containing '#'; these will be cleaned up
        # with title normalisation, but then it's too late to
        # check elsewhere
        
if( strpos$name'#' ) !== false )
            return 
false


bepe 02-09-2010 08:16 PM

Quote:

Originally Posted by Mondi (Post 1978586)
Thanks for your amazingly quick response CoreyHawk.

Just checking:


Done that. I uploaded the contents of the file 'wiki_upload' to the root of my installation. See attachment to view the files I planted into the root, except, of course, the product and the readme file.

I did NOT place the file wholly into my root; there's currently no file called 'wiki_upload' in my root present.

Then:


This is where I am getting stuck.

I haven't proceeded yet - the product itself has not been installed therefore.

Appreciate your assistance and wisdom mate!

What is the domain for your forum and what for your wiki?
Like: www.myforum.com and www.myforum.com/wiki

bepe 02-09-2010 09:09 PM

I think I did it!!! :)

The charset problems should be gone as of beta 2 ... I've learned much this day :)
Please report if all is working now...
I've already tested espaniol wiki and it is working fine with forum set to "ISO-8859-1"

*HAPPY*

I'm converting the wiki content to the forum charset now.
... sure it is better not to convert it, so if possible set the forum to UTF-8

murekhalir 02-09-2010 09:47 PM

This is going to be one sexy mod.

Rene Kriest 02-09-2010 10:09 PM

This will gonna be a killer application! WORD!


All times are GMT. The time now is 11:52 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.01694 seconds
  • Memory Usage 1,773KB
  • 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_php_printable
  • (8)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