adding a direct URL to each photo

daoist

Joined: 2002-08-22
Posts: 38
Posted: Fri, 2002-08-23 13:05

i wanted a direct URL to be displayed for each photo, so that people can link to images in my gallery from any website on the net.

to do this, edit view_photo.php

and find this section:

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>
<!-- caption -->
<tr>
<td colspan=3 align=center>
<span class="caption"><?= editCaption($gallery->album, $index, $edit) ?></span>
<br>url: <a href="<?=$photoURL?>"><?=$photoURL?></a><br>
</td>
</tr>
</TD></TR></TABLE><!-- BBCode End -->

and add the bold, italicized line.

example:

<!-- BBCode Start --><A HREF="http://picdump.dhs.org/gallery/daowebimages/southparkme" TARGET="_blank">Example</A><!-- BBCode End -->

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-08-23 15:34

You could have done this using one of the html_wrapper files, which is what
they are there for. I'm pretty sure I mentioned this elsewhere.

 
daoist

Joined: 2002-08-22
Posts: 38
Posted: Fri, 2002-08-23 17:53

good point. I did this mod before i even knew about these forums and the work that other people were doing :wink: