Back to vBulletin 3.8 Template Modifications

add Download Button next to attachments
Mod Version: 1.00, by Mohammad Kamal

vB Version: 3.8.7 Rating: (0 vote - 0 average) Installs: 11
Released: 13 Jan 2013 Last Update: Never Downloads: 0
Not Supported Template Edits Translations  

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>)
below it add:

Code:
<a class="downloadbutton_attachments" href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>Download</a>
Then add the following code in Main CSS > Additional CSS Definitions :

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; }
You can edit the color as you like!

and that's it, Enjoy

Download

No files for download.

Screenshots

Click image for larger version
Name:	1-13-2013 1-52-57 AM.png
Views:	589
Size:	4.2 KB
ID:	143277  


vblts.ru supports vBulletin®, 2022-2024