Phoca Gallery 4.0.0 Stable - overlib position
Posted: 22 Jul 2013, 14:07
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:
Line 1319:
Line 1338:
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
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";
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');\""
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');\""
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