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) |
|
Posts: 11
bump.
I would LOVE to know this also. Im setting up a gallery at teamxw.com and my site is skinny
Posts: 11
how about a maximum original size limit?
Posts: 11
bump?
How about a new window command for large full verison??
Posts: 2
bump, looking for same thing
Posts: 4
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
Posts: 4
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
Posts: 4
ops,wrong forum. I am using Gallery 2
Posts: 40
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
Posts: 3
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!
Posts: 3
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
Posts: 9
Didn't work for me...
Posts: 3
Thats strange, what version of Gallery are you using? I think I'm on 1.5R2 right now.
Posts: 9
1.5.4
Posts: 144
I got a one-liner - to the same line; see this thread: http://gallery.menalto.com/node/56358#comment-207148