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 08-07-2007 07:08 PM

Hi Strafe, The easiest way is to create a new Usergroup in vBulletin, add these members to this new group. And then when configuring vbWiki, map this new usergroup to MediaWiki's sysop group. (You'll need the id for the newly created usergroup, which you can find in the Usergroup Manager in vB).

Strafe 08-07-2007 08:15 PM

Thanks, that cleared everything up. :)

Strafe 08-09-2007 08:15 PM

I added these lines to my Init file but it results to a blank wiki page.
PHP Code:

$g_vbWiki_Usergroup_Mapping            = array (       
            
/*Administrators*/    => "sysop,bureaucrat"
            
/*Super Moderators*/    => "sysop,bureaucrat"
    
); 

I made it so that mods and admins can be sysops. Why is it giving me a blank page?

ElfMage 08-10-2007 04:23 AM

Hi Strafe,

After each entry in the array a comma is needed:

PHP Code:

$g_vbWiki_Usergroup_Mapping            = array (        
            
/*Administrators*/    => "sysop,bureaucrat",
            
/*Super Moderators*/    => "sysop,bureaucrat" 
    
); 

The blank page was caused by a PHP error. If you check the PHP error logs you may see the corresponding entry there...

Quantnet 08-10-2007 10:11 PM

I'm using the Live Search Ajax mod and on the wiki page, the ajax window is blocked by the wiki header where you have My talk My Wiki Preferences My watchlist My contributions Log out

Here is the mod https://vborg.vbsupport.ru/showthread.php?t=154694
Here is the wiki at www.quantnet.org/wiki

I guess the way the custom template is code, it blocks the ajax ? I have it working fine on forum home and front page.

Thanks

ElfMage 08-11-2007 04:32 AM

Could you PM me a test username/password? (or is this visible to guests, I didn't see it).

My guess is that this is related to the z-index CSS property, it should be simple to correct.

Quantnet 08-11-2007 06:51 AM

this is visible to guests...i PM you a test account none the less

I hope it's something with the css

ElfMage 08-12-2007 01:20 AM

:) Sent you a PM.

Quantnet 08-12-2007 01:43 AM

Your fix worked like a charm. You da man.
Thanks

Kaelon 08-18-2007 04:06 PM

I recently purchased vbWikiPro (great product - thanks so much!), and ordinarily would ask this question on the NuHit forums, but they seem to have serious rewrite errors (that most forum thread links are posting to 404 errors), so I'm posting this here.

I noticed that after installing vbWikiPro, there was a huge spike to server load. I'm running on a Dedicated Server (P4 3.0 Ghz, 2 Gigs of RAM, RAID-0 150 GB 10,000 RPM HD) and my forum (around 50-60 registered users online at any given time, around 400-500 normal users accessible during peak times) ordinarilly never has a load above 0.20. Installed vbWikiPro, and started getting regular load ranges of 0.80-2.00! Is there any reason for this?

ElfMage 08-18-2007 05:35 PM

Hi Kaelon,

Thanks for the positive feedback. We upgraded our systems this morning, and some of the URLs changed. If you encounter any link pointing to a 404, please send me a PM. Thanks.

Regarding the server load. Since this is a vbWiki Pro question, I posted it in our support forums, I hope you don't mind. Let's continue the discussion there. Thread: http://www.nuhit.com/forums/vbwiki-p...-post7283.html

I also replied to the thread.

Regards.

Soonerdude 08-25-2007 02:25 AM

First of all, thanks, this is an awesome mod.

I'm trying to figure out how to keep anyone but myself from editing the main page on the wiki. I don't care what they do with the rest of the wiki, but I want to set the main page up myself, and I don't want anyone messing with it. Is this possible?

Another question, will banned vbulletin users be banned from editing the wiki as well?

ElfMage 08-25-2007 03:56 AM

Quote:

Originally Posted by Soonerdude (Post 1325164)
First of all, thanks, this is an awesome mod.

You are welcome. Glad to see people finding this useful. :)

Quote:

Originally Posted by Soonerdude (Post 1325164)
I'm trying to figure out how to keep anyone but myself from editing the main page on the wiki. I don't care what they do with the rest of the wiki, but I want to set the main page up myself, and I don't want anyone messing with it. Is this possible?

