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

 
 
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
  #722  
Old 11-03-2006, 07:11 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
1. I meant posting comments not files sorry. eg. close the thread. I want to close the file, so they can still download but not post comments.

2. Okay cool and to help out, this site is using DownloadsII it appears and they have implemented pretty much everything im looking for, so maybe if you take a look at this site, it will help you to implement some of the features.
Code:
http://www.mpcdownloads.com/forums/downloads/Age-of-empires/HODXP.zip/3957.html
This link above will show you the disclaimer they have integrated somehow.

**I also was wondering if you could possibly make the links either like they are and vbseo compliant as well. If you need to know more on this let me know, as a lot more people are using vbseo it would be great to have it default.** (The above link has been made like that because of vbseo)

3. That would be great. It would really help out, and when you do it, it may be wise to have it usergroup permissioned as well. eg. only mods can change the status.

4. I was trying to get a search box like the one I showed you in the pic with the drop down menu with those extra options. The one in the above link works. on my site www.gamerzneeds.net/forums/files.html the search works, but the drop down menus do not work. here is the code I used.
Code:
<!-- BEGIN TEMPLATE: searchbox -->

<table cellspacing="3" width="100%"><tbody><tr><td class="tborder"><table class="tborder" align="center" cellpadding="5" cellspacing="0" width="100%">
 <tbody><tr>
  <td class="thead" colspan="2" align="center"><span class="smallfont">Search Downloads</span></td>
 </tr>
 <tr>
  <td style="background-color: rgb(255, 255, 255); background-position: right center; background-repeat: repeat-y;" align="center" background="images/newskin/misc/rowbg3.jpg">
<form action="./downloads.php?do=search" method="post">
         <input type="text" name="query" maxlength="75" size="20" />
         <br />
	<p><select name="where"><option value="1">Title</option><option value="2">Description</option><option value="3">Author</option><option value="4" selected="selected">Search All</option></select>&nbsp;	
	<input type="submit" name="submit" value="{$vbphrase['ecdownloads_search']}" /></p></form>
</td></tr>
</tbody></table></td></tr></tbody></table>



<!-- END TEMPLATE: searchbox -->
Also What is the code you have used to create the boxes around things eg. latest files. As that is the box I would like to get around the search box.

5. Thanks

6. Thanks, although that may be a possibility for now. Once I start adding around 50 categories I think it will be a bit messy maybe.
Is there any easier way? or a possibility of it being easier in the next version?


Thanks for your reply and hope im not being to much trouble.
1. I'm sorry but this isn't possible at the moment.
2. I had a different idea of what you meant (I thought you meant a full page with a disclaimer and such a checkbox, but you mean it on the same page). Just replace the download buttons with a code like this:
Code:
<script type="text/javascript">
<!--
function checkCheckBoxes(disclaimercheck)
{
	if (disclaimercheck.disclaimer.checked == false)
	{
		alert ("You have to agree to the disclaimer if you want to download.");
		return false;
	}
	return true;
}
//-->
</script> 
<form name="disclaimercheck" method="get" action="downloads.php" onsubmit="return checkCheckBoxes(this);">
	<input type="hidden" name="do" value="file">
	<input type="hidden" name="id" value="$file['id']">
	<input type="hidden" name="act" value="down">
	<input type="checkbox" name="disclaimer"> I have read and understand the <a href="http://www.yoursite.com/index.php?page=disclaimer">Disclamer</a>.
	<br /><input type="submit" class="button" value="Download">
</form>
4. This site isn't running DownloadsII, but the older ecDownloads of Ron1n (a modified one). Such dropdowns won't work, because there is no option to do such search actions (you can only do a general search at the moment). The next big release will contain a more advanced search system, this is on our todo list.
6. The way to get around this requires modifying the DownloadsII PHP code a bit harder. Normally I've got some time this weekend, so I will try to send you a pm with some custom code to do it
Reply With Quote
  #723  
Old 11-03-2006, 09:32 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RS_Jelle
1. I'm sorry but this isn't possible at the moment.
2. I had a different idea of what you meant (I thought you meant a full page with a disclaimer and such a checkbox, but you mean it on the same page). Just replace the download buttons with a code like this:
Code:
<script type="text/javascript">
<!--
function checkCheckBoxes(disclaimercheck)
{
	if (disclaimercheck.disclaimer.checked == false)
	{
		alert ("You have to agree to the disclaimer if you want to download.");
		return false;
	}
	return true;
}
//-->
</script> 
<form name="disclaimercheck" method="get" action="downloads.php" onsubmit="return checkCheckBoxes(this);">
	<input type="hidden" name="do" value="file">
	<input type="hidden" name="id" value="$file['id']">
	<input type="hidden" name="act" value="down">
	<input type="checkbox" name="disclaimer"> I have read and understand the <a href="http://www.yoursite.com/index.php?page=disclaimer">Disclamer</a>.
	<br /><input type="submit" class="button" value="Download">
</form>
4. This site isn't running DownloadsII, but the older ecDownloads of Ron1n (a modified one). Such dropdowns won't work, because there is no option to do such search actions (you can only do a general search at the moment). The next big release will contain a more advanced search system, this is on our todo list.
6. The way to get around this requires modifying the DownloadsII PHP code a bit harder. Normally I've got some time this weekend, so I will try to send you a pm with some custom code to do it
Thanks heaps, I really appreciate all the time you are putting in. and I will try out the above code now. Thanks.



