We have recently had to re-load our wiki because of some name space
problems. For the file pages, we did an SQL dump of the File table and
re-loaded the SQL into our new wiki. This appeared to load all images
back into the wiki database retaining their location in the Images
folder and its sub-folders. Pages using the images work OK, displaying
the images as required. However, the Special:All pages list page shows
no images in the File namespace. However, Special:File list shows all
images OK.
Anyone got any clues as to how to get the files to re-appear in the
Special:All pages listing for the File namespace?
bobj
--
--------------------------------
Dr Bob Jansen
Turtle Lane Studios Pty Ltd
PO Box 26, Erskineville NSW 2043, Australia
Ph: +61-414 297 448
Skype: bobjtls
http://www.turtlelane.com.au
In line with the Australian anti-spam legislation, if you wish to receive no further email from me, please send me an email with the subject "No Spam"
Hi all,
I'm setting up a wiki family in various languages (eng, fra, swe, ...) with all
of them uploading media files to a 'pool' wiki.
I set up the family as explained in scenario 5 here:
http://www.mediawiki.org/wiki/Manual:Wiki_family and it works well for regular
uploads.
Now I am working on an extension that uploads sound files directly without using
Special:Upload, and I still want files to end up in 'pool'.
Unfortunately, I've tried several configs, and the closest I got is where files
physically end up in the 'pool/images' folder, but are still recorded in the
language wiki (like 'eng' for instance).
Relevant code was:
$destFile = wfLocalFile( $mytitle);
$uploadResult = $destFile->upload($myfile, $mysubtitle, $mycomment);
and config common to all wikis:
$wgUseSharedUploads = true;
$wgSharedUploadPath = "$POOL_URL/images";
$wgSharedUploadDirectory = "$POOL_IP/images/";
$wgHashedSharedUploadDirectory = true;
$wgSharedUploadDBname = $wgDBname;
$wgSharedUploadDBprefix = $wgDBprefix;
$wgUploadDirectory = "$POOL_IP/images";
I also have $wgEnableUpload = false in the localised wikis (but not in 'pool').
After this, I changed wfLocalFile to
$destFile = RepoGroup::singleton()->getRepoByName('pool')->newFile( $mytitle )
and defined
$wgForeignFileRepos[] = array(
'class' => 'ForeignDBRepo',
'name' => 'pool',
'directory' => "$POOL_IP/images",
'url' => "$POOL_URL/images",
'hashLevels' => 2,
'dbType' => "mysql",
'dbServer' => $wgDBserver,
'dbUser' => $wgDBuser,
'dbPassword' => $wgDBpassword,
'dbName' => "wikidb", # $wgDBname,
'dbFlags' => DBO_DEFAULT,
'tablePrefix' => "wb", # $wgDBprefix,
'thumbScriptUrl' => false,
'hasSharedCache' => false,
'descBaseUrl' => "$POOL_URL/Image:",
'scriptDirUrl' => "$POOL_IP",
'fetchDescription' => false,
'initialCapital' => true,
);
in place of the above settings.
Then I received an internal error saying ForeignDBRepo does not support write
operations.
So my question is: am I trying to do something that MW does not handle, or am I
doing it the wrong way?
Thanks for any advice,
Laurent
I see. So it's not about the images but about the logging in that happens
in concert with loading of the images.
----- Original Message -----
From: Platonides <Platonides(a)gmail.com>
To: mediawiki-l(a)lists.wikimedia.org
Date: Sat, 15 May 2010 17:28:20 +0200
Subject: Re: [Mediawiki-l] Logging in
> Steve VanSlyck wrote:
> > Why to central auth images need to load at all?
>
> If you log-in on en.wikipedia, and stop the page load before wikisources
> logo is loaded, you will be logged in on all wikipedias but not on
> wikisources.
>
> The code I gave, shouldn't interfere on it, since due to the
> addOnloadHook it should only move you once all images are loaded.
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
Why to central auth images need to load at all?
----- Original Message -----
From: Platonides <Platonides(a)gmail.com>
> > OQ wrote:
> > I thought it did this already?
>
> It used to automatically redirect you after some seconds, but that was
> changed
> a) For usability concerns (automatic redirects are discouraged)
> b) So that central auth images have time to load.
I am wondering if it is possible to return dutch text from wikipedia
api call. Below is the specification.
http://www.mediawiki.org/wiki/API
Thanks in advance
On Wikipedia, hoping I can drop something into my css page or something.
----- Original Message -----
From: Platonides <Platonides(a)gmail.com>
To: mediawiki-l(a)lists.wikimedia.org
Date: Fri, 14 May 2010 23:35:21 +0200
Subject: Re: [Mediawiki-l] Logging in
> Steve VanSlyck wrote:
> > No response on village pump technical... so maybe someone here knows
the
> > answer:
> >
> > == Return to page logged in from ==
> >
> > How do I get login to return me to the page I logged in from, e.g. Main
> > Page, instead of dropping me into a "login successful" page and forcing
> > me to return manually?
>
> On wikipedia, on your wiki, for one user, for any user of your wiki... ?
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
Wikitech is for WMF stuff only. You want Mediawiki-l instead.
The answer to your question is here: http://meta.wikimedia.org/wiki/Mobile
-Jon
On Fri, May 14, 2010 at 16:24, June Hyeon Bae <devunt(a)devunt.kr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> How can I configure Mobile Skin?
> Mobile Skin is only one?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.2 (MingW32)
> Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10)
>
> iD8DBQFL7dvrZZnabYK3t6gRAlDFAJsHwG+ra6duJ6IuLr1ZF4BFctDb0wCeJFx3
> OMqd8Dn4oXHFMlACs7ySFWA=
> =h4oe
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
--
Jon
[[User:ShakataGaNai]] / KJ6FNQ
http://snowulf.com/
"This email should not be used to sue me" -- Bawolff
Awesome. Thanks!
----- Original Message -----
From: Platonides <Platonides(a)gmail.com>
To: mediawiki-l(a)lists.wikimedia.org
Date: Sat, 15 May 2010 00:35:02 +0200
Subject: Re: [Mediawiki-l] Logging in
> Steve VanSlyck wrote:
> > On Wikipedia, hoping I can drop something into my css page or something.
>
> You can force the redirection on your monobook.js / vector.js by adding
>
> if (wgCanonicalSpecialPageName == "Userlogin")
> addOnloadHook( function() { document.location =
> document.getElementById('mw-returnto').getElementsByTagName('a')[0].href;
}
> );
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>