module inserts picture name into the title field incorrectly

Phoca Gallery modules - modules for Phoca Gallery extension
pashkaru
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Feb 2010, 15:33

module inserts picture name into the title field incorrectly

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: module inserts picture name into the title field incorrectly

Post by Jan »

Hi, can I see the site where this occurs?
Where did you set alt attribute?
If you find Phoca extensions useful, please support the project
pashkaru
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 27 Feb 2010, 15:33

Re: module inserts picture name into the title field incorrectly

Post 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 : )
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: module inserts picture name into the title field incorrectly

Post by Jan »

Hi, if it works and you get no php error then it should be ok :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply