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?
On 16/05/07, Alex Le Bek alex@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
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@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Dantman wrote:
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@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?
In the mean time (while waiting for an external link-feature) you can perhaps link to a "link-page", that is, a page which contains the external link? Sort of a "external redirect", but one which takes user interaction in order to actually click the extra link in order to get redirected to the http:// adress.
Regards,
// Rolf Lampa
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@lists.wikimedia.org [mailto:mediawiki-l-bounces@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@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@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Alex Le Bek wrote:
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?
I've recently made available an update to the extension that fixes several bugs. I noted the problem with the use of that global variable and requested info on how it should be handled in the future. ImageMap.php is obviously not the right place for it.
I'm still waiting for feedback on the fixed version.
Mike
Alex Le Bek wrote:
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.
You're expected to add parameters to an extension after include()ing its file. Added a note to the page.
mediawiki-l@lists.wikimedia.org