Page 1 of 1

module inserts picture name into the title field incorrectly

Posted: 27 Feb 2010, 15:53
by pashkaru
How can I correct this problem? When inserting data into fields title and alt, the module fails to transform quotation marks into special symbols (

Code: Select all

"
) or delete them. This results in incorrect html code.

Thanx!

Re: module inserts picture name into the title field incorrectly

Posted: 01 Mar 2010, 13:09
by Jan
Hi, can I see the site where this occurs?
Where did you set alt attribute?

Re: module inserts picture name into the title field incorrectly

Posted: 01 Mar 2010, 16:31
by pashkaru
my site is still on local host

i've already made corrections myself by adding lines in the module file mod_phocagallery_image.php.

add line

Code: Select all

				$valueImages->title = ereg_replace("\"", """, $valueImages->title);
before line

Code: Select all

$output[$i] .= '<div class="phocagallery-box-file" style="height:'.$imageHeight['boxsize'].'px; width:'.$imageWidth['boxsize'].'px;float:left">' . "\n";
but don't know, this solution right or not, because i'm not programmer : )

Re: module inserts picture name into the title field incorrectly

Posted: 06 Mar 2010, 14:24
by Jan
Hi, if it works and you get no php error then it should be ok :idea:

Jan