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)

Quantnet 06-17-2007 01:52 AM

I have installed the Pro version with MW 1.10.0 but the log in doesn't seem to take it

Turn the Diagnosis tool on, everything seems ok, it found everything...

When I log in from the forum site, go the wiki site, it logs me out, i log in from the wiki site again and it doesn't take it...if i move to the forum side, it shows i'm logged in again.

I have the 1.6.10 version before and everything seems to work perfectly. I just upgraded it to 1.10.0 version and this happens.

Appreciate your help, ElfMage

ElfMage 06-17-2007 02:20 AM

Hi. Could you enable URL Commands from vbWiki Pro's Admin CP Settings, if you'd like you can set the IP filter to 67.191.58.190. Thanks.

Quantnet 06-17-2007 02:59 AM

Quote:

Originally Posted by ElfMage (Post 1270111)
Hi. Could you enable URL Commands from vbWiki Pro's Admin CP Settings, if you'd like you can set the IP filter to 67.191.58.190. Thanks.

I did.
Thanks for your support. Look forward to your help.

gforce75 06-17-2007 03:05 AM

Elfmage, I agree with you. It's good for knowledge as you stated.

Quantnet 06-17-2007 05:00 AM

Quote:

Originally Posted by ElfMage (Post 1270111)
Hi. Could you enable URL Commands from vbWiki Pro's Admin CP Settings, if you'd like you can set the IP filter to 67.191.58.190. Thanks.

I found the solution from your site http://www.nuhit.com/forums/4465-post7.html

I need to set the domain to .website.com and path to /

Now it works perfectly...weird...I didn't have to do it in earlier version.

Now that this issue solved, may I have your attention and help in another one.

I have a customized header template that has navigation bar in a similar fashion as vb.org in that the bar will be highlighted depends on the location of the page you visit. If you at forum home, the FORUM button will be highlighted, if you at the VBA home, the HOME will be highlighted and so on. I'd like to have it so that the Wiki will be highlighted when i'm on any page of wiki.

Here is my current code
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'">tab<else />tabpage</if>">Wiki</a>

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


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

This does not work at the moment.

When i'm at VBA home, both HOME and WIKI are highlighted
When I'm at forum, both FORUM and WIKI highlighted
When i'm on wiki page, the FORUM highlight

You can visit www.quantnet.org and see for yourself.

Do you know any page location I can use ?

ElfMage 06-17-2007 01:00 PM

Quote:

Originally Posted by Quantnet.org (Post 1270174)
I found the solution from your site http://www.nuhit.com/forums/4465-post7.html

I need to set the domain to .website.com and path to /

Cool. Glad you got it working.:cool:

Quote:

Originally Posted by Quantnet.org (Post 1270174)
I have a customized header template that has navigation bar in a similar fashion as vb.org in that the bar will be highlighted depends on the location of the page you visit. If you at forum home, the FORUM button will be highlighted, if you at the VBA home, the HOME will be highlighted and so on. I'd like to have it so that the Wiki will be highlighted when i'm on any page of wiki.

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


ElfMage 06-17-2007 01:06 PM

FYI, I also replied to your other support thread. Thanks.

Quantnet 06-17-2007 07:15 PM

Quote:

Originally Posted by ElfMage (Post 1270292)
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.

YESSSSSSSSSSSSSSSSSSSSSS

It works perfectly....I tested it quickly but everything seems to work as expected. You are the man ;)

Thanks very much.

Quantnet 06-17-2007 10:30 PM

Quote:

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

I sent you a PM with an id
Can you test it with some different browsers to see if it work properly now.

Thanks

RVSmarter 06-23-2007 03:30 AM

Hi I am trying to install vbwiki standard at the moment and I went through the instructions and I get the following error on the wiki mainpage:

Code:

Warning: require_once(/includes/AuthPlugin.php) [function.require-once]: failed to open stream: No such file or directory in /home/mathhelp/public_html/math-help/vbWiki/vbWiki_Auth.php on line 14

