Overlib_image_rate in Plugin
Posted: 17 May 2012, 12:04
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:
I have installed the plugin to phocagallery. Added cod:
\plugins\content\phocagallery\phocagallery.php
decrease in the article needs pictures overlib effect, using a plugin
In options paramets:
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.
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', '' );
\plugins\content\phocagallery\phocagallery.php
Code: Select all
else if($values[0]=='overlibimagerate') {$overlib_image_rate = $values[1];}
In options paramets:
What should I type in: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
Code: Select all
{phocagallery view=category|categoryid=1|overlib=1|overlibimagerate=>>>What you write here that it is not 100% OF IMAGE<<<}
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.