natcret Posted March 14, 2016 Report Share 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 Link to comment Share on other sites More sharing options...
web541 Posted March 15, 2016 Report Share 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 Link to comment Share on other sites More sharing options...
natcret Posted March 16, 2016 Author Report Share Posted March 16, 2016 That was the ticket. Thanks! Quote Link to comment Share on other sites More sharing options...
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.