The Arcive of vBulletin Modifications Site. |
|
add Download Button next to attachments Details »»
|
|||||||||||||||||||||||||||||
|
add Download Button next to attachments
Developer Last Online: Aug 2017
Hello,
Add Download Button next to attachments I posted the same thread but for vBulletin 3 here https://vborg.vbsupport.ru/showthread.php?p=2396524 and now here is it for vBulletin 4 Screenshot: To do that, open postbit_attachment template Search for: Code:
({vb:raw attachment.filesize}<vb:if condition="$show['views']">, {vb:rawphrase x_views, {vb:raw attachment.counter}}</vb:if>)
Code:
<a class="downloadbutton_attachments" 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>>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 ![]() Screenshots
Show Your Support
|
|||||||||||||||||||||||||||||
| Благодарность от: | ||
| ITDarasgah | ||
| Comments |
|
#2
|
||||
|
||||
|
I like it, however I get a strange reaction when adding the CSS. It changes the colors of certain areas of my skins. Is it just me?
|
| Благодарность от: | ||
| Mohammad Kamal | ||
|
#3
|
||||
|
||||
|
ya that's right, I just edited the CSS code above, replace it please
|
|
#4
|
||||
|
||||
|
Much obliged Sir. Works Great! Thank you.
|
|
#5
|
||||
|
||||
|
Thanks Mohamed
superb when downloading attachments
|
|
#6
|
|||
|
|||
|
Works great thanks man...
|
|
#7
|
||||
|
||||
|
Works perfect. Great work!
|
|
#8
|
|||
|
|||
|
Works great thanks man
|
|
#9
|
|||
|
|||
|
I tried on 4.2.0 but not working
|
|
#10
|
|||
|
|||
|
I thought this was for vB 4.2.0?
Can anyone confirm if it works on 4.2.0 please |
![]() |
|
|