Carbon Theme-Changing size of photo [SOLVED]

saltiredj

Joined: 2007-01-07
Posts: 17
Posted: Sat, 2007-03-10 13:07

First of all, I just want to say that I love the Carbon Theme. I really do. There's one thing, however, that I just can't seem to get to work no matter how much I try.

When a user goes to a photo page, I'd like them to be able to change the size of the photo (like most of the other themes allow you to do). Maybe I've set something up incorrectly or maybe I'm just having a 'senior moment' but I can't, for the life of me, figure out how to get this up and running with the carbon theme?

If anyone has any suggestions or can offer me a helping hand (and then a slap for being so stupid), it would really be appreciated. :-)

Gallery version = 2.2-rc-1 core 1.1.26
PHP version = 5.1.4 apache
Webserver = Apache/1.3.33 (Darwin) mod_jk/1.2.6 DAV/1.0.3 mod_ssl/2.8.24 OpenSSL/0.9.7l
Database = mysql 5.0.19-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, Gd, LinkItemToolkit
Acceleration = none/900, none/0
Operating system = Darwin Beat365.local 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh
Default theme = carbon
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3
Rows in GalleryAccessMap table = 275
Rows in GalleryAccessSubscriberMap table = 5150
Rows in GalleryUser table = 13
Rows in GalleryItem table = 4992
Rows in GalleryAlbumItem table = 187
Rows in GalleryCacheMap table = 289

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-03-10 18:12

I suspect that the author of the theme did not want to have this option as there is a "full sized" popup icon.
It is interesting that the theme options still have the settings for various resizes.
Anyway, where would you like this to be placed? One can look at another themes phopo.tpl (matrix for example) and see how it is done and try to do the same in Carbon photo.tpl

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
saltiredj

Joined: 2007-01-07
Posts: 17
Posted: Sat, 2007-03-10 20:18

Thanks for taking the time to reply, floridave - much appreciated. :)

I was hoping to have this on the photo page to allow people to resize the viewed image (e.g., 640x640/800x800/1200x1200/full size).

I'll take a look at another theme's photo.tpl but, to be honest, it's a bit out of my depth. Still, nothing ventured, nothing gained.

Thanks again. :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2007-03-10 22:03

im matrix it is done like {g->block type="core.PhotoSizes" class="giInfo"}
try to paste that in the carbon photo.tpl to see if it works

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
saltiredj

Joined: 2007-01-07
Posts: 17
Posted: Sat, 2007-03-10 22:27

Floridave, you are a god and I bow before your presence. :-)

I changed ...

Quote:
<div class="gbBlock">
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=$theme.params.showImageOwner
class="giInfo"}
</div>

to

Quote:
<div class="gbBlock">
{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showOwner=$theme.params.showImageOwner
class="giInfo"}
{g->block type="core.PhotoSizes" class="giInfo"}
</div>

and it worked a treat!

Thank you, thank you, thank you. Grovel, grovel, grovel.

(Isn't it nice when you're appreciated?) :-D

 
dizope

Joined: 2007-03-28
Posts: 19
Posted: Wed, 2007-03-28 23:04

Thanks, this worked for me too.

Now, is there a way to set the default image size. Currently, it's 640. I would like it to be 800.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2007-03-29 02:11
Quote:
Now, is there a way to set the default image size. Currently, it's 640. I would like it to be 800.

Edit album-> album tab: Resized Images change the 640 to 800.
Then you will have to rebuild resizes.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dizope

Joined: 2007-03-28
Posts: 19
Posted: Thu, 2007-03-29 05:04
floridave wrote:
Quote:
Now, is there a way to set the default image size. Currently, it's 640. I would like it to be 800.

Edit album-> album tab: Resized Images change the 640 to 800.
Then you will have to rebuild resizes.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Thanks Dave, I figured it out earlier by accident - lol. Which is strange because I tried it before but it didn't work. I must not have done something right.

I have another issue now. Since I changed the image sizes and rebuilt from the root down, the html slideshow has multiple sizes that don't work. Where can I edit that drop down? Thanks!!

 
dizope

Joined: 2007-03-28
Posts: 19
Posted: Fri, 2007-03-30 10:30