Fatal error: require_once() [function.require]: Failed opening required '/includes/AuthPlugin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mathhelp/public_html/math-help/vbWiki/vbWiki_Auth.php on line 14

Line 14 reads: require_once( "$IP/includes/AuthPlugin.php");


What shall I do????

You can see for yourself here: www.mathhelpforum.com/wiki

Quantnet 06-23-2007 12:33 PM

Quote:

Originally Posted by RVSmarter (Post 1274395)
What shall I do????

You can see for yourself here: www.mathhelpforum.com/wiki

You also have a double welcomeheader on your forum home :D

Jim McAnally 06-24-2007 07:58 AM

Guess my question doesnt warrant an answer.

ElfMage 06-24-2007 01:28 PM

Quote:

Originally Posted by Jim McAnally (Post 1275208)
Guess my question doesnt warrant an answer.

Hi Jim,

My apologies for that. Somehow I missed your post, definitely not intentional.

Quote:

Originally Posted by Jim McAnally (Post 1255655)
If I have media wiki on a seperate domain and box than Vbulletin is there a way to get this to work or should I move this to the same server?

If so it would still be to seperate domains.

(Notice that the rest of this post does not refer to installing vbWiki using different sub-domains).

It is always easier and much less complex to have both systems on the same server and domain, this is recommended, but not mandatory.

We have a couple of customers that are using a setup similar to what you describe. We even saw a setup where vB and MW were installed on servers located on different hosting networks.

There are three components that need to be taken care of:
1) Access to vBulletin's DB
2) Access to vBulletin's installation
3) Cookie Tunneling for synchronized session

#3 is a feature that is only available in vbWiki Pro. However if you are interested in vbWiki Std, there is a free mod here at vb.org that let's you do the same thing (CES Cookie Cutter).

#1 depends on your installation.

For instance in these setups it is recommended to duplicate vB installation folder over in your MW server. The alternative is to access the files over the network, which has lower performance.

#2 is simple, all that is needed is to let your MW server talk to vB's MySQL server. However depending on how #2 is implemente, it may be required to change vBulletin's server name from 'localhost' to the actual IP or host name where MySQL is hosted.

All in all, it is doable, but 10-20 times more complex than a regular installation. For more information refer to this article over at our site:Installing vbWiki Pro in a multiple domain setup

Anyways, read through this, and if you have any questions, let me know. Thanks.

ElfMage 06-24-2007 01:32 PM

Quote:

Originally Posted by RVSmarter (Post 1274395)
Hi I am trying to install vbwiki standard at the moment and I went through the instructions and I get the following error on the wiki mainpage:

Code:

Warning: require_once(/includes/AuthPlugin.php) [function.require-once]: failed to open stream: No such file or directory in /home/mathhelp/public_html/math-help/vbWiki/vbWiki_Auth.php on line 14

Fatal error: require_once() [function.require]: Failed opening required '/includes/AuthPlugin.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mathhelp/public_html/math-help/vbWiki/vbWiki_Auth.php on line 14

Line 14 reads: require_once( "$IP/includes/AuthPlugin.php");


What shall I do????

You can see for yourself here: www.mathhelpforum.com/wiki

Hi,

This is usually caused by entering the incorrect path on the 'require_once' line added to MW's LocalSettings.php.

Verify that the path entered in LocalSettings is an absolute local directory path.

For instance, this is wrong:

require_once "http://www.mydomain.com/forums/vbWiki/......php"; // THIS IS WRONG

The right way is as follows:

require_once "/local/path/to/your/forum/installation/vbWiki/vbWiki_Init.php";


Entering the correct path for your server.


Could you verify if this is the issue in your installation?

Thanks.

RVSmarter 06-24-2007 06:16 PM

Quote:

Originally Posted by ElfMage (Post 1275393)
Hi,

