Quote:
Originally Posted by Lynne
Have you tried just modifying the postbit_attachment template to do this?
|
Ok, that makes sense. I'm no expert on this type of thing, but I'm guessing this is the bit of code from postbit_attachment I'm concerned with:
Code:
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a>
Can somebody point me in the right direction as to how to go about editing this to get an image rather than the file name?
--------------- Added [DATE]1301116014[/DATE] at [TIME]1301116014[/TIME] ---------------
Ok, took a shot at it myself and it's pretty easy. For anybody else seeking to do the same here's what I did:.
Code:
<a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>><img src="http://yourimage.png" border="0" alt="Download"></a>