Phoca map does not display image

Phoca Maps - displaying maps in Joomla! CMS
Aladdin
Phoca Member
Phoca Member
Posts: 13
Joined: 28 May 2010, 11:57

Phoca map does not display image

Post by Aladdin »

Hi !

For some reason image (in popup window)is not showing .

Any help ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca map does not display image

Post by Jan »

Hi, do you get some javascript error message on your site?
If you find Phoca extensions useful, please support the project
gomi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2012, 08:45

Re: Phoca map does not display image

Post by gomi »

Very funny - i have the same error - and i found something:

Editor JCE =

Code: Select all

<p><img alt="" src="images/references_logos/xx.png" /></p>
The image was not showing in the popup

Editor tiny MCE=

Code: Select all

<p><img src="images/references_logos/xx.png" border="0" alt="" /></p>
The image was shown

The difference is the position of

Code: Select all

alt=""
if alt is behind "img" the image was not shown !

After a few tests:
Is something betwen

Code: Select all

src="images...
and

Code: Select all

"<img.."
the image will not shown.




p.s: joomla is up to date
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca map does not display image

Post by Jan »

Hmm, no javascript error? Really no idea what this can be a problem? :idea:
If you find Phoca extensions useful, please support the project
gomi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2012, 08:45

Re: Phoca map does not display image

Post by gomi »

Hello jan,
the problem is also that every editor changes the position of the code....
thats horrible to work with.... (more than 200 markers.....) :-( :cry:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca map does not display image

Post by Jan »

Hi, really no idea what is done by the editors :-(
If you find Phoca extensions useful, please support the project
gomi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 13 Aug 2012, 08:45

Re: Phoca map does not display image

Post by gomi »

Jan wrote:Hi, really no idea what is done by the editors :-(
Hello jan - im sorry but its so annoying ~ over 200 markers :cry:

here are samples:

JoomlaCK:
(code has been cleaned up before)

Code: Select all

			<td rowspan="4" style="text-align: center; vertical-align: middle;">
				<a href="http://..." target="_blank"><img alt="" src="images/../......jpg" /></a></td>
			<td>
The editor sets "img alt" before the image source regardless what you doing in the marker - one simple "save" does it

JCE:
(code has been cleaned up before)

Code: Select all

<td style="text-align: center; vertical-align: middle;" rowspan="4"><a href="http://...." target="_blank"><img alt="" src="images/...../....jpg" height="70" width="70" /></a></td>
TinyMCE
(code has been cleaned up before)

Code: Select all

<td style="text-align: center; vertical-align: middle;" rowspan="4"><a href="http://...." target="_blank"><img src="images/.../.....jpg" border="0" alt="Tromso Airport" width="70" height="70" /></a></td>
only TinyMCE sets >>alt=""<< after the img source.

TinyMCE is nice but he changes styles definitons etc etc.. JCE or Joomla CK is much better.

It seems as if the plugin only at the beginning of the code the part "img src" searches...
If something else is behind >>img<< as the awaited >>img src..." the rest will be ignored....
Do you really think the editor is the problem - i think not?

please help :?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca map does not display image

Post by Jan »

Hi, really no idea how this can be related to the displaying (changing the alt position) I am testing it and see no problem there:

https://www.phoca.cz/joomlademo/phoca-maps
E.g. here tinymce was used, and the code is:

Code: Select all

<div>Prague - Carl\'s Bridge</div><div><img src=\"/joomlademo/images/prague/prague2.png\" border=\"0\" /></div>
No idea, but the the alt tag was not set ???
Images displayed normally, but I have set the alt on my localhost to the code manually and no problem there ??? ... so maybe try to check the path of the image, if this is the same :idea:

Jan
If you find Phoca extensions useful, please support the project
Thosi
Phoca Member
Phoca Member
Posts: 12
Joined: 05 May 2011, 01:18

Re: Phoca map does not display image

Post by Thosi »

Hi Jan,
I got the same problem. Images don't show up in marker popups.
In my case I found that JCE is configured to use relative paths for images. Images with relative path are not shown. When I copy/paste the full path (http : //..) in source mode it works.

Example

dh.steinlein-media.com/information/dh/kontakt.html
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca map does not display image

Post by Jan »

So, hmm, when you switch to standard editor, e.g. tinymce, it is working Ok?
If you find Phoca extensions useful, please support the project
Post Reply