Phoca Gallery 4.0.0 Stable - overlib position

Phoca Gallery - image gallery extension
CommanderTom
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Jul 2013, 12:23

Phoca Gallery 4.0.0 Stable - overlib position

Post by CommanderTom »

Hi Jan!

First of all ... Thanks a lot for your efforts over the past years. We all appreciate your hard work!

Some people are facing the problem with the position of the overlib window. I downloaded your component in the version mentioned above. I extracted the zip file and searched with a fulltext search tool (baregrep) for "BELOW, RIGHT".

In the file --> \site\views\category\view.html.php there are 3 lines which call the overlib library at the onmouseover event:

Line 1301:

Code: Select all

					$this->items[$iS]->overlib_value 	= "\n\n" ."onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div class="pg-overlib"><center>' . $oImg . "</center></div>" . $uBy ))."', CAPTION, '". htmlspecialchars( addslashes($this->items[$iS]->title))."' ,BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaClass', FGCLASS, 'fgPhocaClass', BGCLASS, 'bgPhocaClass', CAPTIONFONTCLASS,'capfontPhocaClass', CLOSEFONTCLASS, 'capfontclosePhocaClass');\""." onmouseout=\"return nd();\"" . "\n";
Line 1319:

Code: Select all

					$this->items[$iS]->overlib_value 		= " onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div class="pg-overlib"><div class="'.$divPadding.'">'.$this->items[$iS]->description.'</div></div>'. $uBy))."', CAPTION, '". htmlspecialchars( addslashes($this->items[$iS]->title))."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaClass', FGCLASS, 'fgPhocaClass', BGCLASS, 'bgPhocaClass', CAPTIONFONTCLASS,'capfontPhocaClass', CLOSEFONTCLASS, 'capfontclosePhocaClass');\""
Line 1338:

Code: Select all

					$this->items[$iS]->overlib_value 		= " onmouseover=\"return overlib('".PhocaGalleryText::strTrimAll(htmlspecialchars( addslashes( '<div class="pg-overlib"><div style="text-align:center"><center>' . $oImg . '</center></div><div class="'.$divPadding.'">' . $this->items[$iS]->description . '</div></div>' . $uBy)))."', CAPTION, '". htmlspecialchars( addslashes($this->items[$iS]->title))."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaClass', FGCLASS, 'fgPhocaClass', BGCLASS, 'bgPhocaClass', CAPTIONFONTCLASS,'capfontPhocaClass', CLOSEFONTCLASS, 'capfontclosePhocaClass');\""
If I edit the parameters BELOW to VAUTO and RIGHT to HAUTO, then the overlib window doesn't get cut off by the browser.
It's no perfect solution because the overlib window sometimes jumps around nervously while calculating the right position.
But this works as workaround for images not being cut off.

My question:
Could you implement that into the backend configuration of phoca gallery that no-one has to modify the files by himself? Would that be possible for a next release/update?

Cheers,
Andi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 4.0.0 Stable - overlib position

Post by Jan »

Hi, thank you for this info, I will implement it for 4.0.1

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 4.0.0 Stable - overlib position

Post by Jan »

Hi, added new parameter to 4.0.1 - Overlib Attributes - you can set own attributes in Options.

Jan
If you find Phoca extensions useful, please support the project
CommanderTom
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Jul 2013, 12:23

Re: Phoca Gallery 4.0.0 Stable - overlib position

Post by CommanderTom »

Hi Jan!

Thanks alot, you're amazing!! :twisted:

Cheers,
Andi
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery 4.0.0 Stable - overlib position

Post by Jan »

Great to hear it.

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