Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DownloadsII Details »»
DownloadsII
Version: 5.1.2, by RS_Jelle RS_Jelle is offline
Developer Last Online: May 2016 Show Printable Version Email this Page

Category: Major Additions - Version: 3.8.x Rating:
Released: 07-01-2006 Last Update: 04-24-2010 Installs: 2111
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

There's a vB4 version of this mod available: https://vborg.vbsupport.ru/showthread.php?t=231427

DownloadsII

DownloadsII is a download database that integrates into vBulletin. It allows you to upload files, add images to them, create categories, link to external files - and more. It is very flexible and has many options.

Because a lot of people keep on asking this:
This mod works with any version of vBulletin 3.7.x and 3.8.x!

It's also coded 100% XHTML 1.0 Transitional valid, just like vBulletin itself.



Instructions & Support

You can find an installation manual in the zip package (Readme-Install.txt).

We try to answer most questions asked in this thread. Please don't send any pm's if we don't ask for them, as we said we try to give a high level of support in this thread. Don't forget to click the install link, so you will receive important update notifications.

Screenshots & Live demo

At the bottom of this post, you can find 6 screenshots of the front-end and back-end (AdminCP part) of the DownloadsII software. You can see the newest version in action at the Minatica.be Downloads (Dutch).

Changelog (version 5.1.2)

Jelle
  • Backported CSRF security fix from the vB 4 release
  • Added permission check for Update Counters
  • Fixed PHP warnings when running PHP 5.3
  • Removed the imagecreatefrombmp() function. It doesn't exist.
  • Added permission check for rating submissions
You can find all the changelogs of this and older versions here.

Help!!! I can't upload large files??

This is probably the second most asked question. Have a look at this post for the solution.

It doesn't work with GARS?!

If you also use the latest version of GARS, you will get the "Fields marked in RED must be filled in!" error when uploading a file. I provided a fix here on the GARS forums.

Addons

We are offering 3 addons for this mod at the moment (have a look at the bottom of this post for them). DownloadsII contains 5 hook locations for the vBulletin plugin systems, so you can add extra functionality without file edits.

Do you want to help expanding DownloadsII (if you are a coder)? Check out this post!

Notes
  • ecDownloads Buddy is NOT compatible with this version. If you are using the Buddy, you should UNINSTALL it before installing DownloadsII ver 5.x.x. The Buddy's features are now integrated into DownloadsII.
  • DownloadsII is a direct derivative work from Ron1n's ecDownloads.

Addons

Download Now

File Type: zip DownloadsII-5.1.2.zip (54.5 KB, 2190 views)

Screenshots

File Type: gif ecDownloadsII-5.0.1-add-file.gif (97.8 KB, 0 views)
File Type: gif ecDownloadsII-5.0.1-admin-edit-category.gif (18.7 KB, 0 views)
File Type: gif ecDownloadsII-5.0.1-admin-navigation.gif (4.6 KB, 0 views)
File Type: gif ecDownloadsII-5.0.1-category.gif (86.8 KB, 0 views)
File Type: gif ecDownloadsII-5.0.1-file.gif (108.2 KB, 1 views)
File Type: gif ecDownloadsII-5.0.1-main.gif (64.3 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #2042  
Old 12-08-2007, 01:55 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SAUR0N View Post
is it normal that the files dupicates itself into a tmp folder? because with a 500kb files it's ok but with a 2gb :S
Yes, that's normal and how the program works. It duplicates itself but is then erased. This prevents people from directly linking to the file.
Reply With Quote
  #2043  
Old 12-09-2007, 01:42 PM
SAUR0N SAUR0N is offline
 
Join Date: Oct 2003
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what would happen if 4 users wants to download the same file at the same time?. will it duplicate 4 times?

what about using fpassthru ?
Reply With Quote
  #2044  
Old 12-10-2007, 04:34 AM
InoffLine InoffLine is offline
 
Join Date: Nov 2007
Location: Russia
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As i understood it makes more then 35 sql queries on one page. So will you work on decreasing their number?
Reply With Quote
  #2045  
Old 12-10-2007, 05:10 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SAUR0N View Post
what would happen if 4 users wants to download the same file at the same time?. will it duplicate 4 times?

what about using fpassthru ?
We're working on this for v6 (also putting files in multiple directories (with an option for storing them outside the forums directory) instead of all files in one).

Quote:
Originally Posted by InoffLine View Post
As i understood it makes more then 35 sql queries on one page. So will you work on decreasing their number?
Not on normal pages
You only get those numbers if you are having a lot of subcategories as we aren't caching the category structure yet. So the amount *can* be high, but as the category table isn't that heavy, the queries aren't slow and the page also isn't.
But we are working on it: storing the category structure in the datastore would be better.
Reply With Quote
  #2046  
Old 12-10-2007, 11:04 AM
jimjam jimjam is offline
 
Join Date: Jul 2007
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suddenly, members are getting "ERROR: File not found" on just some files they want to download. The files are physically there in the downloads folder.

Any idea what might be causing this?

Thanks in anticipation
Reply With Quote
  #2047  
Old 12-10-2007, 01:10 PM
Kingster Kingster is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod guys... It's working well so far. Had a few issues converting some old downloads that I had, plugging it into your mod... But so far, so good. I've clicked Installed.

Couple of things that I'm (and my users) are looking for:
  1. Search downloads by user. I know that I can go to the person's profile and see what they've uploaded, but I'd like to add a button image to their postbit if they have files that they've upped. This button would take them to the result of a search for files that they have uploaded. Thoughts on how to do this?
  2. RSS feeds for categories. I have users that would like to watch for new files. Anyway to create RSS feeds that displays most recent uploads by category as well as an overall most recent uploads? I could do a work-around by creating a thread per upload, but, why, when comments for each upload is available.
  3. I mentioned it before - no one responded... What about using one of the free flash-based uploaders out there - doesn't have all the PHP upload limitations, plus it gives visual feedback on the upload process... And, it's not FTP based.
  4. How do I set the default download button to be used when viewing a category? Currently it shows the collapse button, and I've created a much better button that I would like to use. I thought it was the ecdownloads_download_pic variable in the phrase table (doesn't seem to be exposed anywhere on the interfaces), but it didn't change the image used when I changed the name to the new image I wanted to use.