This is usually caused by entering the incorrect path on the 'require_once' line added to MW's LocalSettings.php.

Verify that the path entered in LocalSettings is an absolute local directory path.

For instance, this is wrong:

require_once "http://www.mydomain.com/forums/vbWiki/......php"; // THIS IS WRONG

The right way is as follows:

require_once "/local/path/to/your/forum/installation/vbWiki/vbWiki_Init.php";


Entering the correct path for your server.


Could you verify if this is the issue in your installation?

Thanks.

Yes I believe this is it. Thank you.

subnet_rx 06-29-2007 03:07 PM

I just read that MediaWiki 1.7 and above is not just compatible with, but requires PHP5. That's kind of weird to me. I'm having to use a much older version because my server is running 4.4.4

subnet_rx 06-29-2007 07:59 PM

I'm having problems with the install now. I'm getting this error:

Code:

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myhattie/public_html//forums/vbWiki/arcane_vbulletin_core.php on line 79
I believe I have LocalSettings.php set correctly. What else should I check?

Quantnet 06-30-2007 01:23 AM

look at this
/home/myhattie/public_html//forums/vbWiki/arcane_vbulletin_core.php on line 79

You have double // in front of forums/vbWiki

Remove one of them.

ElfMage 06-30-2007 02:07 AM

Quote:

Originally Posted by subnet_rx (Post 1279226)
I just read that MediaWiki 1.7 and above is not just compatible with, but requires PHP5. That's kind of weird to me. I'm having to use a much older version because my server is running 4.4.4

:) That's a system requirement for MediaWiki. We have a lot of users in the same situation using MW 1.6.x with no trouble.

ElfMage 06-30-2007 02:08 AM

Quote:

Originally Posted by subnet_rx (Post 1279417)
I'm having problems with the install now. I'm getting this error:

Code:

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/myhattie/public_html//forums/vbWiki/arcane_vbulletin_core.php on line 79
I believe I have LocalSettings.php set correctly. What else should I check?


In addition to what Quantnet.org mentions, it always helps to turn on vbWiki's diagnostics mode. Try it, and usually it will identify what needs to be corrected.

quiklink 07-02-2007 01:38 AM

Quote:

Originally Posted by ElfMage (Post 1279574)
:) That's a system requirement for MediaWiki. We have a lot of users in the same situation using MW 1.6.x with no trouble.

Yup using MW 1.6.1 and vbWiki (pro). Works great! Started with this lite version and liked it so much I upgraded. I highly recommend it.

ElfMage 07-02-2007 11:21 PM

:) Thanks.

SirTalksalot 07-18-2007 07:05 PM

Hi,

Thank you for this great MOD, I've already get it working on one site. But when I tried it here : http://www.warwickshireonline.com/wiki/

I just get a blank page. I've turned on the Diagnostics tool, but it's not telling me anything I can understand. Is there anything I can try to fix this?

Thank you in advance, I really appreciate your help. :)

ElfMage 07-19-2007 03:47 AM

Hi,

What version of PHP is your site running?

I see in the diagnostic tools output that MW is running on 5.2, however, there is another place where it mentioned PHP 4.4.7

Is it possible that your site has both 5.2 and 4.4.7 and both packages are running different versions of PHP?

Thanks.

SirTalksalot 07-19-2007 04:41 PM

Quote:

Originally Posted by ElfMage (Post 1295328)
Hi,

What version of PHP is your site running?

I see in the diagnostic tools output that MW is running on 5.2, however, there is another place where it mentioned PHP 4.4.7

Is it possible that your site has both 5.2 and 4.4.7 and both packages are running different versions of PHP?

Thanks.

That would make a lot of sense. PHP 5 is only activated in the folder and all it's subfolers, if I ask it to in the htaccess. The thing is, I already have vbwiki successfully running here http://mediabase.productionforum.co.uk

