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 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 01:14 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.01293 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
  • (1)bbcode_php_printable
  • (4)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