Setting box size in detail view

Phoca Gallery - image gallery extension
TacTic
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Sep 2010, 14:41

Setting box size in detail view

Post by TacTic »

This thing is driving me NUTS.

I can't manage to find the place where to set the actual size of the images being displayed in detail view when put in an article.
Also I can't figure out why there is a 20px difference between heith and width

http://tiny.cc/yr61w

Where can these things can be set up ?

PLEASE PLEASE, HELP ME

I've spent 3 hours on it reading all the documentation and searching the forums, I can't find ANY answers.

Thanks in advance,

TacTic
TacTic
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Sep 2010, 14:41

Re: Setting box size in detail view

Post by TacTic »

I may have a lead here:
Hi, size of the thumbnails, see:
https://www.phoca.cz/documents/2-phoca-g ... w-resizing

order:
https://www.phoca.cz/documents/2-phoca-g ... -menu-item

see the parameters component - where to set the parameters too:
https://www.phoca.cz/documents/16-joomla ... -in-joomla

You can set the layout of categories view, if this does not fit your needs, you need to customize the template for categories view:
components/com_phocagallery/views/categories/tmpl/default.php
and also:
Category View will always display medium thumbnails (there is no option to display small thumbnails except you will customize the php/html code)
Well is this the final answer to the original question ?
TacTic
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Sep 2010, 14:41

Re: Setting box size in detail view

Post by TacTic »

Ok I tried to change a few lines of code on this file
components/com_phocagallery/views/categories/tmpl/default.php

it didn't change much my front-end
http://tiny.cc/yr61w

I remplaced this (line 50)

Code: Select all

if($this->tmpl['equalpercentagewidth'] == 1) {
    $fixedWidth            = 100 / (int)$columns;
    $fixedWidhtStyle1    = 'width:'.$fixedWidth.'%;';
    $fixedWidhtStyle2    = 'width:'.$fixedWidth.'%;';
} else {
    $fixedWidhtStyle1    = 'margin: 10px;';
    $fixedWidhtStyle2    = 'margin: 0px;';
}
by

Code: Select all

if($this->tmpl['equalpercentagewidth'] == 1) {
    $fixedWidth            = 50/ (int)$columns;
    $fixedWidhtStyle1    = 'width:'.$fixedWidth.'%;';
    $fixedWidhtStyle2    = 'width:'.$fixedWidth.'%;';
} else {
    $fixedWidhtStyle1    = 'margin: 0px;';
    $fixedWidhtStyle2    = 'margin: 0px;';
}
Can anyone see the explanation ?

Many thanks
TacTic
Phoca Member
Phoca Member
Posts: 14
Joined: 15 Sep 2010, 14:41

Re: Setting box size in detail view

Post by TacTic »

Ok got it.

Detailled view only display medium sized thumbnails.

All I had to do was to reduce the size of medium thumbnail in general parameter and recreate the thumbnails.

It works fine know.

Fiewww !
8)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9848
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Setting box size in detail view

Post by Benno »

Ok.
Kind regards,
Benno
Post Reply