Once again, great mod! Thanks for all your support!
Reply With Quote
  #2048  
Old 12-10-2007, 02:21 PM
xTerMn8R xTerMn8R is offline
 
Join Date: Mar 2004
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Folks

I had this installed and working great and then added a new skin to the site (style) Now when I try and download something It tells me I've excided my Daily Limit. I'm ADMIN and have checked all the permissions for DownloadsII and have NO restrictions on group and checked all the settings. I did find that I had to re-import a lot of my other products to get them to work in this style so My question is ....

If I re-install the DownloadsII Product will it Kill all the Files and catagories I already have in there, this really would not be good... Is there another way to tell it to work with a new style without re-installing?

Thanks to ALL ...

Termi
Reply With Quote
  #2049  
Old 12-10-2007, 07:47 PM
Tom_S Tom_S is offline
 
Join Date: Jan 2007
Location: VA Beach
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sure this may have been answered but I haven't found it. When linking to a file such as on downloads.com the url being huge this mod does not accept the entire url. Is there a fix for this? I know the original -> Minatica.be Downloads is working fine with this method so evidently there is an edit I can make somewhere to accommodate this issue.

Thanks in advance.
Reply With Quote
  #2050  
Old 12-10-2007, 11:05 PM
Kingster Kingster is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kingster View Post
Couple of things that I'm (and my users) are looking for:
Add one more thing to the list - resumable downloads: Some code along these lines:
PHP Code:
<?php
function dl_file_resume($file){

    
//First, see if the file exists
    
if (!is_file($file)) { die("<b>404 File not found!</b>"); }
   
    
//Gather relevent info about file
    
$len filesize($file);
    
$filename basename($file);
    
$file_extension strtolower(substr(strrchr($filename,"."),1));
   
    
//This will set the Content-Type to the appropriate setting for the file
    
switch( $file_extension ) {
        case 
"exe"$ctype="application/octet-stream"; break;
        case 
"zip"$ctype="application/zip"; break;
        case 
"mp3"$ctype="audio/mpeg"; break;
        case 
"mpg":$ctype="video/mpeg"; break;
        case 
"avi"$ctype="video/x-msvideo"; break;
        default: 
$ctype="application/force-download";
    }
   
    
//Begin writing headers
    
header("Cache-Control:");
    
header("Cache-Control: public");
   
    
//Use the switch-generated Content-Type
    
header("Content-Type: $ctype");
    if (
strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) {
        
# workaround for IE filename bug with multiple periods / multiple dots in filename
        # that adds square brackets to filename - eg. setup.abc.exe becomes setup[1].abc.exe
        
$iefilename preg_replace('/\./''%2e'$filenamesubstr_count($filename'.') - 1);
        
header("Content-Disposition: attachment; filename="$iefilename"");
    } else {
        
header("Content-Disposition: attachment; filename="$filename"");
    }
    
header("Accept-Ranges: bytes");
   
    
$size=filesize($file);
    
//check if http_range is sent by browser (or download manager)
    
if(isset($_SERVER['HTTP_RANGE'])) {
        list(
$a$range)=explode("=",$_SERVER['HTTP_RANGE']);
        
//if yes, download missing part
        
str_replace($range"-"$range);
        
$size2=$size-1;
        
$new_length=$size2-$range;
        
header("HTTP/1.1 206 Partial Content");
        
header("Content-Length: $new_length");
        
header("Content-Range: bytes $range$size2/$size");
    } else {
        
$size2=$size-1;
        
header("Content-Range: bytes 0-$size2/$size");
        
header("Content-Length: ".$size);
    }
    
//open the file
    
$fp=fopen("$file","rb");
    
//seek to start of missing part
    
fseek($fp,$range);
    
//start buffered download
    
while(!feof($fp)){
        
//reset time limit for big files
        
set_time_limit(0);
        print(
fread($fp,1024*8));
        
flush();
        
ob_flush();
    }
    
fclose($fp);
    exit;
}
?>
Reply With Quote
  #2051  
