Thank You for this Solution, didn't know $wgArticlePath and (additionally)
$wgActionPaths till now. This works correctly at this time, without these
messy cookies.
I have also already written an AuthenticationPlugin for my login structure,
but I wasn't able to call this on every page-load. It worked correctly if
one is logged in in my system an then clicked on the LoginButton. But I
don't want that my users have to do this, so I found this "hook-solution"
posted ago.
So, is there a possibillity to try to autologin on every pageload, so that
the additional click isn't nessessarry?
Thanks
Markus
----- Original Message -----
From: "Platonides" <Platonides(a)gmail.com>
To: <mediawiki-l(a)lists.wikimedia.org>
Sent: Saturday, September 15, 2012 1:01 AM
Subject: Re: [MediaWiki-l] Integration of Mediawiki in own PHP-Site
On 05/09/12 12:36, DebianUser(a)gmx.de wrote:
Hello Out There,
my english isn't that good, I've added the discription of my problem in
german below.
I'm trying to integrate multiple MediaWikis into my own page. I've some
own login-structures and mutiple projects which can have a wiki. If a
user is a member in a project holding a wiki, he may access this trough
my own site.
The wiki-farm is set up via database-prefixes, so every "sub-wiki" has
its own prefix. I think I need this, because I have to generate new wikis
in runtime from my page. When calling the wiki (via IFrame from my own
site) I'm adding an get-parameter which indicates which wiki should be
loaded and set the database-prefix as needed. In Mediawiki's config I'm
saving this parameter in a Cookie, so that wiki-internal links will work
(they don't have the get-parameter). Like this it's possible to access
multiple wikis at the moment.
One Issue here: If a user accesses my page via multiple tabs or
browser-windows, they get strange errors if editing a page on one tab and
surfing an other wiki on an other tab. Like this they get the cookie of
the other wiki while editing the first. If they hit save on the first
tab, it seams that they override the content in the second wiki (second
tab) with the one supposed to come to the first. It seams logic that this
happens, but I have no clue how to prevent this. Is it possible to add an
additional parameter to every wiki-generated link, so that I can add the
"db-prefix" into every link? That way I wouldn't need the Cookie.
This is overly complex.
Simply set $wgArticlePath to what you want, either as a get parameter or
as a "fake path".
That cookie trick is a path for utterly confusion.
Also see how to create an AuthPlugin for your login structures.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l