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)

BRotondi 09-29-2008 09:49 PM

On my Firefox Shift-F5 and F5 has no effect...

So I started MSIE. But why do I have login which points to the wiki-login instead the vb-Login?

NoeJeko 09-29-2008 09:52 PM

Not <Shift+F5> - <Ctrl+F5> (The control key)

Also, I'm not quite sure why but I'm out of time to troubleshoot it with you for now. In the meantime, you can make this modification to Userlogin.php to make it work until I can figure it out:

Find this line:

PHP Code:

$redirlink '?url=' $vbsso_wikipath '/index.php/' $returnNS

Replace it with this:

PHP Code:

$redirlink '?url=/wiki/index.php/' $returnNS

Please note, this only applies to BRotondi's case; I will update the code later tonight so that this works for all installations.

After you've made this change, please clear your browser's cache (Usually in privacy settings) because MediaWiki likes to cache pages until the end of time, heh...

BRotondi 09-29-2008 09:55 PM

1001 Thanks. For me it fine also - and I have 00:55 AM here... :)

Good Night to all!
Bruno

BRotondi 09-29-2008 10:00 PM

just checked your http://www.mymmogames.net/wiki/index.php/Main_Page -> Same Problem! ... will have a look after slleping :)

1001 Thanks again and a last good night!
Bruno

NoeJeko 09-29-2008 10:05 PM

That's really odd - from my browser both your and my site are working properly...

BRotondi 09-30-2008 03:49 AM

Good Morning!

Simple cache functions: First in the bed, first out of the bed :)

a) Perhaps we missunderstand each other: Your Wiki-Login works (wiki form ist shown but vb-login executed) and so does mine.
It irritated me to see a wiki-login, but I think it's the best solution to leave this that way since the wiki-login will be executed only in exception cases.

b) I put back the userlogin.php without your special edit for BRotondi's case... and get an error again: If I use the wiki-login I get the vB-confirm but then instead of the mainbage the followin error follows:

http://www.sinnimleben.net/index.php/Hauptseite not found
=> Same error we had with the forum: /wiki is missing

Bruno

BRotondi 09-30-2008 03:54 AM

=> b) does not happen now, because I put back the Userlogin.php to your special customization for me, but if you want to solve this problem for all users, ... be my guest :)
(perhaps the same bug you had to solve earlier for /forum, but this time for /wiki)

For me all is fine now. Thanks!
As little welcome for you I made some minor changes in your readme to help first-hacking people like me :) - hope you enyoj it!

Hope also also my customized BB-Code with the Button is interesting for you. ... it should, since this way it's very easy to link to the wiki.

Bruno

BRotondi 09-30-2008 05:47 AM

what we allso will have to do: The Sign in has buggy parts and no Register-Link Register:
<loginstart>
Anmelden
cow
Um sich bei Wiki SinnImLeben.net anmelden zu k?nnen, m?ssen Cookies aktiviert sein.
Bruno

NoeJeko 09-30-2008 04:00 PM

I'll work on those - I want to get the path settings into the ACP so people aren't having to alter the files manually. There will be a new version of this coming soon.

BRotondi 09-30-2008 04:15 PM

online too :) (Thanks for your work!)

Bruno

NoeJeko 09-30-2008 05:26 PM

Ok, I have a bit more intuitive version of this in work - I should have it released by tonight. It cuts out the need to edit every single file and gives an Admin CP option to set your wiki path. Hopefully this will ease the pain of installing a bit =]

There's nothing I can do to get around the edits to LocalSettings.php in the wiki or class_core.php, but these should be the only files you have to edit once this is over. Hopefully I can bypass the class_core edit once vB 3.8 is out.

BRotondi 09-30-2008 05:41 PM

And again a big thanks for your work!!
(I need more sleep tonight, so I will not be present for debugging :) )

Bruno

NoeJeko 09-30-2008 07:49 PM

It's been updated.