Yes, you could protect the main page, and set the permissions so that only you can protect/unprotect pages.

This way anybody with edit rights can modify any other page, but only you can edit the main page.

Quote:

Originally Posted by Soonerdude (Post 1325164)
Another question, will banned vbulletin users be banned from editing the wiki as well?

Not at this time.

This will be implemented in the next release, it has been reported over in our site, and we are working on implementing support for banned groups.

Thanks.

Soonerdude 08-28-2007 03:09 AM

Another question..

I love the feature where the user cp links to the vbulletin usercp, but is there also a way to have the mediawiki preferences link still at the top? The users need to be able to select their timezones, set up search preferences, etc. I know you can just go to Special:Preferences, but it would be easier if they just had a link at the top.

Thanks!

etechno 08-28-2007 06:52 AM

Great mod here, will look at installing later on.

ElfMage 08-28-2007 12:35 PM

Quote:

Originally Posted by Soonerdude (Post 1327129)
Another question..

I love the feature where the user cp links to the vbulletin usercp, but is there also a way to have the mediawiki preferences link still at the top? The users need to be able to select their timezones, set up search preferences, etc. I know you can just go to Special:Preferences, but it would be easier if they just had a link at the top.

Thanks!

Thanks. Are you referring to vbWiki Pro? If so there is an option in vBulletin's Admin CP to enable this.

Quantnet 09-01-2007 12:41 AM

Quote:

Originally Posted by ElfMage (Post 1270292)
Cool. Glad you got it working.:cool:



Try the following. I am assuming that tabpage is the class for the active tab. What it does is to highlight the Forums tab only if you are not in the wiki nor in the vbAdvanced Home.

PHP Code:

<a href="#" onclick="window.open('/forum/javachat.php?$session[sessionurl]do=lite','javachat','statusbar=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,directories=no,width=750,height=550,left=50,top=100,screenX=50,screenY=100'); return false;" class="tab">Chat</a>

<
a href="http://www.quantnet.org/wiki/" class="<if condition="THIS_SCRIPT == 'vbwiki'">tabpage<else />tab</if>">Wiki</a>

<
a href="http://www.quantnet.org/forum/" class="<if condition="(THIS_SCRIPT != 'vbwiki') && (THIS_SCRIPT != 'adv_index')">tabpage<else />tab</if>">Forum</a>

<
a href="http://www.quantnet.org/" class="<if condition="THIS_SCRIPT == 'adv_index'">tabpage<else />tab</if>">Home</a


A follow up question on this. I like to add a Tab for Blogs between Wiki and Forum. Can you please help me so that the Blog tab will be highlighted when only on /forum/blog.php page.

Thanks very much

ElfMage 09-01-2007 03:37 PM

:)

I am assuming that you have vBlog powering your Blog.

Try this and let me know..

PHP Code:

<a href="#" onclick="window.open('/forum/javachat.php?$session[sessionurl]do=lite','javachat','statusbar=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,directories=no,width=750,height=550,left=50,top=100,screenX=50,screenY=100'); return false;" class="tab">Chat</a>

<
a href="http://www.quantnet.org/wiki/" class="<if condition="THIS_SCRIPT == 'vbwiki'">tabpage<else />tab</if>">Wiki</a>

<
a href="http://www.quantnet.org/forum/blog.php" class="<if condition="THIS_SCRIPT == 'blog'">tabpage<else />tab</if>">Blog</a>

<
a href="http://www.quantnet.org/forum/" class="<if condition="(THIS_SCRIPT != 'vbwiki') && (THIS_SCRIPT != 'blog') && (THIS_SCRIPT != 'adv_index')">tabpage<else />tab</if>">Forum</a>

<
a href="http://www.quantnet.org/" class="<if condition="THIS_SCRIPT == 'adv_index'">tabpage<else />tab</if>">Home</a


Quantnet 09-01-2007 03:47 PM

Kaching !

Thanks ;)

ElfMage 09-01-2007 03:57 PM

:) Glad it worked.

darksoulz 09-08-2007 04:54 PM

Broken for me on MW 1.11.0rc1

Internal error

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

Backtrace:

