Remove Overlib Title

Phoca Gallery - image gallery extension
briscoea
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 20 Jan 2012, 21:44

Re: Remove Overlib Title

Post by briscoea »

For me, what worked is editing view.html.php within views/category.

You'll see a switch statement in there:

switch ($enable_overlib) {

and what I removed was this:
". htmlspecialchars( addslashes($items[$iS]->title))."

From the "case 4" statement. this in essence removes the caption from the overlib box. So you'll be left with:

$items[$iS]->overlib_value = " onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div class="pg-overlib"><center>' . $oImg . "</center></div>" . $uBy ))."', CAPTION, '', BELOW, RIGHT, BGCLASS,'bgPhocaClass', FGCOLOR, '".$this->tmpl['olfgcolor']."', BGCOLOR, '".$this->tmpl['olbgcolor']."', TEXTCOLOR, '".$this->tmpl['oltfcolor']."', CAPCOLOR, '".$this->tmpl['olcfcolor']."');\""
. " onmouseout=\"return nd();\" ";
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Remove Overlib Title

Post by Jan »

Hi, thank you for this guide.

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