The process has been taken from 5 steps, editing in every file of every step, to 3 steps - and all you have to edit is LocalSettings.php.

If you've previously installed the vBulletin product, you'll need to uninstall it and then install this version as the product ID changed (it wasn't really designed as a product before...) Installation of the product is now a requirement or it will fail to function properly. You can simply upload the contents of "upload" to your wiki root and it will overwrite the necessary files. Make sure you check your LocalSettings.php file - there was a change to VB_SYSTEM_PATH.

Hopefully this will make it MUCH easier for people to use this product.

BRotondi 10-01-2008 07:13 AM

Very nice, Thanks!!!

I will check it and give you feedback in perhaps 2 weeks, since I got some new work now... (sorry...)

Bruno

BRotondi 10-01-2008 06:27 PM

o.k. some spare time and willing to try it :)
My localsettings has no "require_once( "$IP/includes/DefaultSettings.php" );", but a "require_once( "includes/DefaultSettings.php" );"

BRotondi 10-01-2008 06:34 PM

hmmm... did not worked...

I can register in vB, but Wiki is not touched...
I can logoff in Wiki, vB-Logoff works, but Wiki still logged on...
I can logon in Wiki, vB Appears (!) but in vB still logged out...

BRotondi 10-01-2008 08:02 PM

I went back to 1.0.3 which workes.
Perhaps I made some mistake... Does 2.0 work at someone else?

Bruno

BRotondi 10-01-2008 08:42 PM

Found an error of mine:
sinde I had only
require_once( "includes/DefaultSettings.php" );
I did only add
require_once( "includes/AuthPlugin_vBSSO.php" );
instead of
require_once( "$IP/includes/AuthPlugin_vBSSO.php" );

now I tried to remove $IP in my 1.0.3 installation and WOW! Same "not working" like written!

Sorry, my fault!!
... but no Time to test again 2.0 ...

Greetings
Bruno

BRotondi 10-01-2008 09:42 PM

... and now it does not work again even when I reinsert the $IP!!!!

Bruno
Edit: It was an issue from MediaWiki! See Post 61. Everything works fine.

NoeJeko 10-01-2008 10:36 PM

Um... I can't even begin to follow your string of posts. This product is working on 2 other boards - mine and my work's corporate site. The instructions said to completely remove the old product - if you downgraded back to 1.0.3 there will likely be a conflict. I'll need to see your LocalSettings.php file to begin trying to decipher what went wrong.

Also, did you check the value of Wiki Root in the ACP?

NoeJeko 10-01-2008 10:40 PM

Nevermind. I just checked your site and everything works 100% properly. I cannot understand what issues you are still having out of this.

If the fact that a user still appears logged in on the wiki after they log out - I stated before that this was an issue with the wiki cache. The user is in fact not logged in, but MediaWiki likes to remain in cache until the end of time. This is not something that I have any control over - at least within the scope of this plugin. MediaWiki itself states that "you may continue to appear logged in on some pages until you clear your cache."

BRotondi 10-02-2008 04:37 AM

Hi NoeJeko

Thanks!
In fact this MediaWiki-Cache-Problem is what made me cracy, since I searched the bug on my side...

When Changing 1.0.3 <-> 2.0 I always uninstalled all, checked the vB + Wiki and then installed the other Product

... and next Time I will alter the Reply instead of write a new one.... Sorry!

Greetings
Bruno

NoeJeko 10-02-2008 04:50 AM

So you see everything as working properly now? I did when I visited your site.

BRotondi 10-02-2008 05:05 AM

Good Morning NoeJeko!

Yes, 1.0.3 works fine.

Perhaps these two Infos are important for this Hack:
- Wiki-Cache(-Bug)
- Ctrl-F5 forcing reload

Thanks for your help! Your support is the nicest feature of this hack :)
Bruno

NoeJeko 10-03-2008 09:20 PM

Planned features coming in 2.0.1:

