Jeremy Posted May 24, 2010 Report Share Posted May 24, 2010 Hi everyone, Its me again. I've tried everything to get images of my aircraft onto each of my downloads. But whatever link I put in the "Image Link" field never shows up on the actual web-page. Any help / advice would be great! Thanks, Jeremy, CEO Cirrus Air www.cirrusva.com Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 24, 2010 Administrators Report Share Posted May 24, 2010 You have to do $download->imagelink, I think it's described in the comments in that template Quote Link to comment Share on other sites More sharing options...
Jeremy Posted May 25, 2010 Author Report Share Posted May 25, 2010 Thanks! Quote Link to comment Share on other sites More sharing options...
Tom Posted May 26, 2010 Report Share Posted May 26, 2010 Hi Jeremy, here's an example: Create a copy of downloads_list.tpl in your skin folder, find: <li> <a href="<?php echo url('/downloads/dl/'.$download->id);?>"> <?php echo $download->name?></a><br /> <?php echo $download->description?><br /> <em>Downloaded <?php echo $download->hits?> times</em></li> Replace: <li style="overflow:hidden;"> <a href="<?php echo url('/downloads/dl/'.$download->id);?>"> <?php echo $download->name?></a> <img src="<?php echo $download->image?>" style="float:right;" /><br /> <?php echo $download->description?><br /> <em>Downloaded <?php echo $download->hits?> times</em></li> This adds the image on the right of the page, like so: You can of course position and style the image/list item as you wish by editing the style="", or adding an id/class. The List Item has "style="overflow:hidden;"" to prevent the images overlapping, if you change the position of the image you may not need this any more. 1 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.