Topic on Project:Support desk

Jump to navigation Jump to search

Problem: Clickable imagemaps not working.

Diepenheim (talkcontribs)

Hello everybody,

I am looking for help with the following problem.

Our clickable Image map isn't working, we only see the codes on top in the page with these coords.

Like this: <MAP NAME="inkoopmodel"> <AREA SHAPE=RECT COORDS="14,89,52,144" HREF="Behoeftestelling"> <AREA SHAPE=RECT COORDS="53,89,90,144" HREF="Typeren_uitgangspositie"> <AREA SHAPE=RECT COORDS="96,52,136,107" HREF="Specificeren_NEA"> <AREA SHAPE=RECT COORDS="137,52,174,107" HREF="Selecteren_NEA"> <AREA SHAPE=RECT COORDS="175,52,212,106" HREF="Contracteren_NEA"> <AREA SHAPE=RECT COORDS="97,127,135,183" HREF="Specificeren_EA"> <AREA SHAPE=RECT COORDS="136,126,175,185" HREF="Selecteren_EA"> <AREA SHAPE=RECT COORDS="176,126,212,182" HREF="Contracteren_EA"> <AREA SHAPE=RECT COORDS="218,88,256,144" HREF="Afroepen"> <AREA SHAPE=RECT COORDS="258,86,295,146" HREF="Bewaken"> <AREA SHAPE=RECT COORDS="297,84,333,148" HREF="Nazorg"> <AREA SHAPE=RECT COORDS="336,87,378,145" HREF="Statistiekverplichting"> </MAP> <IMG SRC="/images/8/87/Inkoopmodel.jpg" USEMAP="#inkoopmodel">

We have upgrade our older Wiki from MySQL server 5.0 PHP 5.2.1 Mediawiki 1.9.2

To MediaWiki 1.21.1 MySQL 5.6.14 PHP 5.5.8

extension Parserfunction is installed (It's there).

And was succesful but we can't solve now the clickable image.

Florianschmidtwelzow (talkcontribs)

MAP isn't a function added by ParserFunctions, if i see this right. What extension should provide the map parserfunction? Is it installed?

Ciencia Al Poder (talkcontribs)

MediaWiki doesn't allow to use those plain HTML elements.

You can install Extension:ImageMap to get the same functionality in wiki syntax

Diepenheim (talkcontribs)

Hello everybody,

Thx for the fast replying.

Well the parser extension and the Imagemap extensions are there allready and I read somewhere that the parser or image map function would help to solve it. I tried both now and like to go further with the imagemap extension.

The image map is still not working with imagemap on. In the old Mediawiki version it was allright.

I downloaded and placed the right 1.21 version in the extension folder. How do I test the extension image map? Maybe it's not well placed.

I am only not sure if the local settings.php require once is right. At the bottom line is now : require_once "$IP/extensions/ImageMap/ImageMap.php";

Ciencia Al Poder (talkcontribs)

What are you using in the page to test if Extension:Imagemap works?

First of all, navigate to Special:Version in your wiki and look if Extension:Imagemap is listed there.

Then create an imagemap on a page by using the syntax provided by the extension (<imagemap></imagemap> tags and not <MAP><AREA>!)

Diepenheim (talkcontribs)

Hi Ciencia,

Well I see in the special page a lot of HTML wrong code like Div's so I can see not much, only this below. I can see the extensions between the lines.

Heading text

Samen met dit programma hoort u een kopie van de GNU General Public License te hebben ontvangen; zo niet, schrijf dan naar de Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA of lees de licentie online.

Geïnstalleerde software

URL's voor ingangen

Geïnstalleerde uitbreidingen

Do you know how to solve the Div html erros the most of them are at top some between the pages. Is this because of a CSS that's not working good anymore with 1.21 instead the older 1.19 were it was working good.

Ciencia Al Poder (talkcontribs)

Ok, Imagemap is installed and should work. Could you please elaborate "what does not work"?

Also I don't know what do you mean by "Div html erros"

Reply to "Problem: Clickable imagemaps not working."