Page 1 of 1

Phoca gallery plugin does not display description with slimbox

Posted: 06 Aug 2017, 10:04
by schaaf
Hi,

I have selected slimbox as detail window in the detail view settings. When adding an image to an article using e.g.

{phocagallery view=category|categoryid=32|imageid=805|imageshadow=none|bgcolor=white|bordercolor=transparent|displayname=0|float=left}

the image description is not displayed in the details window (independent of the settings or directly setting displaydescription).

It might be a problem in the file plugins/content/phocagallery/phocagallery.php around line 1443. As I always want the description included I changed it hardcoded to:

if ($enable_overlib == 0) {
$nohtmldescr = htmlentities ($image->description, ENT_QUOTES, 'UTF-8');
$output .= ' title="'.$image->title.'<p>'.$nohtmldescr.'</p>"';
}

It works for me now (no clue about php - so it might be worst code change ever ....)

Regards,

Schaaf

Re: Phoca gallery plugin does not display description with slimbox

Posted: 08 Aug 2017, 13:56
by Jan
Hi, thank you for the info, I will take a look at it.

Thank you, Jan

Re: Phoca gallery plugin does not display description with slimbox

Posted: 11 Aug 2017, 12:17
by pawlo
I also really would like to have picture description when adding images into article. Unfortunately this code does not work for me. Dear Jan it would be great if you find a solution.

Pawel

Re: Phoca gallery plugin does not display description with slimbox

Posted: 11 Aug 2017, 17:25
by Jan
Hi, did you test it with the same code like "schaaf" tested?

Jan

Re: Phoca gallery plugin does not display description with slimbox

Posted: 14 Aug 2017, 07:35
by pawlo
Apparently I put that code in wrong place. Now after several attempts everything works fine :) Thanks a lot !

Pawel

Re: Phoca gallery plugin does not display description with slimbox

Posted: 17 Aug 2017, 12:56
by Jan
Ok, great to hear it.

Jan