Old 12-11-2007, 05:44 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jimjam View Post
Suddenly, members are getting "ERROR: File not found" on just some files they want to download. The files are physically there in the downloads folder.

Any idea what might be causing this?

Thanks in anticipation
Did you change servers? Check the chmod of the downloads folder, is it still 777? And do the files inside of it (not the images) have got a 666 chmod?

Quote:
Originally Posted by xTerMn8R View Post
Hey Folks

I had this installed and working great and then added a new skin to the site (style) Now when I try and download something It tells me I've excided my Daily Limit. I'm ADMIN and have checked all the permissions for DownloadsII and have NO restrictions on group and checked all the settings. I did find that I had to re-import a lot of my other products to get them to work in this style so My question is ....

If I re-install the DownloadsII Product will it Kill all the Files and catagories I already have in there, this really would not be good... Is there another way to tell it to work with a new style without re-installing?

Thanks to ALL ...

Termi
That's pretty strange. I don't know how a new style could cause such an error (caused by the DownloadsII PHP code, it hasn't anything to do with the style normally). Are you really sure about the settings of the limits?

If you reinstall (or better said: uninstall and install), all the database stuff will be removed during the uninstall, so you lose all of your data (except uploaded files in your downloads folder). I suggest you to import the product XML again (without uninstalling first!) with the "Allow overwrite" option on. Then the templates etc. are added again to all styles (but it doesn't overwrite template modifications, but that's not the problem).

Quote:
Originally Posted by Tom_S View Post
I am sure this may have been answered but I haven't found it. When linking to a file such as on downloads.com the url being huge this mod does not accept the entire url. Is there a fix for this? I know the demo Minatica.be Downloads is working fine with this method so evidently there is an edit I can make somewhere to accommodate this issue.

Thanks in advance.
That hasn't anything to do with the demo as we are having the same limitation there.

But it's easy to get rid off
It's no database limitation (it's a text field, so plenty of space), but an HTML limitation (the input field for links has got a maxlength of 250 characters. Just edit the downloads_file_addit template and change the maxlength in the following part of the code:
HTML Code:
<input name="link" type="text" size="40" maxlength="250" <if condition="$file['link']==1">value="{$_POST['url']}"</if> />
@Kingster: We are working on v6, but at the moment I'm a bit busy (I've got examns at university in januari). There's already a lot of progress in it (more search options, extensions management -like the vB attachments-, default category sort options and a new category admin, ...). RSS, the search, ... are already suggested, so we try to integrate as much as things, but it's also slowing down a lot. I won't get to a release before the end of my exams, but I really want to finish it finally as we are talking already too long about the new version.

Strange about the category image thing. It's a hardcoded thing, but if there's no image, it's using the ecdownloads_download_pic defined image (I know, not that nice, but we wanted a default image everyone has got). Also note that the image should be placed in your styles buttons folder, that's probably your problem.
Reply With Quote
Reply


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 04:07 PM.


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.12230 seconds
  • Memory Usage 2,408KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_html
  • (1)bbcode_php
  • (7)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
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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
  • (7)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