add Download Button next to attachments
Hello,
Now you can add a Download button next to attachments Screenshot: To do that, open postbit_attachment template Search for: Code:
($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>) Code:
<a class="downloadbutton_attachments" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>Download</a> Code:
/* ***** Download Button for attachments by Mohammad Kamal */ .downloadbutton_attachments{ color: black; font-size: 8pt; font-family: tahoma; border: solid 1px; padding: 3px; text-decoration: none; background-color: #DDD; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; } a.downloadbutton_attachments:link { color: black; } a.downloadbutton_attachments:hover { color:red; } and that's it, Enjoy Download No files for download. Screenshots |