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
Phoca gallery plugin does not display description with slimbox
-
- Phoca Newbie
- Posts: 1
- Joined: 06 Aug 2017, 09:52
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca gallery plugin does not display description with slimbox
Hi, thank you for the info, I will take a look at it.
Thank you, Jan
Thank you, Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Aug 2016, 18:15
Re: Phoca gallery plugin does not display description with slimbox
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
Pawel
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca gallery plugin does not display description with slimbox
Hi, did you test it with the same code like "schaaf" tested?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 7
- Joined: 27 Aug 2016, 18:15
Re: Phoca gallery plugin does not display description with slimbox
Apparently I put that code in wrong place. Now after several attempts everything works fine :) Thanks a lot !
Pawel
Pawel
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca gallery plugin does not display description with slimbox
Ok, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project