Image Size Beside Category Name

Phoca Gallery - image gallery extension
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Image Size Beside Category Name

Post by Nabucco »

Hi! Thanks for this gallery, it's the best one, but i have a problem...
After installing orange theme i can't set "Image Size Beside Category Name" on MEDIUM anymore... it remains small.
I've tried to restore default theme, nothing.
I've tried to unistall and reinstall phoca, nothing.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Image Size Beside Category Name

Post by Jan »

Hi, this should not depend on the theme. Did you set it in parameters component in menu link to gallery (for Categories View):
https://www.phoca.cz/documents/16-joomla ... -in-joomla

Jan
If you find Phoca extensions useful, please support the project
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Re: Image Size Beside Category Name

Post by Nabucco »

Hi Jan! Thanks for your answer and for your work with phoca!
Image Size Beside Category Name is perfect now (i'm sorry for mistake with Component Parameter), but i have another problem with thumbnails...
I've read and followed the guide to resize thumbnails ( https://www.phoca.cz/documents/2-phoca-g ... w-resizing ) and the images shadows3 and shadow2 are correctly applied after editing (i verified it with firebug). But Thunbnails are still small (althought thumbnails recreating) and the box around shadow2 (phocagallery-box-file-first) is still small, so it can't contain it.
I can't understand...

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Image Size Beside Category Name

Post by Jan »

Hi, can I see some screenshot?
If you find Phoca extensions useful, please support the project
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Re: Image Size Beside Category Name

Post by Nabucco »

Hi Jan!
This is the website: http://icooleys.netsons.org/icooleys/in ... &Itemid=59

Orange frame is not visible (this orange frame: http://icooleys.netsons.org/icooleys/in ... &Itemid=59 ) and thumbnails remain small.
I set "shadow 200x200" in Image Background Shadow and with firebug you can see that there is the right image (shadow2.png 218x218) in phocagallery-box-file-first:
background:transparent url(/icooleys/components/com_phocagallery/assets/images/shadow2.png) no-repeat scroll 50% 50%;
Anyway, thumbnail is still small and the box around picture too small, so orange frame is not visible.

Thanks!
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Re: Image Size Beside Category Name

Post by Nabucco »

I've tried to resize manually the box editing default.php in components/com_phocagallery/views/category/tmpl
// Height of all boxes
$imageHeight = PhocaGalleryImage::correctSize($this->tmpl['imageheight'], 200, 200, 0);
$imageWidth = PhocaGalleryImage::correctSize($this->tmpl['imagewidth'], 200, 220, 20);
Now orange frame is visible, but thumbnails are still small:
http://img534.imageshack.us/img534/6196/bigbox.png
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Image Size Beside Category Name

Post by Jan »

Hi, if you want to resize thumbnails, you need to set size for them and then recreate them.

https://www.phoca.cz/documents/2-phoca-g ... w-resizing

Jan
If you find Phoca extensions useful, please support the project
Nabucco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 03 Apr 2010, 14:39

Re: Image Size Beside Category Name

Post by Nabucco »

SOLVED!

After following the "Guide to resize thumbnails" ( https://www.phoca.cz/documents/2-phoca-g ... w-resizing ), you must set the right size in "Images and Windows Size Settings" (in Phoca Parameters).
So if i create a 200x200 shadow as medium image, then i must set 200x200 for medium image width and height in "Images and Windows Size Settings". Unluckly this setting resizes both thumbnails and boxes around the thumbnails, there isn't different settings for each one, but it's ok.

I think it would be useful to add this step in the "Guide to resize thumbnails".
Thanks for the assistance and good work with Phoca! :wink:
Post Reply