Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
add Download Button next to attachments Details »»
add Download Button next to attachments
Version: 1.00, by Mohammad Kamal Mohammad Kamal is offline
Developer Last Online: Aug 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.2.0 Rating:
Released: 01-11-2013 Last Update: Never Installs: 19
Template Edits
Translations  
No support by the author.

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

Code:
<a class="downloadbutton_attachments" href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&amp;d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>Download</a>
then open additional.css template and add the following code:

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

Screenshots

File Type: png 1-13-2013 2-17-43 AM.png (5.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
ITDarasgah

Comments
  #12  
Old 08-22-2014, 09:03 AM
westbam666's Avatar
westbam666 westbam666 is offline
 
Join Date: Jul 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



On vB 4.2.2 does not working.
Reply With Quote
  #13  
Old 08-22-2014, 09:27 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you followed the instructions in the first post? If so I gave you a link to another mod in your other post.
Reply With Quote
  #14  
Old 08-22-2014, 10:29 AM
westbam666's Avatar
westbam666 westbam666 is offline
 
Join Date: Jul 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Followed the instructions, but does not work
Reply With Quote
  #15  
Old 05-13-2015, 11:47 AM
Narabedla Narabedla is offline
 
Join Date: Oct 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by westbam666 View Post


On vB 4.2.2 does not working.
I also do the same thing on vb 4.2.2 patch level 4.

Reply With Quote
  #16  
Old 05-13-2015, 12:29 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=298845" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=298845</a>
Reply With Quote
  #17  
Old 05-13-2015, 12:38 PM
Narabedla Narabedla is offline
 
Join Date: Oct 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
Hello Force,
I do not understand, i just installed the dbtech and i have the same problem, the download button will not appear.

is problem my forum?

Reply With Quote
  #18  
Old 05-13-2015, 12:47 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb version?
Reply With Quote
  #19  
Old 05-13-2015, 01:21 PM
Narabedla Narabedla is offline
 
Join Date: Oct 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
vb version?
Now i have vb 4.2.2 patch level 4

I have installed correct mod and button not appear.
Reply With Quote
  #20  
Old 05-13-2015, 01:24 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have dbtech on same vb version as you and it works. Ask on the plugin for the coders support or dbtech site see what they can do for you
Reply With Quote
  #21  
Old 05-13-2015, 01:26 PM
Narabedla Narabedla is offline
 
Join Date: Oct 2012
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForceHSS View Post
Have dbtech on same vb version as you and it works. Ask on the plugin for the coders support or dbtech site see what they can do for you
Ok, thanks for the advice Force
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05283 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete