Manual talk:$wgAllowExternalImages
From MediaWiki.org
[edit] Improvements
- A way to limit this to certain domains and even directories (and all subdirectories) of a particular domain
- Allow image alt/title tags for descriptions, borders, and full HTML/CSS customization
-Eep² 09:16, 25 July 2007 (UTC)
- As to the first question: $wgAllowExternalImagesFrom covers this.
- As to the second question: It should be easy to create an extension for this.
- -- Tbleher 10:32, 22 January 2008 (UTC)
[edit] Other URL types besides http:
We have allowed file:// urls to be linked from our wiki using $wgUrlProtocols, but this does not appear to apply to images. This would help us in our work to allow an image to be revised outside of the wiki on a file server and appear in a wiki article without repeated uploading. Bill Johnson 21:12, 6 December 2007 (UTC)
- So you want to put in an external image link but using a local file URL such as file:///h:\network-path\image.jpg ? Yeah you're right. I just tried that on my company wiki. MediaWiki doesn't pick up on the '.jpg' and spit out an IMG tag as you might expect.
- It's a bit of an ugly thing to do, and highly non-standard. Internet explorer does support it though <IMG SRC="file:///h:\network-path\image.jpg">. So you could make a simple mediawiki extension to output that HTML.
- -- Harry Wood 15:27, 7 December 2007 (UTC)
[edit] ...images only from Flickr... doesn't seem to work, help please
I tried set this up so that just the wiki only excepts images from flickr.com http://69.147.90.158/ or http://farm3.static.flickr.com/ Doesn't seem to restrict just to the Flickr address --Willjermuk 22:42, 16 April 2008 (UTC)
- See $wgAllowExternalImagesFrom. --Sayuri 15:45, 21 April 2008 (UTC)

