
rowan.collins at gmail
Sep 14, 2005, 9:30 AM
Post #2 of 2
(267 views)
Permalink
|
On 13/09/05, Simon Wagner <wagner.sim88_mw [at] web> wrote: > Is it possible to upload Applets in a directory e.g. /uploads/applets and integrate them into a site via [[Applet:Appletname]] ? No. A more helpful answer would be to point you towards http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension and the various linked resources. The upload part should just be a case of allowing the ".class" extension to be uploaded in LocalSettings.php (with the $wgFileExtensions variable) - this will upload them along with anything else, with descriptions at [[Image:Foo.class]] and file locations nested in md5-based directories unless you set $wgHashedUploadDirectory=false. You'll then need to hack in a way of actually displaying those applets inline - it oughtn't to be too hard to create an <applet>Foo</applet> wiki-tag that spits out the right HTML for you... -- Rowan Collins BSc [IMSoP] _______________________________________________ MediaWiki-l mailing list MediaWiki-l [at] Wikimedia http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
|