Page 1 of 1

Overlib_image_rate in Plugin

Posted: 17 May 2012, 12:04
by Xeshly
Hi,
Sorry for english, google translator...
From the documentation I know that normally there is no option in effect, reduce photos OVERLIB if you put in the article Phoca Gallery (plugin). So I added some code to have this capability.
Overlib image problem with the rate in the plugin, not the component.
In the file: \components\com_phocagallery\view\category\viev.html is the line:

Code: Select all

$this->tmpl['overlibimagerate'] = (int)$this->params->get( 'overlib_image_rate', '' );
I have installed the plugin to phocagallery. Added cod:
\plugins\content\phocagallery\phocagallery.php

Code: Select all

else if($values[0]=='overlibimagerate') {$overlib_image_rate = $values[1];}
decrease in the article needs pictures overlib effect, using a plugin
In options paramets:
Overlib Image Rate Size - (Default | 1/2 | 1/3 | 1/4) Set Overlib image size. Image displayed in overlib can be transformed (resized with HTML parameters) by rate
What should I type in:

Code: Select all

{phocagallery view=category|categoryid=1|overlib=1|overlibimagerate=>>>What you write here that it is not 100% OF IMAGE<<<}
that could reduce the image in the article overlib (PLUGIN).
I added everything right in the files to use the attribute: overlibimagerate, but not know how to operate it, to reduce the effect could be overlib images in the article.

Re: Overlib_image_rate in Plugin

Posted: 18 May 2012, 00:11
by Jan
Hi,

<option value="">Default</option>
<option value="2">1/2</option>
<option value="3">1/3</option>
<option value="4">1/4</option>

so 2 or 3 or 4

Jan