Page 2 of 2
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 26 Aug 2008, 15:04
by Schneng
I just have medium width and height of 50px, like the small ones, in global parameters and menu parameters. Also I cleaned up my cache, and recreated the thumbnails. All thumbs get the wanted size, it worked bevore in same way. I deactivated shadow, but the box don't get an other size. It seems like the last image I got you, only without shadow.
Maybe I should load the site on a testserver and give you the adminacces?
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 26 Aug 2008, 15:57
by caro84g
Ehm, a few minutes ago, I came to the bright idea I could test it on my own site - and no, it doesn't get smaller than 100x100.
Before these options were offered I know I did this in the PHP - defining the box (I wanted more in a row so I adjusted the boxes a little).
It'll be tomorrow night, before I figured out again which lines you need to change. (and I don't know if this still works with the sizing option now)
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 26 Aug 2008, 16:10
by Schneng
OK, thanks a lot. I'll be waiting in hope

Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 31 Aug 2008, 20:24
by caro84g
Hi,
I didn't try it at my place, so I'm not sure it'll work.
The file you have to change, I think, is: [root]/components/com_phocallery/views/category/tmpl/default.php
There you have from line 69 - 84 this code:
Code: Select all
{
$imageHeight = $this->imageheight;
if ($imageHeight < 100 ) {
$imageHeight = 100;
$boxImageHeight = 100;
} else {
$boxImageHeight = $imageHeight;
}
$imageWidth = $this->imagewidth;
if ($imageWidth < 100 ) {
$imageWidth = 100;
$boxImageWidth = 120;
} else {
$boxImageWidth = $imageWidth + 20;
}
I'd suggest you change all the '100' to 50 and the '120' to 70
Then it'll be this:
Code: Select all
{
$imageHeight = $this->imageheight;
if ($imageHeight < 50 ) {
$imageHeight = 50;
$boxImageHeight = 50;
} else {
$boxImageHeight = $imageHeight;
}
$imageWidth = $this->imagewidth;
if ($imageWidth < 50 ) {
$imageWidth = 50;
$boxImageWidth = 70;
} else {
$boxImageWidth = $imageWidth + 20;
}
I hope that this solves your problem. If it doesn't work, then I honestly wouldn't know why.
Grüßen,
Carolien
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 31 Aug 2008, 23:14
by Schneng
wonderful! It works perfect! Thank you everybody some much for the support! Kind regards, Daniel!

Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 01 Sep 2008, 20:53
by Jan
Great to hear it, thank you Carolien ...
Jan
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ändern
Posted: 02 Sep 2008, 08:56
by caro84g
You're welcome!
Carolien
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ände
Posted: 21 Oct 2010, 22:19
by Schneng
Just to add the solution for this issue in the current source code of Phoca Gallery 2.7.5, due to the fact that the source code of Phoca Gallery changed slightly compared to the one in the above given solution:
In the file
com_phocagallery\views\category\tmpl\default.php for the parameters
$imageHeight and
$imageWidth need to be changed: Every 100 should be changed to 50, every 120 to 70. The final result you can find below:
Code: Select all
$imageHeight = PhocaGalleryImage::correctSize($this->tmpl['imageheight'], 50, 50, 0);
$imageWidth = PhocaGalleryImage::correctSize($this->tmpl['imagewidth'], 50, 70, 20);
Bevore that you have to change the medium width and height to 50px in the global configuration of the gallery.
Re: Göße der Box um Thumbnail innerhalb einer Kategorie ände
Posted: 27 Oct 2010, 20:52
by Jan
Ok, thank you for this guide.
Jan