The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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?
|
#2
|
|||
|
|||
Hmm, surely somebody has implemented a mod like this.....could it be possible by editing phrases maybe?
|
#3
|
||||
|
||||
Have you tried just modifying the postbit_attachment template to do this?
|
#4
|
|||
|
|||
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> |
#5
|
||||
|
||||
Yep, good job and thanks for sharing the solution.
|
#6
|
|||
|
|||
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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|