Page 1 of 1

Do not display image in Marker description

Posted: 11 Dec 2014, 12:15
by luandoson
Hi,

I create new marker and add image into description.

Code: Select all

<p><img alt="" src="images/logo.png" /></p>
This code generated by Editor

My site turn on rewrite url, that image do not display.
I search in code
PhocaMapsHelper

Code: Select all

public static function fixImagePath($description) {
		$description = str_replace('<img src="'.JURI::root(true).'/', '', $description);// no double
		$description = str_replace('<img src="', '<img src="'.JURI::root(true).'/', $description);
		return $description;
	}
I fixed

Code: Select all

public static function fixImagePath($description) {
		$description = str_replace('src="/images', 'src="' . JURI::root(true) . '/images', $description);
		return $description;
	}
Working.

Re: Do not display image in Marker description

Posted: 12 Dec 2014, 14:06
by Jan
Hi, thank you for the info.

Jan