#0 /wiki/includes/Title.php(838): wfRunHooks('GetLocalURL', Array)
#1 /wiki/includes/MediaTransformOutput.php(84): Title->getLocalURL('')
#2 /wiki/includes/MediaTransformOutput.php(142): MediaTransformOutput->getDescLinkAttribs('Image:glogo.jpg')
#3 /wiki/includes/Linker.php(576): ThumbnailImage->toHtml(Array)
#4 /wiki/includes/Parser.php(4627): Linker->makeImageLink2(Object(Title), Object(LocalFile), Array, Array)
#5 /wiki/includes/Parser.php(1774): Parser->makeImage(Object(Title), 'Image:glogo.jpg')
#6 /wiki/includes/Parser.php(1052): Parser->replaceInternalLinks('<span class="pr...')
#7 /wiki/includes/Parser.php(306): Parser->internalParse('<span class='pr...')
#8 /wiki/includes/Article.php(3017): Parser->parse('<protect>?<cent...', Object(Title), Object(ParserOptions), true, true, 2754)
#9 /wiki/includes/Article.php(831): Article->outputWikiText('<protect>?<cent...')
#10 /wiki/includes/Wiki.php(383): Article->view()
#11 /wiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#12 /wiki/index.php(89): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#13 {main}

ElfMage 09-09-2007 02:00 AM

Interesting. We haven't tested vbWiki with 1.11 RC1. However, the error described here is easy to fix.

Open a file named vbWiki_Hooks.php and at line 122 there is a closing curly brace } insert the following (before the closing brace):

PHP Code:

return true

It is possible that there are other errors. We will be testing this shortly.

Thanks.

darksoulz 09-09-2007 02:10 PM

Using that idea, I did the same thing to fix the same error in a few other functions. After adding that line to the end of vbWiki_PersonalUrls_Hook, vbWiki_GetLocalURL_Hook, and vbWiki_SpecialPage_initList_Hook, it appears to be working normally.

Thanks for the help and for the great mod.

ElfMage 09-09-2007 03:06 PM

Quote:

Originally Posted by darksoulz (Post 1335458)
Using that idea, I did the same thing to fix the same error in a few other functions. After adding that line to the end of vbWiki_PersonalUrls_Hook, vbWiki_GetLocalURL_Hook, and vbWiki_SpecialPage_initList_Hook, it appears to be working normally.

That's good to know, thanks for the update. I just made the changes to the development branch. They will be included in the next release.

Quote:

Originally Posted by darksoulz (Post 1335458)
Thanks for the help and for the great mod.

:) Thanks for the feedback.

Let me know if anything else comes up.

Cheers.

Quantnet 09-10-2007 04:13 AM

ElfMage,
Have you tried upgrading to MediaWiki 1.11.0rc1 ? Any problem with WikiPro/3.6.8 ?
Thanks

ElfMage 09-10-2007 04:29 AM

Hi,

vBulletin 3.6.8: There are no problems with the latest vBulletin version. We are running this version over at our site.

MediaWiki 1.11 RC1: There is a slight incompatibility. Take a look at darksoulz's post above. He got it working with a couple of code changes.

Quantnet 09-14-2007 10:31 PM

the 1.11.0 verson was released...anyone upgraded can share their experience ?

Any code changes we need ?

yoyoyoyo 09-14-2007 11:48 PM

I installed this and received an error that said:

Quote:

Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.
but I can't find $wgShowExceptionDetails anywhere in the LocalSettings.php file

ElfMage 09-15-2007 02:22 PM

Hi, are you the same user who posted a similar issue over at our forums?

Thanks.

yoyoyoyo 09-15-2007 03:58 PM

Quote:

Originally Posted by ElfMage (Post 1339503)
Hi, are you the same user who posted a similar issue over at our forums?

Thanks.

no I am not - is there a fix?

I just looked at your forum - very nice - I love the cartoon quote balloons

Totti 09-16-2007 06:46 AM

If you would do, what wiki expects you to do ... you would have seen that this is the same small bug described above.

I just added return true to all functions in vbWiki_Hooks.php and it works perfectly with 11 :)


thanks a lot ;)

yoyoyoyo 09-16-2007 11:10 AM

Quote:

Originally Posted by Totti (Post 1339958)
If you would do, what wiki expects you to do ... you would have seen that this is the same small bug described above.

I just added return true to all functions in vbWiki_Hooks.php and it works perfectly with 11 :)


thanks a lot ;)

