[Mediawiki-l] ImageMap Extension and external links
Alex Le Bek
alex at alexlebek.com
Wed May 16 13:52:49 UTC 2007
It is coded for external links - the problem was my LocalSettings.php set
$wgImageMapAllowExternalLinks = true; (as instructed)
But the extension sets this to false in ImageMap.php! Just goes to show I
should have looked at the source files myself. Perhaps this needs to be
noted in the installation instructions?
(http://www.mediawiki.org/wiki/Extension:ImageMap#Installation_Guide)
Thanks to Tim Starling I can now click from my logos elsewhere.
-----Original Message-----
From: mediawiki-l-bounces at lists.wikimedia.org
[mailto:mediawiki-l-bounces at lists.wikimedia.org] On Behalf Of Dantman
Sent: 16 May 2007 12:47
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] ImageMap Extension and external links
The ImageMap extension isn't coded to use external links. Only internal
ones. If you want to do something like that you'll half to request that
as a new feature and have someone code it into the extension.
~Daniel Friesen of The Gaiapedia and Wikia Graphical Entertainment Project
Brianna Laugher wrote:
> On 16/05/07, Alex Le Bek <alex at alexlebek.com> wrote:
>
>> I have installed the ImageMap extension
>> (http://www.mediawiki.org/wiki/Extension:ImageMap) and set
>> $wgImageMapAllowExternalLinks = true
>>
>> With the following markup
>>
>> <imagemap>
>> Image:mylogo.jpg
>> rect 0 0 120 60 [[Help]]
>> </imagemap>
>>
>> It works fine but fails when I use an external link:
>>
>> <imagemap>
>> Image:mylogo.jpg
>> rect 0 0 120 60 [http://www.mylink.com]
>> </imagemap>
>>
>> with error
>> <imagemap>: no valid link was found at the end of line 3
>>
>> Any ideas?
>>
>
> Does it work if you just put http://www.mylink.com/ ? (with no square
brackets)
>
> cheers
> Brianna
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l at lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
More information about the MediaWiki-l
mailing list