Overlib_image_rate in Plugin

Phoca Gallery - image gallery extension
Xeshly
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 25 Apr 2012, 21:06

Overlib_image_rate in Plugin

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48913
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Overlib_image_rate in Plugin

Post 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
If you find Phoca extensions useful, please support the project
Post Reply