Plugin: Image in Marker description not working

Phoca Maps - displaying maps in Joomla! CMS
yuberlin
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 May 2010, 17:37

Plugin: Image in Marker description not working

Post by yuberlin »

When placing an image in marker description, image code looks like this:

Code: Select all

<img width="" height="" 200="" 110="" images="" src="/" myFilename="" alt="">
I'm using JCE Editor. Is this a problem? I checked phocamaps.php and found:

Code: Select all

$text .= '<div>'. PhocaMapsHelper::strTrimAll(addslashes($markerV->description)).'</div>';
Is this causing the problem?
yuberlin
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 May 2010, 17:37

Re: Plugin: Image in Marker description not working

Post by yuberlin »

Found it:

Open plugins/content/phocamaps.php

In about line 368 remove "addslashes" like this

Code: Select all

$text .= '<div>'. PhocaMapsHelper::strTrimAll($markerV->description).'</div>';
:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Plugin: Image in Marker description not working

Post by Benno »

Well done! :twisted:
Kind regards,
Benno
Post Reply