Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
time to download this attchment Details »»
time to download this attchment
Version: 1.00, by all-the-vb all-the-vb is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-07-2004 Last Update: Never Installs: 22
 
No support by the author.

Hello Everyone ,
time to download this attchment by All-the-vb

This a very small but usefull Hack!
What this hack does?
show a size attachment with KB or Mb ----> And the time you want to download this attachment.
and see a Screenshot in the a next reply

Files to edit: 1 (showthread.php)
Templates to edit: 1 (postbit_attachment)

Time to install: 2 min

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-09-2004, 09:36 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about keeping it as KB, like 2000KB, that might work, i'll try and mod it myself and post it if it works
Reply With Quote
  #23  
Old 06-09-2004, 09:55 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:classic:
Reply With Quote
  #24  
Old 06-09-2004, 10:07 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i've just tried to install it normally on my vb 3.0.1 board and it doesn't work cause in postbit_attachment there is no reference of $attachment[filesize] bytes. If i leave this field blank or add it in afterwards the attachments in my board come up as 0.00KB
Reply With Quote
  #25  
Old 06-09-2004, 11:24 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got this to work but can't upload attachments bigger than 1MB at the moment. I should have this figurered out later today
Reply With Quote
  #26  
Old 06-10-2004, 12:33 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any word?
Reply With Quote
  #27  
Old 06-10-2004, 11:06 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got it to work for seconds, e.g.

size: 1.65 MB, download time: 216.63 sec, 2 views

now trying minutes. If needed i'll try hours also.
Reply With Quote
  #28  
Old 06-11-2004, 05:42 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mu5icMan
i got it to work for seconds, e.g.

size: 1.65 MB, download time: 216.63 sec, 2 views

now trying minutes. If needed i'll try hours also.
can you post the code you have so far?
Reply With Quote
  #29  
Old 06-11-2004, 07:27 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've changed when it regisiters the format from Kb to MB to 800000. And i've taken out the code for minutes cause there's something wrong with it. I've also added @ 64 Kbps at the end. If you don't want it for the timing of a 64Kb connection just change 64000 to whatever you want.

$attachment[time] = round(($attachment[filesize] * 8)/64000,2);
if ($attachment[filesize] > 800000) {
$attachment[filesize] = round(($attachment[filesize]/1024)/1024,2);
$attachment[filesize] = "$attachment[filesize] MB";
} else {
$attachment[filesize] = round($attachment[filesize]/1024,2);
$attachment[filesize] = "$attachment[filesize] kB";
}

{
$attachment[downtime] = "size: $attachment[filesize], download time: $attachment[time] secconds @ 64 Kbps";
}
Reply With Quote
  #30  
Old 06-11-2004, 07:33 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mu5icMan
I've changed when it regisiters the format from Kb to MB to 800000. And i've taken out the code for minutes cause there's something wrong with it. I've also added @ 64 Kbps at the end. If you don't want it for the timing of a 64Kb connection just change 64000 to whatever you want.


$attachment[time] = round(($attachment[filesize] * 8)/64000,2);
if ($attachment[filesize] > 800000) {
$attachment[filesize] = round(($attachment[filesize]/1024)/1024,2);
$attachment[filesize] = "$attachment[filesize] MB";
} else {
$attachment[filesize] = round($attachment[filesize]/1024,2);
$attachment[filesize] = "$attachment[filesize] kB";
}

{
$attachment[downtime] = "size: $attachment[filesize], download time: $attachment[time] secconds @ 64 Kbps";
}
so place this instead of the one in the first post?
Reply With Quote
  #31  
Old 06-11-2004, 09:00 AM
Mu5icMan Mu5icMan is offline
 
Join Date: Aug 2003
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes and also change the template is in the first post
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 03:01 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
  • Page Generation 0.04551 seconds
  • Memory Usage 2,293KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete