Jump to content

Download Script Help


natcret

Recommended Posts

Hi folks,

If anyone could lend help with this, I would appreciate it. Per this post, I was able to modify the download_list.php file get the image added. What I am trying to figure out now is how to make a link out of the IMG tag so that if a person clicks on the reduced size picture (reduced due to the width attribute), they would be able to see the original full size picture (in a separate window of course).

<li style="overflow:hidden;">
<a href="<?php echo url('/downloads/dl/'.$download->id);?>">
<?php echo $download->name?></a><br />
<img src="<?php echo $download->image?>" style="width:150px; vertical-align:middle;" /><br />
 <?php echo $download->description?><br />
	 <em>Downloaded <?php echo $download->hits? times</em></li><br />

Regards,

Nat

Link to comment
Share on other sites

try this?

<li style="overflow:hidden;">
<a href="<?php echo url('/downloads/dl/'.$download->id);?>">
<?php echo $download->name?></a><br />
<a href="<?php echo $download->image; ?>" target="_blank"><img src="<?php echo $download->image?>" style="width:150px; vertical-align:middle;" /></a><br />
	 <?php echo $download->description?><br />
			 <em>Downloaded <?php echo $download->hits? times</em></li><br />

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...