Display full res info under thumbnail with no permission to access full res photo ?

marcodepolo

Joined: 2008-10-03
Posts: 11
Posted: Thu, 2009-04-09 07:28

Hi,

I would like to know if it's possible to display the full res information eg:2478x1950 under the thumbnails but without granting the permission to the user to display the full res.
After looking at the debug output for an album page, the information doesn't seem to be available.
Still, we are able to do it in the image block using $block.item.width x $block.item.height so I'm wondering if there is a way to access this information in the album page, but for other thumbnails than the image block.

Any help would be greatly appreciated,

Marc Salvetti

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-04-09 20:37

Sure, set the permission so guest users can see the full res images and you're all set.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-04-09 20:40

Oh, wait, I see what you're asking for, um, I'm going to have to dig into it and see. Maybe someone else knows off the top of their head.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-04-09 23:54

{$child.height}X{$child.width}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
marcodepolo

Joined: 2008-10-03
Posts: 11
Posted: Fri, 2009-04-10 04:29

Thanks for your reply,
after checking your solution, it appears that the size displayed using $child.width is of the resized version, not the full res picture.

Any other idea ?

Marc Salvetti
http://iconsulting-fr.com

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-04-10 05:46

Seems to work for me but I have has a couple of beers so I might be making a mistake.
look at http://www.langleycom.com/gallery2/main.php?g2_itemId=34
the first image has permissions so you can only see the resized version.
under the thumb it says: 2304 ( {$child.height} ) all other thumbs have the same size and all other items you can view the full sized image.
cache? or I don't understand.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
marcodepolo

Joined: 2008-10-03
Posts: 11
Posted: Fri, 2009-04-10 06:38

My bad, I've been testing on an album that was containing smaller fullres, so I got confused and tought the info was the resize while it was the full res

$child.width works well, thanks very much for your help

Marc Salvetti
http://iconsulting-fr.com