Usergroup mapping:
In the vB ACP you will have the ability to map forum usergroups to wiki usergroups. Useful if you have certain groups (like administrators) that you wish to automatically make sysops, etc.

In the vB ACP, you will be able to specify what (if any) usergroups will be unable to log into your wiki. This will not prevent them from viewing it, but it will prevent them from making edits.

Possibly more - and I'm open to taking feature requests.

BRotondi 10-03-2008 09:37 PM

Hi NoeJeko

Nice, that you are continuing this project!
If you can use these Icons: http://www.sinnimleben.net/forum/images/editor/wiki.gif http://www.sinnimleben.net/forum/ima...itor/wikip.gif I use them as BB-Buttons for Wiki and Wikpedia

One Feature I use manually: Mapping Forums to Wiki-Pages (adding a "(Wiki)" at the Forum-Name and a redirect-Page.

00:37 here, so good night!
Bruno

Ozidoggy 10-04-2008 01:56 AM

I am new at all of this. I am unsure as to way if I log into wiki with my forum user and passowrd as admin, why I do not have admin rights in wiki. I can't edit for example the navigation bar, as it says I don't have the right permssions.

Can anyone point me in the right direction?

Thanks

GoodOmens 10-04-2008 12:52 PM

Great plugin.

Just had one issue with it with redirects for logins.

I don't use /wiki/index.php/Page_Name but /wiki/Page_Name so had to edit your hard coded path to get rid of the problem.

Dunno how to add a soft path to fix the problem for everyone but know there should be a way.

NoeJeko 10-04-2008 01:02 PM

Quote:

Originally Posted by Ozidoggy (Post 1636896)
I am new at all of this. I am unsure as to way if I log into wiki with my forum user and passowrd as admin, why I do not have admin rights in wiki. I can't edit for example the navigation bar, as it says I don't have the right permssions.

Can anyone point me in the right direction?

Thanks

This falls under my last post about changes coming in 2.0.1 =] It'll be out soon (hopefully tonight) so stay tuned!

Quote:

Originally Posted by GoodOmens (Post 1637120)
Great plugin.

Just had one issue with it with redirects for logins.

I don't use /wiki/index.php/Page_Name but /wiki/Page_Name so had to edit your hard coded path to get rid of the problem.

Dunno how to add a soft path to fix the problem for everyone but know there should be a way.

I actually didn't even think about this. In 2.0.1, I'll add a switch allowing you to specify if you use Wiki's short URL options. Thanks for the feedback!

Tianuc 10-04-2008 01:59 PM

Hi NoeJeko~I love you ^.^
When 2.0.1 release?

GoodOmens 10-04-2008 04:56 PM

Quote:

Originally Posted by NoeJeko (Post 1637133)
This falls under my last post about changes coming in 2.0.1 =] It'll be out soon (hopefully tonight) so stay tuned!



I actually didn't even think about this. In 2.0.1, I'll add a switch allowing you to specify if you use Wiki's short URL options. Thanks for the feedback!

Sweet, as a former coder I know you always can't think of everything. We, as users, find interesting ways to break things :-).

Anyways the only other really missing feature would be who's online status.

I get things like:

Unknown Location
/action/edit/Classes/Dwarf_Fighter

Etc ....

I also noticed some Hardcoded values for your MyMMOGames Wiki and Blog in place.

If I get a chance this weekend I'll see if I can come up with a nice clean solution. Regardless this plugin is heading in the right direction.

NoeJeko 10-04-2008 11:03 PM

Version 2.1.0 has been released. The following changes were made:

- Feature: ACP option to use MediaWiki Short URLs
- Feature: ACP option to set sysop groups
- Feature: ACP option to set bureaucrat groups
- Feature: ACP option to disallow login to certain groups
- Feature: ACP option to change WOL display text

