Phoca gallery plugin does not display description with slimbox

Phoca Gallery - image gallery extension
schaaf
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 06 Aug 2017, 09:52

Phoca gallery plugin does not display description with slimbox

Post 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

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca gallery plugin does not display description with slimbox

Post by Jan »

Hi, thank you for the info, I will take a look at it.

Thank you, Jan
If you find Phoca extensions useful, please support the project
pawlo
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Aug 2016, 18:15

Re: Phoca gallery plugin does not display description with slimbox

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

Re: Phoca gallery plugin does not display description with slimbox

Post by Jan »

Hi, did you test it with the same code like "schaaf" tested?

Jan
If you find Phoca extensions useful, please support the project
pawlo
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 27 Aug 2016, 18:15

Re: Phoca gallery plugin does not display description with slimbox

Post by pawlo »

Apparently I put that code in wrong place. Now after several attempts everything works fine :) Thanks a lot !

Pawel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca gallery plugin does not display description with slimbox

Post by Jan »

Ok, great to hear it.

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