add the url under the photo

knarfdotca

Joined: 2004-09-28
Posts: 2
Posted: Tue, 2004-09-28 14:19

I want to add the url under the photo in the caption but I can not figure out how to add the extension (.jpg .gif) to the end of the URL. I want to link for eBay and want a simple copy and paste below the photo for use in the auction. Here is the code that I am using

Quote:
<!-- caption -->
<p align="center" class="modcaption"><?php echo editCaption($gallery->album, $index) ?>

<br><br><?php print makealbumUrl($gallery->session->albumName, $id)?><br><br>
<input type="text" name="mytag" value="&img src=&<?php print makealbumUrl($gallery-

>session->albumName, $id)?>&&" onClick="highlight(this);" size="20"><br>
There is the code. You have to add the .jpg or .gif extension at the end of the name till I

figure out how to do it. Just add it before the last quote.<br>

</p>

It does everything I want but I would have to add the .jpg or .gif to the end of the file name. Thanks

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16315
Posted: Wed, 2004-09-29 00:38

Not tested but this might work:
$image->type;

Dave

Login or register to post comments
knarfdotca

Joined: 2004-09-28
Posts: 2
Posted: Wed, 2004-09-29 02:01

Thanks Dave, I did get it to work. I have a text box with the image url in it as well as the url listed above that . Here is the code I used:

Quote:
<!-- caption -->
<p align="center" class="modcaption"><?php echo editCaption($gallery->album, $index) ?> <br>
<br><?php print $photoURL?>
<br><br>

HTML CODE <input type="text" name="mytag" value="&img src=&<?php print $photoURL?>&>" size="20"> Copy and Paste into Your Auction<br>
</p>

It is located in the view_photo.php file and located near the bottom of the page. It does exactly what I want it to do and seems to work great.

You can see it http://mrsdressup.ca/ebayimages/albums.php

Login or register to post comments