![]() |
Download button for attachments
Looking for a way to mod attachments to show a download button that links to a posted attachment rather than the attachment file name. Basically just want to hide the filename replace with a button. Any relatively easy way to accomplish this?
|
Hmm, surely somebody has implemented a mod like this.....could it be possible by editing phrases maybe?
|
Have you tried just modifying the postbit_attachment template to do this?
|
Quote:
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> --------------- 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> |
Yep, good job and thanks for sharing the solution. :)
|
Hi,
how can I make the download button when I use a Hide-Hack for attachments? The bbcode looks like [HIDE][ATTACH]Link to file[/ATTACH][/HIDE] I only see the attach number. But instead of the number I wanna see a download button. Can someone tell how to do this? I'm on vB 4.1.10 Thx for help. DaPike |
All times are GMT. The time now is 10:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|