Spike
Forum Replies Created
-
Forum: Plugins
In reply to: [ImageMapper] Can't insert image map into postHey,
You need to add this code to the header template file of the theme you’re using:
<?php echo get_imgmap_frontend_image('86', '79467984'); ?>86 is the ID of the image map and 79467984 is just a random ID for the HTML element.
Forum: Plugins
In reply to: [ImageMapper] IMPORTANT – Imagemap puts area codes to the bottom of imageHi,
As I answered by email, some plugin or theme is probably adding line breaks in the image map code, which breaks the code. I’d recommend to test disabling plugins or temporarily switching to another theme to see what causes the problem.Forum: Plugins
In reply to: [ImageMapper] Manually editing area coordinates. Is it possible?Hi,
Currently there isn’t any existing feature for this. But if you’re familiar with WordPress development you can find them using following function:
get_post_meta([POST_ID], ‘coords’)
The coordinates are saved in post_meta in HTML image map coordinate format (“x1, y1, x2, y2, x3, y3” and so on).
If you are familiar with plugin development, it shouldn’t be too hard to write a plugin which allows you to do this.
And sorry for a late answer. :<
Forum: Plugins
In reply to: [ImageMapper] Plenty of issues in a responsive themeHey,
Can you try to switch the new layout for the popup window on? You can set it from Image map settings under Image Maps tab.
The old layout is made with jQuery UI and for some reasons there are some stretching bugs I haven’t been able to track down. The new layout is made for the ImageMapper and it should be overall more stable.
For image map areas being wrongly positioned, I suggest that if you can, please check (for example with Chrome’s developer tools) if the all layers of the image map are equally sized. Basically this means two images and a canvas element. They can be located in a div with ‘imgmap-frontend-image’ class. Or to be more specific in a div with ‘mapster_wrap_X’ ID in the imgmap-frontend-image div.
It seems that the first image gets often resized, but the other two layers (an image and a canvas) don’t.
Forum: Plugins
In reply to: [ImageMapper] Image map areas in wrong placeHi,
Sorry for not replying earlier.
The problem with HTML image maps is that they use only absolute values for coordinates. If the size of the image is different the values will not match.
This is however fixed in ImageMapster, the jQuery plugin the ImageMapper uses. When images are resized, the browser will detect the change and calculate new values for every image area. Responsive Image Maps does the same.
However it seems that sometimes the change is not detected correctly. As I’m not the developer of ImageMapster nor Responsive Image Maps it’s hard to me to say where’s the problem.
There’s also another problem which may cause the bugs in image maps. The image map of ImageMapster consists of two images, an HTML5 canvas element and an HTML image map. Only one of the images are actually used to display the image. Canvas is used to draw highlights and other effects and the other image is a transparent layer which handles the mouse functionality with HTML image map set to it. The problem is that some WordPress themes resize the display image without resizing the canvas and the transparent image. All of the layers’ sizes have to be equal or the image maps won’t function properly.
Please check if the stylesheets of your themes have style definitions which may cause the images to be resized. Also any errors in Javascript console (can be found in browser settings) might be useful as well.
I hope this helps.
Forum: Reviews
In reply to: [ImageMapper] How does it work?Hi,
Instructions can be found in the Installation page.
http://wordpress.org/extend/plugins/imagemapper/installation/Forum: Plugins
In reply to: [ImageMapper] Image map stretchingHi
Sorry for a late answer, I’ve been quite busy recently. I watched your video and you had some good points there. Not removing “Add new image map area” link was a silly mistake of mine.
I actually have no idea why that stretching happens. It’s hard to reproduce the bug as well, so testing and fixing it isn’t quite simple. To fix the pop up window stretching try to use the other popup window layout. You can switch it in Image Map Settings.
Unfortunately I’ve got not much time for the plugin right now. The plugin is sure not very polished, but it was initially meant to “just get the work done”. Currently I’ve got no plans for a large update anytime soon. Thanks for making the video though, it helped a lot understanding the stretching problem.
Spike.
Forum: Plugins
In reply to: [ImageMapper] Image map stretchingHi,
I’m not sure what you mean by distorted. Could you send a screenshot of the problem?
Also the image map doesn’t resize well when user resizes the browser window, but it gets fixed when the page is refreshed after resizing. This is mainly because the HTML image maps use absolute coordinate values, so they need to be updated always when image’s size changes. I’m not sure if resizing is even the problem though.
Spike
Forum: Plugins
In reply to: [ImageMapper] Large Grey Area Over the PopupHello,
I released a small update now that introduces an alternative layout for the popup window. After updating you can switch to the new layout in Image map settings page.
To be honest I’ve got no idea why the old layout didn’t work, but this update should fix it.
Spike
Forum: Plugins
In reply to: [ImageMapper] Large Grey Area Over the PopupI investigated it a bit, but couldn’t figure out where’s the problem. There’s one element that causes all that and no matter what I try it never starts to work. And I cannot find any logic behind its behavior, it’s like a browser’s rendering bug.
However this issue can be fixed with completely hiding the element. If you can access the stylesheet of your style, please add this there:
.imgmap-dialog .ui-dialog-titlebar { display: none; }This removes the gray header bar completely. I hope you get it working.
Forum: Plugins
In reply to: [ImageMapper] Make the popup smallerGood to hear that you got it working. The first option would have worked only if the stylesheet was applied after ImageMapper’s one, but it doesn’t really matter which one you use.
Forum: Plugins
In reply to: [ImageMapper] Large Grey Area Over the PopupHi,
It seems that there are some style definitions that conflicts with the jQuery UI Dialog widget ImageMapper is using. It might be that some plugin or theme is causing this. Can you try to disable other plugins and check if it helps?
Spike
Forum: Plugins
In reply to: [ImageMapper] Make the popup smallerHi,
If you’re able to edit your theme’s stylesheets, you can limit the popup width to 200px with this:
.imgmap-dialog { max-width: 200px; }Or if that doesn’t work:
.imgmap-dialog { max-width: 200px !important; }I hope that helps.
Spike
Forum: Plugins
In reply to: [ImageMapper] add map without shortcodeHi,
You can use get_imgmap_frontend_image($id, $element_id) function, where $id is the post id of the image map and $element_id is a unique id for the HTML element. And the value must be echoed.
I haven’t really thought about using maps in templates, but that should work flawlessly. It’s nice to see people inventing new ways to use the plugin.
Spike
Forum: Plugins
In reply to: [ImageMapper] edit imagemapHi,
I’m not exactly sure what you mean, but you can use get_posts and get_post_meta functions to access image maps and their data. Image maps are “imagemap” custom post type posts. Coordinates, the image and such data are saved as post meta data.