The only difference is that the wiki is in a sub-domain while VBulletin is in the main domain. Do you think it's worth activation PHP 5 for VBulletin too? Will I need to change any setting in VB if I do that?

Thank you for your help Elfmage, it's very much appreciated. :)

ElfMage 07-20-2007 04:36 AM

Quote:

Originally Posted by SirTalksalot (Post 1295840)
That would make a lot of sense. PHP 5 is only activated in the folder and all it's subfolers, if I ask it to in the htaccess. The thing is, I already have vbwiki successfully running here http://mediabase.productionforum.co.uk

The only difference is that the wiki is in a sub-domain while VBulletin is in the main domain. Do you think it's worth activation PHP 5 for VBulletin too? Will I need to change any setting in VB if I do that?

I think I have seen a couple of cases before where they had this setup (one system running PHP4 and the other one PHP5) and it got fixed when both were set to the same version.

Now, I haven't tested this scenario, but at first glance it makes sense as to why it would through PHP in for a loop... :rolleyes:

My suggestion is to try this in a test environment before making any changes on your live site.

Quote:

Originally Posted by SirTalksalot (Post 1295840)
Thank you for your help Elfmage, it's very much appreciated. :)

Glad to be of service.

Dontom 07-20-2007 07:28 AM

Thanks for the great mod - installation was easy (even thouzgh we run it from a different server than our vb) - mapping of rules also was ok, perhaps you just paste the information how to map usergroups from vb to MW into the first post...

Thanks again
Tom

Taios 07-21-2007 06:34 PM

...So you're supposed to replace the closing tag in LocalSettings.php with requireonce.
Well, the ?> doesn't seem to exist in my LocalSettings :P I just get an error

Code:

Warning: require_once(<FULL PATH>) [function.require-once]: failed to open stream: No such file or directory in <FULL PATH> on line 123

Fatal error: require_once() [function.require]: Failed opening required '<FULL PATH>' (include_path='<PATH>') in <FULL PATH> on line 123

:/

quiklink 07-21-2007 06:39 PM

Quote:

Originally Posted by Taios (Post 1297572)
...So you're supposed to replace the closing tag in LocalSettings.php with requireonce.
Well, the ?> doesn't seem to exist in my LocalSettings :P I just get an error

Code:

Warning: require_once(<FULL PATH>) [function.require-once]: failed to open stream: No such file or directory in <FULL PATH> on line 123

Fatal error: require_once() [function.require]: Failed opening required '<FULL PATH>' (include_path='<PATH>') in <FULL PATH> on line 123

:/

No you place it just above the closing tag. If you replace the closing tag, yeah you are going to get an error.

ElfMage 07-21-2007 07:07 PM

Quote:

Originally Posted by Dontom (Post 1296324)
Thanks for the great mod - installation was easy (even thouzgh we run it from a different server than our vb) - mapping of rules also was ok, perhaps you just paste the information how to map usergroups from vb to MW into the first post...

Thanks again
Tom


Hi Tom, thanks for the feedback. I'll do that. There is a sample in the vbWiki_Settings.php, but I'll paste it here, for clarity's sake..

Thanks.

ElfMage 07-21-2007 07:10 PM

Quote:

Originally Posted by Taios (Post 1297572)
...So you're supposed to replace the closing tag in LocalSettings.php with requireonce.
Well, the ?> doesn't seem to exist in my LocalSettings :P I just get an error

Code:

Warning: require_once(<FULL PATH>) [function.require-once]: failed to open stream: No such file or directory in <FULL PATH> on line 123

Fatal error: require_once() [function.require]: Failed opening required '<FULL PATH>' (include_path='<PATH>') in <FULL PATH> on line 123

:/

Hi,

Some versions of Mediawiki used to have the closing ?>

I will add a note that if the closing ?> is not found, to simply add the require_once at the end of the file.

In this case the error seems to be caused by the path not pointing to where vbWiki is installed. Please verify the install location and the path+filename in the require_once.

Thanks.

