Can the theme force a thumbnail size??

RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Sun, 2005-09-11 13:55

The question is short and easy...
Can the theme force a thumbnail size??
(and how)

For my theme I would like to have the thumbnails be a little bit smaller. Ofcourse I can set the width and height attributes, but that isn't really a good solution....

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-09-11 15:59

Not that I know of. It's an album setting, not a theme setting. However, you could use HTML to resize the thumbnail down. That's how the PG theme does it.
http://codex.gallery2.org/index.php/Gallery2:UserContributions

http://www.pedrogilberto.net/gallery2/main.php

Dig down 3 clicks to get to an image and see the thumbs that are in the same album for an example of what I'm talking about.

 
RwD
RwD's picture

Joined: 2005-01-09
Posts: 383
Posted: Sun, 2005-09-11 16:53

That's not nice; then an album setting can mess up design

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-09-11 17:20

Actually, take a look at the Siriux's theme.inc. At least there's a way to provide a default.

Then you could probably edit /modules/core/templates/ItemEditAlbum.tpl so the thumbnail size setting only appears for admins. See this link for providing content based on user
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=133592#133592