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)

benjaminlwells 03-08-2010 03:28 PM

hard to install a hack on software that's not properly installed or configured...If you can't find your LocalSettings.php, then you didn't finish the mediwiki installation process, if you did, you'd know where to find it. Ask for help here when you have a fully operational VB4, and a fully operational MediaWiki running separately; then we'll worry about making them work together :)

P.S. Bepe rules!

BRotondi 03-08-2010 07:04 PM

One Problem here is also, that we have all issues in this single thread... It would be easier to have a subforum for this mod - and perhaps even one or more wiki pages.

If welcome, I could create a subforum for this AddOn on my page and copy the Instructions to a wiki page, which we can keep up-to-date together... only an idea. Perhaps also BePe has a forum/wiki which he can use for this purpose or even there exists another nice solution...

Bouncer222 03-08-2010 07:18 PM

Oh well I didn't know you had to install the separate wiki, it wasnt included in the instructions..now I understand why, maybe it should be added.

starman? 03-08-2010 07:27 PM

Quote:

Originally Posted by BRotondi (Post 1999983)
One Problem here is also, that we have all issues in this single thread... It would be easier to have a subforum for this mod - and perhaps even one or more wiki pages.

If welcome, I could create a subforum for this AddOn on my page and copy the Instructions to a wiki page, which we can keep up-to-date together... only an idea. Perhaps also BePe has a forum/wiki which he can use for this purpose or even there exists another nice solution...

That's a great idea. Perhaps vB.org can accommodate us, afterall IBproArcade has it's own sub-forum. Wiki's are definitely growing in popularity and its integration with vBulletin is going to be more and more a common request. Let's see what vB.org say before going down the route of you or Bepe hosting it. Thanks for making a great suggestion though.

vB.org are you listening?:rolleyes:

Bouncer222 03-08-2010 08:23 PM

K got it installed now...except small tiny issue..

http://www.brotherhoodofgamers.com/w...itle=Main_Page

the Wiki if you notice is pushed to the side (to the left) a little, the page. Any idea how to fix this?

BRotondi 03-08-2010 08:35 PM

Quote:

Originally Posted by starman™ (Post 1999999)
vB.org are you listening?

=> Subforum for "vbMediaWiki 4.0.2 RC 3"? We will see :).


@Bouncer222: It looks fine in Firefox and MSIE, Opera not supportet 100% yet. What exactly is not o.k. for you? Use FireBug for CSS/HTML-customizations. (btw: nice you're back :))

Greetings, Bruno

Mukashi 03-09-2010 08:46 AM

Quote:

Originally Posted by BRotondi (Post 1999068)
Thanks benjaminlwells :).

@Mukashi: Yes, they must be identical. Perhaps your Idea could be done through two profile custom fields for wikiName and wikiPW for each user... but needs some research and experiments.

I certainly hope it could be done, it'd make a huge difference for us.

One other question. For those of us who use multiple wikis, with user accounts linked through Extension:CentralAuth, would the mod support that in its current state?

BRotondi 03-09-2010 10:07 AM

Single login: You should already be able to link as many wikies as you want with one vBulletin. Simply install vbMediaWiki for each wiki. (Not tested with vbMediaWiki, but worked with MediaWiki/vBulletin Single Sign-On (vB 3.8) which uses a similar single-login-approach.)

Search / Tab-Link / Who is online: At the moment will work only with one Wiki.

BRotondi 03-09-2010 11:20 AM

Quote:

Originally Posted by starman™ (Post 2000370)
Or perhaps the guys over at www.mwusers.com will accommodate us?

=> mwusers.com > MediaWiki - vBulletin Bridge :)

starman? 03-09-2010 02:02 PM

Joined and seconded. Thanks Bruno.

BRotondi 03-09-2010 02:16 PM

Thanks for the idea!

quantic 03-10-2010 04:56 PM

I have just installed it and it rocks,... very well done... Some things I found:

- In who is online, there are problems with localization or encoding... I see accents appearing bad.

- links don't seem to work well... In mediawiki, I used to write something like [[content]] and you could acces the page 'Content'. Now it seems 'content' and 'Content' are different pages and that have no sense.

So now all my content is unlinked (because de pages are first uppercase and there are lots of links lowercase all around)... I don't want to be redirecting manually one page to another or writing the links inside text in uppercase :)

Anybody have the same problem?

Thank you!

quantic 03-11-2010 03:40 AM

I have the same problem when using another skin, for example monobook... I don't know if it was happening before installing this module.

I'm using latest versions, but it's not a fresh install but an upgrade from an older one.

I'm looking for people with the same problem (using this module or not), as I can create now a page 'Content' and another one named 'content', that is not right.

Note: I have $wgCapitalLinks set to true.

Thank you.

BRotondi 03-11-2010 05:35 AM

Simply disable
PHP Code:

// require_once( "$IP/includes/AuthPlugin_vbMediaWiki.php" ); 

to see who the bad guy is...

quantic 03-11-2010 06:03 AM

