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)

Cust0ms 02-25-2010 05:49 PM

Hello
My skin has not been integrated with Wiki. When I click "Wiki" button in navbar I see a wiki homepage (no vBulletin's header). I've tried on Chrome and Safari.

LuckyNeo 02-25-2010 05:57 PM

I did not understand that's the item:
"Upload the contents of the" wiki_upload "directory into your wiki root directory.
Add this line to the very end of your LocalSettings.php: "
Where this directory wiki?
I need to do it yourself at the root of the forum or somewhere to get and install?

Please'll show:)

Big-Pete 02-25-2010 06:17 PM

The directory of the wiki is wherever you installed mediawiki.. Google MediaWiki, download and install if you have not done so already.. :)


@bepe: bepe, everything seems to be working great now with the exception of the width of the skin you included, all the default skins are ok.. For some reason there is a slider at the bottom of the screen now as the forum is way to wide to fit on a page, when I select another skin its fine and the slider goes? any ideas how to limit width of text??

BRotondi 02-25-2010 07:01 PM

@Cust0ms: In LocalSettings search for $wgDefaultSkin = ... and set it to
Code:

$wgDefaultSkin = 'vbmediawiki';
And... this one is perhaps the bigger problem: Every user who changed his skin in the MW settings must change manually to vbmediawiki...

@bepe: I think you did not mention this anywhere, had the same problem :).


And another one: If you set your vB-stylevar titleimage e.g. to "/images/logo4.png", you have to change it e.g. to "../images/logo4.png", since the header will create something like src="../forum/../images/logo4.png".

Greetings & 1000 Thanks for this mod! (Now installed on the server and debugging / fine tuning)
Bruno

BRotondi 02-25-2010 07:08 PM

The top right link "My Profile" links to the non existant "wiki/members/..." when I am in the wiki (and correct to "forum/members/...") when I am in the forum.

bepe 02-25-2010 07:26 PM

Quote:

Originally Posted by BRotondi (Post 1991462)
The top right link "My Profile" links to the non existant "wiki/members/..." when I am in the wiki (and correct to "forum/members/...") when I am in the forum.

that is because you have this special link to members pages:
http://xxx.net/forum/members/67-bepe
but it should be:
http://xxx.net/forum/member.php?67-bepe

I'm running the VB header from the wiki location... that means I have to change all links to source files like images, css, php, ...

I'm using this regex for it:
$temp = preg_replace( '/(src|href|action)="([^:"<>]+\\.(php|gif|jpg|png|js|ico|css))/', '\\1="'.$base.'/\\2', $temp );

means that u need to have one of this in the link: ". + php|gif|jpg|png|js|ico|css"
then my code will correct the link

bepe 02-25-2010 07:28 PM

but u are right... why check for the file extension... every relative link needs to be corrected I think... need to check that

BRotondi 02-25-2010 07:38 PM

Quote:

Originally Posted by bepe (Post 1991486)
but u are right... why check for the file extension... every relative link needs to be corrected I think... need to check that

These 'members'-Links are default with the default-'Mod Rewrite Friendly URLs' rewrite-.htaccess. If you can change this, its fine. But be aware: Not only the ending changed, there is also the s: /member.php? -> /members/

BRotondi 02-25-2010 07:41 PM

(deleted)

bepe 02-25-2010 07:43 PM

Quote:

Originally Posted by BRotondi (Post 1991490)
These 'members'-Links are default with the default-'Mod Rewrite Friendly URLs' rewrite-.htaccess. If you can change this, its fine. But be aware: Not only the ending changed, there is also the s: /member.php? -> /members/

perhaps u can try if it is working better...
open vbMediaWiki.php with some text editor and change line 379 from:
PHP Code:

$temp preg_replace'/(src|href|action)="([^:"<>]+\\.(php|gif|jpg|png|js|ico|css))/''\\1="'.$base.'/\\2'$temp ); 

to:
PHP Code:

$temp preg_replace'/(src|href|action)="([^\/:"][^:"]+)"/''\\1="'.$base.'/\\2"'$temp ); 

(this both code parts are one line! ... this forum is breaking them, because they are too long)


All times are GMT. The time now is 10:00 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.01680 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_php_printable
  • (3)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