ElfMage 07-21-2007 07:12 PM

Quote:

Originally Posted by quiklink (Post 1297573)
No you place it just above the closing tag. If you replace the closing tag, yeah you are going to get an error.

In newer versions of PHP (PHP4+) the closing tag is optional.

I prefer to not end any file with the closing tag because it is easy to leave empty lines at the end of the file, which then causes trouble with HTTP headers, cookies etc.

Taios 07-21-2007 08:50 PM

Quote:

Originally Posted by ElfMage (Post 1297616)
Hi,

Some versions of Mediawiki used to have the closing ?>

I will add a note that if the closing ?> is not found, to simply add the require_once at the end of the file.

In this case the error seems to be caused by the path not pointing to where vbWiki is installed. Please verify the install location and the path+filename in the require_once.

Thanks.

Thanks, but yes, I have tried it at the end of the file.
The location seems to be correct, but I'll check again.
Edit: Fixed it, thanks.

ElfMage 07-22-2007 12:35 AM

Cool. Glad to hear that.

NewAyenee 07-27-2007 12:54 PM

Quote:

Originally Posted by sickboy6ths (Post 1156980)
Heya, Very nice product thanks! I integrated it and it works fine, .. it shows that im logged in etc. etc. but when I want to edit a wiki page, I get: Sorry! We could not process your edit due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Wiki Version: 1.9.0
VB Version: 3.6.3
www.6thsense.eu

Getting the same session error on my site. I didn't see a fix ever posted for this. Any help available?

ElfMage 07-27-2007 07:27 PM

Hi, this session error is usually caused by the PHP sessions not working properly.

Could you verify that the session.save_path is properly set in the php.ini and that it points to a directory where the web server has write permissions?

You can also run vbWiki's Diagnostic Tools where more information can be found. If you'd like PM a link to your site and enable URL commands in vbWiki's settings file.

Thanks.

NewAyenee 07-28-2007 11:49 AM

I got it, elf. Turns out my host hadn't set the path properly with write permissions. Its working now.

Thanks, and great hack.

Strafe 08-05-2007 12:59 PM

I've been using Standard on my site for quite some time now.

My Wiki: http://www.luniafan.com/wiki
My Forums: http://www.luniafan.com/forums

The wiki works as a free-for-all edit right now. All registered members are able to edit to their heart's content. Now, I wanted to add sysop members in th Wiki. I went ahead and input all permissions in the LocalSettings.php file in MediaWiki for the sysop group. However, when I try implementing it by putting a member in the sysop group, it seems to be giving him normal permissions - no administrating powers of a sysop. Just like he is on the same usergroup but with a different usergroup name.

I was wondering if the usergroup permissions in vBulletin conflicts with MediaWiki. Because right now, no matter how many people I assign on the sysop usergroups they seem to be getting no special powers.

ElfMage 08-05-2007 01:08 PM

Hi Strafe,

vbWiki (both Standard and Pro editions) have an option to synchronize vBulletin's usergroups into MediaWiki usergroups.

If group synchronization is on (it is on by default), then whenever a user logs on, his/her MW groups are synchronized with whatever groups he/she is in vBulletin.

The setting that controls this mapping is named $g_vbWiki_Usergroup_Mapping, here is an example (and the default for this setting):

PHP Code:

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

If you want to change this mapping, add these lines of code in vbWiki_Init.php, after the line that says 'CUSTOM SETTINGS START'.

In the example above all vBulletin users who are part of vBulletin's usergroup with id 6 (Administrators), will be added to the MW usergroups sysop and bureaucrat.

This assignment overrides MediaWiki's.

Strafe 08-07-2007 03:39 AM

Hey there ElfMage!

Thanks for taking time in responding. What should I do if I just want to place hand-picked members in the sysop group? How should I edit the lines?


All times are GMT. The time now is 05:50 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.01728 seconds
  • Memory Usage 1,882KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (23)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