natcret Posted March 14, 2016 Report Posted March 14, 2016 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 Quote
web541 Posted March 15, 2016 Report Posted March 15, 2016 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 /> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.