Please read the upgrade instructions in readme.txt. If you're upgrading from version 2.0.x, the upgrade is very quick but you must ensure you check the new ACP settings or you may give someone unauthorized access to your wiki. I recommend turning off vBulletin before the upgrade.

Quote:

Originally Posted by GoodOmens (Post 1637255)
I get things like:

Unknown Location
/action/edit/Classes/Dwarf_Fighter

Etc ....

I didn't see this in time to address it in this version. You have an interesting wiki setup and I'll do my best to see if I can code support for that.

Quote:

Originally Posted by GoodOmens (Post 1637255)
I also noticed some Hardcoded values for your MyMMOGames Wiki and Blog in place.

If I get a chance this weekend I'll see if I can come up with a nice clean solution. Regardless this plugin is heading in the right direction.

Removed in version 2.1.0.

GoodOmens 10-05-2008 04:36 AM

Quote:

I didn't see this in time to address it in this version. You have an interesting wiki setup and I'll do my best to see if I can code support for that.
Yea so please don't try and accommodate me. I've found my own solution just adding on to your code. I'll update it to work with 2.1 and post my results (If however you want to know how I did my install let me know as I'm more then happy to share ... nothing more then htaccess and simple localsetting settings).

I'm going a step beyond just using /wiki and have /action for all action events (Instead of index.php&action=)

While I would classify it as interesting (I doubt many use it) it is a documented approach.

You can see my site:

http://www.lineagejunkies.com
http://www.lineagejunkies.com/wiki

Thanks again for providing a *working* plugin with fast updates!

(Also thanks for not coming off as arogant like the ElfMage person who programed the last mediawiki plugin .... I really appreciate your hard work)

Ozidoggy 10-05-2008 07:42 AM

Works GREAT!

Anyone know how I can wrap my mediawiki so it has my VB header and footer? Or wrap it completely with VB oo VBadvanced?

Cheers

NoeJeko 10-05-2008 05:00 PM

Quote:

Originally Posted by GoodOmens (Post 1637589)
Thanks again for providing a *working* plugin with fast updates!

(Also thanks for not coming off as arogant like the ElfMage person who programed the last mediawiki plugin .... I really appreciate your hard work)

Thanks! Positive feedback give me motivation to continue development on this product. If no one had used it then it most likely would have never evolved, heh - it worked for my purpose.

Quote:

Originally Posted by Ozidoggy (Post 1637652)
Works GREAT!

Anyone know how I can wrap my mediawiki so it has my VB header and footer? Or wrap it completely with VB oo VBadvanced?

Cheers

This discussion somewhat started earlier in the thread. For my site, I modified the wiki templates directly. Sorry, but between work, running a game community, and trying to keep somewhat of a life, I really don't have time to go as in-depth as elfmage tried to go. Maybe one day, but there are no plans for this functionality in the foreseeable future.

KingPin6 10-06-2008 01:05 AM

the system seems to work as far as sending me to me VB for logging in but when I get back to the wiki it seems to not have me logged in, I have tried multiple times to login. not sure why its not working. any ideas/hints welcome.

Linux, vb 3.7.3, MW 1.13

(not on my main forums, rather on a new forum im working on)

NoeJeko 10-06-2008 01:18 AM

Are your forums and wiki on different subdomains? If so, do you have your cookie settings properly configured? If not, press <Ctrl+F5> after you log in and are back on the wiki to see if it's a cache issue.

blaze718 10-06-2008 01:30 AM

i downloaded MediaWiki but theres no Localsettings.php file anywhere

NoeJeko 10-06-2008 01:46 AM

Quote:

Originally Posted by blaze718 (Post 1638246)
i downloaded MediaWiki but theres no Localsettings.php file anywhere

You need to use the MediaWiki configuration script to generate LocalSettings.php.

blaze718 10-06-2008 01:52 AM

sorry i don't get that


All times are GMT. The time now is 09:29 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.01282 seconds
  • Memory Usage 1,842KB
  • 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
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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