Phoca gallery plugin does not display description with slimbox
Posted: 06 Aug 2017, 10:04
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
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