vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - MediaWiki/vBulletin Single Sign-On (https://vborg.vbsupport.ru/showthread.php?t=191186)

NoeJeko 09-27-2008 06:02 PM

To do it as I did, you have to modify an existing wiki skin or create your own. It's a fair amount of work since MediaWiki uses absolute positioning and that's outside the scope of this plugin. Sorry, but I just don't have time for requests such as this.

leonnix 09-27-2008 06:04 PM

I can try to do it on my own ! I just need your tips on this; cause I don't know where to begin !

NoeJeko 09-29-2008 06:54 PM

Sorry but I really don't know what to tell you - you can just do what I did and modify one of the existing MediaWiki skins. I used MonoBook.

It's possible, but unlikely, that this could develop into a full integration (skin/users/etc) one day but I'm really not inclined to do that as it works as I have it. Hopefully the vB team will take my request into consideration so I can just package this as one product and one wiki plugin.

BRotondi 09-29-2008 07:14 PM

Thanks for this Addon! It is really, what I searched for ... and I also almost bought vbWiki Pro.

I also changed the following, which perhaps also helps other users:
a) Before each Forum description I add a Link "wiki" which referrs to the wiki page oft this forum
  • ACP -> Foren -> before each description <a href="../wiki/index.php?search=TITLE&go=Seite">Wiki</a>&nbsp;&nbsp;
b) Added a wiki-Button http://SinnImLeben.net/tmp/wiki.gif in the Editor with a customized BB-Tag (save to images/editor/wiki.gif)
  • ACP -> BB-Codes
    • BB-Code [wiki=Thema]Beschreibung[/wiki]
    • HTML-Code <a href="../wiki/index.php?search={option}&go=Seite">{param}</a>
    • Image: wiki.gif
This is my part to say thanks :D

Are there other interesting MediaWiki-Integration-Hacks?

Thanks!
Bruno

BRotondi 09-29-2008 07:53 PM

In your Readme some things are unclear:
STEP 3
Edit LocalSettings.php.
-> Do you mean the one on the wiki-root?

Add this line after DefaultSettings
-> do you mean after require_once( "includes/DefaultSettings.php" );?

Now, change/add this setting:
$wgGroupPermissions['*']['createaccount'] = false;
-> do you mean after require_once( "$IP/includes/AuthPlugin_vBSSO.php" );
STEP 4
Edit class_core.php
-> do you mean [vB]/includes/class_core.php

STEP 5
Import the product
-> do you mean ACP -> Addons&Plugins -> Addons -> Upload from your Computer

Edit the plugin "MMOG Wiki: Online Location Hack"
-> This I do not understand at all...

I'm new in Hacks, but perhaps not the only one, so perhaps also others are unsure on what to do...
But anyway 1001 Thanks for the Hack!!

Bruno

BRotondi 09-29-2008 08:07 PM

I skipped the red step above and tested what I've done yet:
- vBulletin still works
- wiki first not, but the problem was obvious:

_________________________________
Warning
: require_once(/sinnimleben.net/forum/global.php) [function.require-once]: failed to open stream: No such file or directory in /home/.lukey/br_noreply/sinnimleben.net/wiki/includes/AuthPlugin_vBSSO.php on line 257

Fatal error: require_once() [function.require]: Failed opening required '/sinnimleben.net/forum/global.php' (include_path='/home/.lukey/br_noreply/sinnimleben.net/wiki:/home/.lukey/br_noreply/sinnimleben.net/wiki/includes:/home/.lukey/br_noreply/sinnimleben.net/wiki/languages:.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.lukey/br_noreply/sinnimleben.net/wiki/includes/AuthPlugin_vBSSO.php on line 257
_________________________________

I realized that the FTP-Path seems not to be the same like the server path. So I changed in STEP 1
define( VB_SYSTEM_PATH, '/sinnimleben.net/forum' );
to
define( VB_SYSTEM_PATH, '/home/.lukey/br_noreply/sinnimleben.net/forum' );

Now Wiki works :), have to test the Hack itself :)

But this is also unclear: Now my users will have to register only in wiki or only in VB?

Thanks!
Bruno


BRotondi 09-29-2008 08:26 PM