Thank you BRotondi, it seems a problem in MediaWiki, not in the module.

I have been looking for a solution but I didn't find anybody with the same problem :( maybe I will try to make a new install and try to manually copy all pages if it works...

Argyle 03-11-2010 11:37 AM

Nice work Bepe. A donation will be coming your way after payday later this month :)

Have you seen these errors before? They appear on my install above the VBulletin header when any wiki pages is loaded.

PHP Code:

Warningmysql_fetch_assoc() expects parameter 1 to be resourceboolean given in [path]/includes/class_bootstrap.php(283) : eval()'d code on line 49

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in [path]/includes/class_bootstrap.php(283) : eval()'
d code on line 179 

The only other thing I've noticed is that the wiki page being viewed in Who is Online is reporting some file from the Left Column plugin, instead of the name of the wiki page.


VB4.0.2 (+multiple plugins)
Mediawiki 1.15.1
PHP 5.3.1
Centos 5 server.
Magic quotes disabled in .htaccess.

All paths seem to be correct.

BRotondi 03-11-2010 06:44 PM

Hmm... try to disable all other vB-addons. Haven't seen this on other installs...

Scan Cape Cod 03-11-2010 08:24 PM

Usually I don't have many problems with these add-ons but this one's giving me some grief. I've followed the instructions to the letter, but when I try to access the Wiki I receive this:

Quote:

Detected bug in an extension! Hook UserLoadFromSessionHook failed to return a value; should return true to continue hook processing or false to abort.

Backtrace:

#0 /home/scott2/public_html/wiki/includes/User.php(810): wfRunHooks()
#1 /home/scott2/public_html/wiki/includes/User.php(260): User->loadFromSession('UserLoadFromSes...', Array)
#2 /home/scott2/public_html/wiki/includes/User.php(1870): User->load()
#3 /home/scott2/public_html/wiki/includes/StubObject.php(58): User->getOption()
#4 /home/scott2/public_html/wiki/includes/StubObject.php(184): StubObject->_call('nocache')
#5 [internal function]: StubUser->__call(Array, Array)
#6 /home/scott2/public_html/wiki/includes/OutputPage.php(180): StubUser->getOption('getOption', Array)
#7 /home/scott2/public_html/wiki/includes/Article.php(748): OutputPage->checkLastModified('getOption', Array)
#8 /home/scott2/public_html/wiki/includes/Wiki.php(450): Article->view('nocache')
#9 /home/scott2/public_html/wiki/includes/Wiki.php(63): MediaWiki->performAction('20100216214239')
#10 /home/scott2/public_html/wiki/index.php(116): MediaWiki->initialize()
#11 {main}
I tried searching this thread for a solution. All that looked relevant was having CSS Stylesheets saved as files, which I do not. I'm running 4.0.2 PL1 and Mediawiki 1.15.1.

Thanks in advance!

Scan Cape Cod 03-11-2010 08:55 PM

Addendum to my last. I stand corrected. The problem was not with the install at all. After I logged out it worked fine. I remembered that this mod does not like anything but alphanumeric characters for usernames. Well, wouldn't you know my username has a forward slash in it.

Sorry for the bandwidth waste. I'll test further after I change my username to something a little more comfortable... :D

St0rmNet 03-12-2010 05:00 AM

Any idea on how to get the logo back?

BRotondi 03-12-2010 06:01 AM

@Scan Cape Cod: Disable other AddOns and Extensions. This is not caused by vbMediaWiki alone. Finding a solution is easier if you see what caused it.

@St0rmNet: Logo has been cut of in the skin "vbMediaWiki". Search for
Code:

    <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script>
in "vbMediaWiki.php" and paste the following lines (from "MonoBook.php") before:
Code:

    <div class="portlet" id="p-logo">
        <a style="background-image: url(<?php $this->text('logopath') ?>);" <?php
            ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"<?php
            echo $skin->tooltipAndAccesskey('p-logo') ?>></a>
    </div>

This is not all the solution, but gives you a first step... Poste the solution when finished!

Greetings and good success!
Bruno

BRotondi 03-12-2010 06:19 AM

O.K. Another solution with changed <div>: Put
Code:

    <div id="p-Spezial" class="generated-sidebar portlet">
        <a href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"><img src="<?php $this->text('logopath') ?>"></a>
    </div>

before
Code:

    <script type="<?php $this->text('jsmimetype') ?>"> if (window.isMSIE55) fixalpha(); </script>
in vbMediaWiki.php and then use FireBug for the customisations. This gives you a better starting point, since the original Code will put the logo over the vB-header.

Spinball 03-12-2010 08:21 AM