Edit:After trying to place that code in different spots, replacing code that I think was the downloads button code and so on, I got this same error message when trying to save the template
Code:
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/forums/includes/adminfunctions_template.php(3593) : eval()'d code on line 61

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I was trying to edit this template: downloads_file

Which templates should I edit, and what part of the code do I replace. I'll keep trying but I think im going about this the wrong way lol.

Thanks.
Reply With Quote
  #724  
Old 11-03-2006, 10:14 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no removing the 90% did not solve it. I think the problem somehow is with the downloads_wrapper_top template.
Reply With Quote
  #725  
Old 11-03-2006, 11:48 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
no removing the 90% did not solve it. I think the problem somehow is with the downloads_wrapper_top template.
See what happens if you set admincp->downloads->settings-> 'Display "Tops" on all pages?' to "Yes". That will cause the downloads_wrapper_top template to not be used when viewing the file details.
Reply With Quote
  #726  
Old 11-03-2006, 11:56 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger
See what happens if you set admincp->downloads->settings-> 'Display "Tops" on all pages?' to "Yes". That will cause the downloads_wrapper_top template to not be used when viewing the file details.
no luck
Reply With Quote
  #727  
Old 11-03-2006, 11:59 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the only way so far I was able to display was by adding </td></tr></table> at the very top of downloads_wrapper_top template, but that messes up the bottom, past navbar
Reply With Quote
  #728  
Old 11-04-2006, 01:33 AM
jarvis jarvis is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been using this hack for a while, and thanks by the way, but I would love to see a future enhancement.

Hopefully this is fairly easy since I saw the PM modification for it, but what I would like to see is that each time a file is added/uploaded, it creates a thread in a specific forum announcing the upload with description, link ,etc.

If no one had the time, I'd be willing to contribute to a fund.
Reply With Quote
  #729  
Old 11-04-2006, 05:10 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a table that starts at the very top of header wraps around entire page and closes at bottom of footer

I don't know why it is behaving like that just for those two files, do=file and do=add, but i sort of got around that by closing the table at the very top of the wrapper_top template and restarting all over again.

It does not display 100% properly, but at least I got my logo to display.

These are the only two problematic display sitewide, with any style.
Reply With Quote
  #730  
Old 11-04-2006, 07:01 AM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
Thanks heaps, I really appreciate all the time you are putting in. and I will try out the above code now. Thanks.



Edit:After trying to place that code in different spots, replacing code that I think was the downloads button code and so on, I got this same error message when trying to save the template
Code:
The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/forums/includes/adminfunctions_template.php(3593) : eval()'d code on line 61

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I was trying to edit this template: downloads_file

Which templates should I edit, and what part of the code do I replace. I'll keep trying but I think im going about this the wrong way lol.

Thanks.
You have to edit downloads_file indeed

This code should do the trick:
Code:
<script type="text/javascript">
<!--
function checkCheckBoxes(disclaimercheck)
{
	if (disclaimercheck.disclaimer.checked == false)
	{
		alert ("You have to agree to the disclaimer if you want to download.");
		return false;
	}
	return true;
}
//-->
</script> 
<form name="disclaimercheck" method="get" action="downloads.php" onsubmit="return checkCheckBoxes(this);">
	<input type="hidden" name="do" value="file">
	<input type="hidden" name="id" value="{$file['id']}">
	<input type="hidden" name="act" value="down">
	<input type="checkbox" name="disclaimer"> I have read and understand the <a href="http://www.yoursite.com/index.php?page=disclaimer">Disclamer</a>.
	<br /><input type="submit" class="button" value="Download">
</form>
Quote:
Originally Posted by jarvis
I've been using this hack for a while, and thanks by the way, but I would love to see a future enhancement.

Hopefully this is fairly easy since I saw the PM modification for it, but what I would like to see is that each time a file is added/uploaded, it creates a thread in a specific forum announcing the upload with description, link ,etc.

If no one had the time, I'd be willing to contribute to a fund.
I will try to create this one
The poster of the thread: do you want it to be a specified person or the person who placed the file?
Reply With Quote
  #731  
Old 11-04-2006, 04:38 PM
phill2003 phill2003 is offline
 
Join Date: Apr 2003
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The disclaimer thing is awesome thanks.

One thing though, to get it to work right (so the download button will not work on the file listing page you need to make a couple of changes in downloads.php

find

Code:
$filethumb = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=down" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
and change it too

Code:
$filethumb = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'" '.$target.'><img src="'.$dl->url.$thumb_x['thumb'].'" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
Then you need to find
Code:
$download = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'&amp;act=down" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
and replace it with
Code:
$download = '<a href="./downloads.php?do=file&amp;id='.$file['id'].'" '.$target.'><img src="'.$stylevar[imgdir_button].'/'.$vbphrase['ecdownloads_download_pic'].'" width="15" height="15" align="middle" title="'.$vbphrase['ecdownloads_download'].'&nbsp;'.$file['name'].'" alt="'.$vbphrase['ecdownloads_downloads'].'" border="0" /></a>&nbsp;';
This stops the images being download links and the little giff downloading the fiel so people have now go to go into the download file page and click on the disclaimer tick box...

Hope this helps...
Reply With Quote
 


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 07:36 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.15757 seconds
  • Memory Usage 2,383KB
  • 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
  • (11)bbcode_code
  • (6)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
  • (5)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