(Sorry for all these messages, but with 45 downloads and 15 installs perhaps it's written really a little complicated...)

Now I cannot logoff in wiki any more, after pressing "log off" (or "sign out", here I have only german...) I got this error:
The requested URL /login.php was not found on this server.

I installed wiki to /home/.lukey/br_noreply/sinnimleben.net/wiki
and vB to /home/.lukey/br_noreply/sinnimleben.net/forum

The Link under "logout" points to http://www.sinnimleben.net/login.php?do=logout&...
which of course is false... must try to find out where I have to fix that...

Thanks for any help!
Bruno

NoeJeko 09-29-2008 08:34 PM

Wow.. that's a lot of questions and many of which I thought were ... rather obvious but I'll do my best to answer them.

Quote:

Originally Posted by BRotondi (Post 1633351)
In your Readme some things are unclear:
STEP 3
Edit LocalSettings.php.
-> Do you mean the one on the wiki-root?

There should only be one LocalSettings.php and yes it is located on the wiki root.

Quote:

Originally Posted by BRotondi (Post 1633351)
Add this line after DefaultSettings
-> do you mean after require_once( "includes/DefaultSettings.php" );?



Yes, there should be only one reference to DefaultSettings in that file and that's it.

Quote:

Originally Posted by BRotondi (Post 1633351)
Now, change/add this setting:
$wgGroupPermissions['*']['createaccount'] = false;

Quote:

Originally Posted by BRotondi (Post 1633351)
-> do you mean after require_once( "$IP/includes/AuthPlugin_vBSSO.php" );

Wherever in LocalSettings that the other account permissions are set. Look for the other similar lines and add it there. I can't give you an exact line number because your LocalSettings will be different than mine.

Quote:

Originally Posted by BRotondi (Post 1633351)
STEP 4
Edit class_core.php
-> do you mean [vB]/includes/class_core.php

There should be only one class_core.php and yes, this is where it is located.

Quote:

Originally Posted by BRotondi (Post 1633351)
STEP 5
Import the product
-> do you mean ACP -> Addons&Plugins -> Addons -> Upload from your Computer

Yes.

Quote:

Originally Posted by BRotondi (Post 1633351)
Edit the plugin "MMOG Wiki: Online Location Hack"
-> This I do not understand at all...

I'm new in Hacks, but perhaps not the only one, so perhaps also others are unsure on what to do...
But anyway 1001 Thanks for the Hack!!

Bruno

ACP->Edit Plugins->MMOG Wiki: Online Location Hack

Quote:

Originally Posted by BRotondi (Post 1633380)
(Sorry for all these messages, but with 45 downloads and 15 installs perhaps it's written really a little complicated...)

Yes, that's why I said it was cumbersome. I explained why it was complicated in the first post.


Quote:

Originally Posted by BRotondi (Post 1633380)
Now I cannot logoff in wiki any more, after pressing "log off" (or "sign out", here I have only german...) I got this error:
The requested URL /login.php was not found on this server.

I installed wiki to /home/.lukey/br_noreply/sinnimleben.net/wiki
and vB to /home/.lukey/br_noreply/sinnimleben.net/forum

Thanks for any help!
Bruno

[S]You didn't properly follow step 2 of the instructions if you're getting this error.[/S]

My mistake - this will be caused if you didn't properly set $vbsso_forumpath in AuthPlugin_vBSSO.php.

BRotondi 09-29-2008 08:58 PM

I still need your help:
Quote:

Originally Posted by NoeJeko (Post 1633387)
Wherever in LocalSettings that the other account permissions are set. Look for the other similar lines and add it there.

Sorry, I do not understand, what you mean... There is no line with Permissions or account (see Attachement)


Quote:

Originally Posted by NoeJeko (Post 1633387)
this will be caused if you didn't properly set $vbsso_forumpath in AuthPlugin_vBSSO.php.

AuthPlugin_vBSSO.php seems correct:
define( VB_SYSTEM_PATH, '/home/.lukey/br_noreply/sinnimleben.net/forum' );
$vbsso_forumpath = '/forum';

and also Userlogin.php, which already was set up correct:
$vbsso_forumpath = '/forum';
$vbsso_wikipath = '/wiki';

Quote:

Originally Posted by NoeJeko (Post 1633387)
ACP->Edit Plugins->MMOG Wiki: Online Location Hack

I changed nothing since /wiki/ ist correct...

Thanks for further helps!
Bruno

NoeJeko 09-29-2008 09:09 PM

You can skip that step; however users will show up in your "Who's Online" list as "Unknown Location" for moderators and "Viewing Index" for users.

Also, there was an error in the original AuthPlugin_vBSSO.php - a global variable was not declared as global. I have updated the plugin as necessary; please download the latest copy of it and make the required changes. Only AuthPlugin_vBSSO.php and the MMOG Wiki plugins were changed; there is no need to update Userlogin.php. I visited your forum and was able to register an account - then go to the wiki and edit my User:talk page without creating a new wiki account so it's working. This should give you the logout link functionality.

Thanks for helping me find this bug!


All times are GMT. The time now is 06:38 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.01472 seconds
  • Memory Usage 1,766KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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