Is it possible to tweak this mod so that it works with 3.8.2? (I'm not going to upgrade to vB4).

BRotondi 03-12-2010 09:31 AM

Sure somekind... if someone has time and energy to do it... You can use MediaWiki/vBulletin Single Sign-On for single login, but nothing for "singe skin"...

TigerXtrm 03-12-2010 10:11 PM

I get this error after installing everything:

Code:

Notice: Use of undefined constant VB_INSTALL_PATH - assumed 'VB_INSTALL_PATH' in /home/backstag/public_html/media-portal/wiki/LocalSettings.php on line 129

BRotondi 03-13-2010 06:51 AM

I think you made something wrong with
Quote:

3. Add this two lines to your 'wiki/LocalSettings.php':

Argyle 03-13-2010 09:21 AM

Quote:

Originally Posted by BRotondi (Post 2001685)
Hmm... try to disable all other vB-addons. Haven't seen this on other installs...

Looks like a conflict with SevenSkins Leftcolumn :(
https://vborg.vbsupport.ru/showthread.php?t=230111

Argyle 03-13-2010 09:36 AM

Scratch that... it doesn't like the way I put two SQL queries into one of the SevenSkins leftcolumn plugins. I'll figure something out. Thanks for your time.

TigerXtrm 03-13-2010 10:04 AM

Quote:

Originally Posted by BRotondi (Post 2002643)
I think you made something wrong with

Well I added this:

PHP Code:

defineVB_INSTALL_PATH'..' );
require_once( 
"$IP/includes/AuthPlugin_vbMediaWiki.php" ); 

First I added it all the way on the end, right underneath the last bit of original code. That didn't work so then I added it all the way on the top, right underneath <php?. That seemed to work, but the entire login bridge and integration didn't work (wiki opened on a separate page and wouldn't be logged in).

So now I put it somewhere random in the middle and I get errors again. Someone help! :(

I'm using MediaWiki 1.15.2 btw, could that be the problem? Is this mod only compatible with 1.15.1?

TigerXtrm 03-13-2010 11:13 AM

Okay, I think the problem here was that there were no quotes around the VB_INSTALL_PATH. I added them but now I just get a blank screen. Gaah!

BRotondi 03-13-2010 11:29 AM

Hy TigerXtrm

It works with 1.15.1, never tried with .2. The Path must be relative and do not change anything, than the red part, e.g.:
Code:

## vbMediaWiki (https://vborg.vbsupport.ru/showthread.php?t=235342)
define( VB_INSTALL_PATH, '../forum' );
require_once( "$IP/includes/AuthPlugin_vbMediaWiki.php" );

  • use ../forum if you have //server/.../wiki and //server/.../forum
  • use .. if you have //server/.../wiki and //server/.../ (means Wiki is installed in a subfolder of the forum
  • etc.
=> The server installation path is needed, not the http://..-Path!

It should work even if you put above lines at the end of LocalSettings.php ... perhaps a conflict with other extensions?

Greetings, Bruno

TigerXtrm 03-13-2010 11:55 AM

I'm pretty sure the path is correct:

PHP Code:

defineVB_INSTALL_PATH'..' );
        require_once( 
"$IP/includes/AuthPlugin_vbMediaWiki.php" ); 

Forum is in the /forum folder and the wiki is in the /forum/wiki folder.

But all I get when try to get on the wiki is a blank screen.

BRotondi 03-13-2010 12:25 PM

Does your wiki work itself? Could you poste a link to your forum?

TigerXtrm 03-13-2010 02:11 PM

Yeah, sure.

http://backstagemedia.net/media-portal/forum

If I take out the two lines of PHP code the wiki works just fine, but it's obviously not linked to the forum in any way (log in or style)

BRotondi 03-13-2010 02:25 PM

If you take out the two lines, wiki is still http://backstagemedia.net/media-port...hp/Hoofdpagina ?

The /index.php/Hoofdpagina seems strange...

TigerXtrm 03-13-2010 04:46 PM

Well you can go to http://backstagemedia.net/media-portal/forum/wiki but you'll end up on the same page and the adres will just rewritten to that.

Gargi 03-13-2010 07:13 PM

New Wiki article error: When I click on New Wiki Articles I get this error message:

Warnung: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in [path]/packages/vbmediawiki/search/searchcontroller/newwiki.php (Zeile 34)

Also when I click on the users profile .View all wiki articles by ... I get no result.

Integration itself works fine. Just the search thing is a bit buggy on my installation.

cu
Gargi

Argyle 03-13-2010 10:03 PM

Simple solution for my problem - if $_SERVER['SCRIPT_FILENAME'] is not equal to the wiki index file, run my queries.

I figure its something to do with something required to run in the main page being swapped out for the wiki content... but this solution works and is as "elegant" as any other of my custom queries :)

rockinaway 03-14-2010 08:14 AM

Is there any way that when a new wiki article is created, the user can select a forum in which a post will also be submitted. This post would redirect users from the forum to the article.

Is this possible?

McAtze 03-14-2010 12:16 PM

1 Attachment(s)
THX for this great MOD .. but i've tried it like you describe and it doesnt work.

Attachment 114103

What is wrong ??


All times are GMT. The time now is 03:37 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.01692 seconds
  • Memory Usage 1,847KB
  • 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
  • (6)bbcode_code_printable
  • (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
  • (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