Page 1 of 1

Phoca Gallery 4.0.0 Stable - overlib position

Posted: 22 Jul 2013, 14:07
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

Re: Phoca Gallery 4.0.0 Stable - overlib position

Posted: 23 Jul 2013, 19:37
by Jan
Hi, thank you for this info, I will implement it for 4.0.1

Jan

Re: Phoca Gallery 4.0.0 Stable - overlib position

Posted: 24 Jul 2013, 00:31
by Jan
Hi, added new parameter to 4.0.1 - Overlib Attributes - you can set own attributes in Options.

Jan

Re: Phoca Gallery 4.0.0 Stable - overlib position

Posted: 24 Jul 2013, 09:22
by CommanderTom
Hi Jan!

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

Cheers,
Andi

Re: Phoca Gallery 4.0.0 Stable - overlib position

Posted: 26 Jul 2013, 22:57
by Jan
Great to hear it.

Jan