Page 1 of 1
Overlib Description
Posted: 03 Apr 2009, 22:33
by rubyprincess_916
Greetings, Jan!
I just installed the latest version. I'm trying to have an overlib effect for the description only, but the only way I can get overlib to work at all is if I choose "image only". If I choose any other option, nothing happens at all.
I'm using "shadowbox" for detail view. Am I also supposed to choose certain setting choices under "description" that could be causing this to happen? I've just chosen "show standard". I've also tried the other settings but nothing changes.
Your help would be much appreciated!
ruby
Re: Overlib Description
Posted: 04 Apr 2009, 20:58
by Quarterhorse
hi,
the Shadowbox can not the text description. The Shadowbox is a foreign product rather than by Phoca
Re: Overlib Description
Posted: 04 Apr 2009, 21:30
by rubyprincess_916
Thank You, Quarterhorse
I am no longer using shadowbox, but am still having the same problem.
My problem is when I am in category view. I want the description to appear in the overlib box, when I hover over a thumbnail. The overlib function will only work for me if I select "image only". If I select "description only" or "image and description" nothing appears at all.
Basically, I need to know what settings to use to make my gallery look like the Phoca Demo here:
https://www.phoca.cz/demo/overlib-transparent
Any thoughts?
ruby
Re: Overlib Description
Posted: 08 Apr 2009, 10:14
by Quarterhorse
hi
where you set the parameters?
1. Global Parameters images or
2. parameters with images or
3.parameter in the menu entry
Re: Overlib Description
Posted: 25 May 2010, 02:45
by susa
Hi,
I would like to know how to do this as well. I have set the overlib in the main parameters to description only, but only the title is showing up.
Was there an answer to this?
http://proggroup.com/greater-good-proje ... class.html
(pictures of the students)
Re: Overlib Description
Posted: 26 May 2010, 19:13
by Benno
Hi Susa,
I would like to know how to do this as well. I have set the overlib in the main parameters to description only, but only the title is showing up.
Did you manage it yourself? I can see the titles and descriptions.
Kind regards,
Benno
Re: Overlib Description
Posted: 28 May 2010, 17:27
by susa
Yes, I sort of hacked a solution - I am not sure if this is proper code, but it seems to work. In the phocagallery.php, line 1336.
Was this:
Code: Select all
else if ($enable_overlib == 2){
$image->description = str_replace("\n", '<br />', $image->description);
$output .= " onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div style="'.$divPadding.'">'.$image->description.'</div>'))."', CAPTION, '". $image->title."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaClass', FGCLASS, 'fgPhocaClass', BGCLASS, 'bgPhocaClass', CAPTIONFONTCLASS,'capfontPhocaClass', CLOSEFONTCLASS, 'capfontclosePhocaClass');\""
. " onmouseout=\"return nd();\" ";
}
Changed to this:
Code: Select all
else if ($enable_overlib == 2){
$image->description = str_replace("\n", '<br />', $image->description);
$output .= " onmouseover=\"return overlib('".PhocaGalleryText::strTrimAll(htmlspecialchars( addslashes( '<div style="'.$divPadding.'">' . $image->description . '</div>')))."', CAPTION, '". $image->title."', BELOW, RIGHT, BGCLASS,'bgPhocaClass', FGCLASS,'fgPhocaClass', FGCOLOR, '".$tmpl['olfgcolor']."', BGCOLOR, '".$tmpl['olbgcolor']."', TEXTCOLOR, '".$tmpl['oltfcolor']."', CAPCOLOR, '".$tmpl['olcfcolor']."');\""
. " onmouseout=\"return nd();\" ";
}
Re: Overlib Description
Posted: 28 May 2010, 23:48
by Benno
Well done!
Kind regards,
Benno