I made the changes mentioned earlier in this thread by darksoulz and elfmage and it seems to be working for me, also.

ElfMage 09-17-2007 02:10 AM

Quote:

Originally Posted by yoyoyoyo (Post 1339568)
I just looked at your forum - very nice - I love the cartoon quote balloons

:) Thanks.

Quote:

Originally Posted by Totti (Post 1339958)
thanks a lot ;)

Your are welcome.

Quote:

Originally Posted by yoyoyoyo (Post 1340070)
I made the changes mentioned earlier in this thread by darksoulz and elfmage and it seems to be working for me, also.

Cool. Glad to hear that.

We'll be releasing a new version in 2-3 weeks, that will include these changes.

iRO Wiki 09-23-2007 07:39 PM

Ah, after some tweaking we got it to work, thanks a bunch!

AScherff 09-28-2007 05:22 PM

Hi,

i have installed vBulletin 3.6.8 installed and working. MediaWiki 1.11.0 ist installed and running.

I followed the installation instructions here, for these mod (RC4) but nothing happen. I also set

PHP Code:

$run_vbWikiPro_diag_tools true

but no effect.

I'm stuck. Please help. Thanks

Alfred

slappy 09-28-2007 06:55 PM

Hey ElfMage, seems like vbWiki Standard isn't compatible with the new MediaWiki version 1.11.0. :(

I only get the following error on my Wiki main page when trying to run it (with $wgShowExceptionDetails = true):

Quote:

Internal error

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

Backtrace:

#0 /var/www/html/collaborative/tools/includes/Title.php(838): wfRunHooks('GetLocalURL', Array)
#1 /var/www/html/collaborative/tools/includes/Title.php(739): Title->getLocalURL('', false)
#2 /var/www/html/collaborative/tools/includes/Wiki.php(170): Title->getFullURL()
#3 /var/www/html/collaborative/tools/includes/Wiki.php(45): MediaWiki->initializeSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#4 /var/www/html/collaborative/tools/index.php(89): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest))
#5 {main}

Any new update of vbWiki to fix this anytime soon?

EDIT:
This seems to be your problem (I had to patch 3 or 4 hook functions in your code to make it work again, no biggie, but you'd probably want to do it in the release version anyway):
http://lists.wikimedia.org/pipermail...er/023348.html

ElfMage 09-28-2007 08:26 PM

Quote:

Originally Posted by slappy (Post 1349132)
Hey ElfMage, seems like vbWiki Standard isn't compatible with the new MediaWiki version 1.11.0. :(

:) Yes, some members made the modifications as listed above and got it working.

However, we just released vbWiki Std 1.3 RC5 which is compatible with MW 1.11+

Feel free to download it and let me know if it doesn't fix these errors.

ElfMage 09-28-2007 08:26 PM

Quote:

Originally Posted by AScherff (Post 1349075)
Hi,

i have installed vBulletin 3.6.8 installed and working. MediaWiki 1.11.0 ist installed and running.

I followed the installation instructions here, for these mod (RC4) but nothing happen. I also set

PHP Code:

$run_vbWikiPro_diag_tools true

but no effect.

I'm stuck. Please help. Thanks

Alfred

Hi, please download v1.3 RC5, and verify that the correct line is added to the LocalSettings.php.

Thanks.

AScherff 09-28-2007 09:36 PM

Quote:

Originally Posted by ElfMage (Post 1349195)
Hi, please download v1.3 RC5, and verify that the correct line is added to the LocalSettings.php.

Thanks.

Thanks for your reply,

i did what you recommended and installed RC5.

I put

PHP Code:

require_once "/absolute/path/to/your/forums/vbWiki/vbWiki_Init.php"

with the right path at the end of the

LocalSettings.php

(there is no ?>)

but still nothing happens. It seems, that the LocalSettings is not called neither the vbWiki_Init.php

Thanks
Alfred

ElfMage 09-28-2007 11:41 PM

Hi Alfred,

Just to be sure, you replaced the '/absolute/path/to/your/forums' with the correct local path, correct?

Could you send me a PM with a link to your wiki/forum?

Thanks.


All times are GMT. The time now is 09:39 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.01637 seconds
  • Memory Usage 1,867KB
  • 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
  • (8)bbcode_php_printable
  • (17)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