Angel Air Posted February 1, 2012 Report Posted February 1, 2012 Hi all, I have been having some trouble getting an image to show with the download link. When you add a download you have the option to put in an image link which I have done but it does not show up on the downloads page any ideas? Thanks Scott Quote
Jeff Posted February 1, 2012 Report Posted February 1, 2012 Make sure your link to the image is located in the downloads_list.tpl <img src='<?php echo $download->image ?>' alt='<?php echo $download->name?>' title="<?php echo $download->name?>" /> Quote
Moderators mark1million Posted February 2, 2012 Moderators Report Posted February 2, 2012 That was a little fix i was meaning to get round to for ages lol Finally done it now. Quote
Angel Air Posted February 2, 2012 Author Report Posted February 2, 2012 Thankyou all works now!!! Another question is there a way to code it so it shows the image at a specific size if not no problem I will have to resize the images to suit the downloads page. Thanks again Scott Quote
Jeff Posted February 2, 2012 Report Posted February 2, 2012 <img src='<?php echo $download->image ?>' alt='<?php echo $download->name?>' width="100px" title="<?php echo $download->name?>" /> Change the 100px on the width to the width of your image, and you are good to go. Quote
Angel Air Posted February 2, 2012 Author Report Posted February 2, 2012 <img src='<?php echo $download->image ?>' alt='<?php echo $download->name?>' width="100px" title="<?php echo $download->name?>" /> Change the 100px on the width to the width of your image, and you are good to go. Spot on my friend!!! Thankyou for your help. Scott 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.