Add a target='_blank' to each photo in a Album

elranu

Joined: 2003-04-06
Posts: 3
Posted: Wed, 2003-04-30 19:06

Hi,
I want to add a target='_blank' in the
<a href=view_photo.php?set_albumName=album01s&amp;id=photo">image</a> on each album.
How i can do this?
Thanks,
eL RaNu

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-05-01 00:07

Edit the following:

gallery/html_wrap/inline_albumthumb.frame.default :: Line 26:
<td width="<?php echo $thumbWidth ?>" height="<?php echo $thumbHeight ?>"><a target="_blank" href="<?php echo $href ?>"><?php echo $tag ?></a></td>

gallery/html_wrap/inline_moviethumb.frame.default :: Line 17:
<td><a target="_blank" href="<?php echo $href ?>" target="other"><?php echo $tag ?></a></td>

You should copy each file first and remove the ".default" so the changes won't get overwritten when you upgrade Gallery in the future.

-Beckett (

)

 
elranu

Joined: 2003-04-06
Posts: 3
Posted: Thu, 2003-05-01 00:44

Thanks,
but it dosen´t work. I did it as u told me. But the album dosen´t print the target='_blank' in de <a href> of any picture on the album.
Thanks,
eL RaNu

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2003-05-01 01:25

Perhaps I misunderstood you.

The two changes mentioned are for when you click on a *thumbnail*. If you're referring to when you click to see the *full-sized* image, then you should edit this instead:

gallery/html_wrap/inline_photothumb.frame.default :: Line 17:
<td><a target="_blank" href="<?php echo $href ?>"><?php echo $tag ?></a></td>

-Beckett (

)