Jump to content

Recommended Posts

Posted

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

Posted

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?>" />

Posted

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

Posted

<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.

Posted

<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

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...