full size image > new window.

oyon

Joined: 2004-11-03
Posts: 1
Posted: Wed, 2004-11-03 12:50

I'm sure somebody has asked this before. I run quite a narrow, centred website, which I've just got gallery integrated into (pretty chuffed.)

Thing is, when you click on the intermediate, you get the full size original. This is nice, I quite like the idea of having the original image on the site; but the size screws up my layout if the image is vaguely large.

I'd like to be able to be able to have the full size image open in a new window / popup when you click the intermediate. Is this possible at all ? I thought I was okish at bodging things together but I had a look around in view_photo.php and i think it's a bit above my level. Anybody out there that can help me ?

Cheers, James.

This is the site: http://oyon.mine.nu/gallery/albums.php (12:00 to 24:00 GMT)

 
kraze
kraze's picture

Joined: 2004-11-06
Posts: 11
Posted: Sat, 2004-11-06 06:38

bump.

I would LOVE to know this also. Im setting up a gallery at teamxw.com and my site is skinny :(

 
kraze
kraze's picture

Joined: 2004-11-06
Posts: 11
Posted: Sat, 2004-11-06 20:37

how about a maximum original size limit?

 
kraze
kraze's picture

Joined: 2004-11-06
Posts: 11
Posted: Mon, 2004-11-22 07:25

bump?

How about a new window command for large full verison??

 
jfee

Joined: 2006-05-06
Posts: 2
Posted: Mon, 2006-05-08 02:08

bump, looking for same thing

 
vcorreia

Joined: 2006-08-08
Posts: 4
Posted: Tue, 2006-08-08 23:35

Yes, I am also looking for the same thing. I want photos to have the option to display a big nice full size. But my website is narrow, so it ruins my whole website if it is not displayed on a popup window. Pls HELP. THANK YOU

 
vcorreia

Joined: 2006-08-08
Posts: 4
Posted: Tue, 2006-08-08 23:37

maybe all we need is just to make a small change on the theme...(instead of Link full size, and dropdown menu to full size displays on self window....) > (open on a popup)

Pls HELP

 
vcorreia

Joined: 2006-08-08
Posts: 4
Posted: Tue, 2006-08-08 23:37

ops,wrong forum. I am using Gallery 2

 
leiferikson
leiferikson's picture

Joined: 2003-05-22
Posts: 40
Posted: Fri, 2006-08-11 16:00

well, same problem. Switsch to Gallery version2?

Gallery URL: bilderbar de/gallery
Gallery version: 1.4.4-pl4
Apache version: Apache/1.3.31 (Unix)
PHP version : 4.3.9
Operating system: Linux, Mac OSX
Web browser/version :mozilla

 
eldude

Joined: 2006-10-15
Posts: 3
Posted: Sun, 2006-10-15 10:01

Same question here!

I'm just finishing up an album:
http://ramscycling.com/gallery/index.html

... and the intermediate image fits OK but when you go to the full size image it's hard to see. Check the site and you'll see what I mean. Is there an easy way to get it to open on top or in a new window?

BTW I'm using Gallery v1.5-RC2

Thanks!

 
eldude

Joined: 2006-10-15
Posts: 3
Posted: Tue, 2006-10-24 08:15

It took me forever but I finally figured out a dirty solution to have the full size image open in a new window...

In the view_photo.php file, replace the line
$href = makeAlbumUrl($gallery->session->albumName, $id, array("full" => 1));

with these lines

$index = $gallery->album->getPhotoIndex($id);
$photo = $gallery->album->getPhoto($index);
$photoURL = $gallery->album->getAlbumDirURL("full") . "/" . $image->name . "." . $image->type;
$href = "{$photoURL}\" target=\"_blank";

Let me know if this works for everyone or if anyone has a better solution.

~Ian

 
basketcase

Joined: 2006-09-03
Posts: 9
Posted: Thu, 2006-10-26 01:29
eldude wrote:
It took me forever but I finally figured out a dirty solution to have the full size image open in a new window...

In the view_photo.php file, replace the line
$href = makeAlbumUrl($gallery->session->albumName, $id, array("full" => 1));

with these lines

$index = $gallery->album->getPhotoIndex($id);
$photo = $gallery->album->getPhoto($index);
$photoURL = $gallery->album->getAlbumDirURL("full") . "/" . $image->name . "." . $image->type;
$href = "{$photoURL}\" target=\"_blank";

Let me know if this works for everyone or if anyone has a better solution.

~Ian

Didn't work for me...

 
eldude

Joined: 2006-10-15
Posts: 3
Posted: Thu, 2006-10-26 03:06

Thats strange, what version of Gallery are you using? I think I'm on 1.5R2 right now.

 
basketcase

Joined: 2006-09-03
Posts: 9
Posted: Thu, 2006-10-26 03:13

1.5.4

 
Yuan

Joined: 2003-12-03
Posts: 144
Posted: Thu, 2006-11-02 08:09

I got a one-liner - to the same line; see this thread: http://gallery.menalto.com/node/56358#comment-207148