Ekompute .info wrote:
Hi, can anyone help me interprete the following passage from Mediawiki.org:$wgUseSharedUploadshttp://www.mediawiki.org/wiki/Manual:$wgUseSharedUploads :
If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPathhttp://www.mediawiki.org/wiki/Manual:$wgSharedUploadPath. If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).
Thumbnails will also be looked for and generated in this directory.
Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectory http://www.mediawiki.org/wiki/Manual:$wgUploadDirectory .
Presently, I am operating multiple wikis and I think this is a good idea, but the above instructions assume some background knowledge and are incomprehensible for a novice like me. Supposing I create a new wiki and database just to upload images and article categories (as in Wikipedia). How should I go about doing it?
PM Poon
Take a look to http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos That's explained with more detail. $wgUploadDirectory will end up setting a ForeignFileRepo property, so you can use $wgForeignFileRepos instead, or take from there the parameters you need.