Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
ecDownloads 3.2 Legacy Details »»
ecDownloads 3.2 Legacy
Version: 3.2 Legacy, by Ron1n Ron1n is offline
Developer Last Online: Jun 2008 Show Printable Version Email this Page

Version: 3.0.8 Rating:
Released: 01-26-2005 Last Update: 08-09-2005 Installs: 195
DB Changes Template Edits
Code Changes Additional Files  
No support by the author.

ecDownloads 3.2 Legacy (vBDownloads) is available for vBulletin 3.0.x

Talk about 3.2 here: https://vborg.vbsupport.ru/showthread.php?p=751766

What is ecDownloads?

It is a download database that integrates into vBulletin. It allows you to upload files, create folders, link to external files - and more. It is very flexible and has many options. Sorry, no screenshots. Maybe if someone is nice they will provide a link to the latest version of ecDownloads for everyone to view it.

Changes in 3.2

- Too many to list... its a whole new world

Known Bugs:

- Missing phrase in add file (on nav bar)
- No file protection, add it here if you want: https://vborg.vbsupport.ru/showpost....&postcount=174
- Missing phrases (ecdownloads_can_edit_all and ecdownloads_can_view_disabled) in admincp

Install

Make the file edits in ecDownloads.txt
Upload the contents of 'upload' to your forum directory
Run the downloadinstaller.php file in the admincp (install/rebuild styles and phrases)
Create a directory called 'downloads' (or whatever you put in your settings) and make it writeable and executable

Time: 5-6 Min

Addons

vBAdvanced Module: https://vborg.vbsupport.ru/showthread.php?t=93771

Want another addon? Request it.

Giving Back

Have you installed this mod? Click install.
Do you like this mod? Rate me 5/5.
Do you want to donate? Go to www.unicef.org and be generous!

To the community

Thanks for all your support, I hope you enjoy this. It will have 1-2 minor bugs, but nothing major. Have fun, and make suggestions.

IMPORTANT NOTICES

- Upgraders should remove the CRON that they originally set up
- Look at the fix list to the right -> see if it has been updated since you downloaded

Show Your Support

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

Comments
  #352  
Old 03-24-2005, 10:19 PM
rjordan's Avatar
rjordan rjordan is offline
 
Join Date: Sep 2004
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understood the error and came to the same conclusion. IT could not delete what was not there. Just bringing it up.

Perhaps the off-site linking can be solved by only looking for the extension of what follows the last slash in the URL...

lol ... Oh, yeah ... I only link with permission! Thanks for looking into it!
Reply With Quote
  #353  
Old 03-24-2005, 10:22 PM
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OFFSITE LINK FIX

Find in dl_add.php (45) and dl_edit.php (38):

Code:
if ($_FILES['upload']['name'] != '')
			strstr($_FILES['upload']['name'], '.');
		else
			strstr($_POST['link'], '.');
change to:


Code:
if ($_FILES['upload']['name'] != '')
			$ext = substr($_FILES['upload']['name'], strrpos($_FILES['upload']['name'], '.'));
		else
			$ext = substr($_POST['link'], strrpos($_POST['link'], '.'));

Find in dl_manage.php (139):
Code:
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			unlink($INFO['uurl'].$url);
change to:


Code:
$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			if (!$file['link'])
				unlink($INFO['uurl'].$file['url']);
Find in dl_manage.php (192):

Code:
foreach($_POST['id'] as $id => $value) {
				$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				unlink($INFO['uurl'].$url);
			}
change to:

Code:
foreach($_POST['id'] as $id => $value) {
				$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				if (!$file['link'])
					unlink($INFO['uurl'].$file['url']);
			}
Reply With Quote
  #354  
Old 03-24-2005, 10:31 PM
phreak420 phreak420 is offline
 
Join Date: Jan 2005
Location: IL
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i still have problems with it...i still have to go in to ftp...change the filename to whatever it changes it to...then i also have to upload the file because it doesnt upload the file anywhere
Reply With Quote
  #355  
Old 03-24-2005, 11:04 PM
Ron1n Ron1n is offline
 
Join Date: Jun 2004
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by phreak420
i still have problems with it...i still have to go in to ftp...change the filename to whatever it changes it to...then i also have to upload the file because it doesnt upload the file anywhere
You will have to explain yourself more. What errors does it give you? The hack works fine for me and it uploads everything well. It does rename the file, but thats what it should do.

You might want to check some of your server settings and chmod the directory you upload to correctly.

Good luck
Reply With Quote
  #356  
Old 03-25-2005, 03:20 AM
BamaStangGuy's Avatar
BamaStangGuy BamaStangGuy is offline
 
Join Date: Mar 2004
Location: Alabama
Posts: 521
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No matter what I try it will not order my categories via what I put into the admincp Categories section... It is inseting it into the database but it is not sorting by what is in the database. Can anyone else confirm this?
Reply With Quote
  #357  
Old 03-25-2005, 07:07 AM
Juanito Juanito is offline
 
Join Date: Feb 2002
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried this but I still can't link urls, only works when I put in local "/directory/filename"...

But! I can upload files when they have no characters like "-" or "." in the filename... At least it starts to be funcionnal to me!

Thanks

Quote:
Originally Posted by Ron1n
OFFSITE LINK FIX

Find in dl_add.php (45) and dl_edit.php (38):

Code:
if ($_FILES['upload']['name'] != '')
			strstr($_FILES['upload']['name'], '.');
		else
			strstr($_POST['link'], '.');
change to:


Code:
if ($_FILES['upload']['name'] != '')
			$ext = substr($_FILES['upload']['name'], strrpos($_FILES['upload']['name'], '.'));
		else
			$ext = substr($_POST['link'], strrpos($_POST['link'], '.'));

Find in dl_manage.php (139):
Code:
$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			unlink($INFO['uurl'].$url);
change to:


Code:
$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='".$_GET['id']."'");
			if (!$file['link'])
				unlink($INFO['uurl'].$file['url']);
Find in dl_manage.php (192):

Code:
foreach($_POST['id'] as $id => $value) {
				$url = $DB_site->query_result("SELECT url FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				unlink($INFO['uurl'].$url);
			}
change to:

Code:
foreach($_POST['id'] as $id => $value) {
				$file = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				$DB_site->query("DELETE FROM " . TABLE_PREFIX . "file_files WHERE id='$id'");
				if (!$file['link'])
					unlink($INFO['uurl'].$file['url']);
			}
Reply With Quote
  #358  
Old 03-25-2005, 09:52 AM
phreak420 phreak420 is offline
 
Join Date: Jan 2005
Location: IL
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what happens is that i click upload...everything works fine from what it looks like....it says file was uploaded...but then when u go to click on download file there is no file there...brings u to the error page...so then i go in...manually upload it through ftp...rename it to the name it gave me and then it works...but i would like it so that everybody can upload files not just me because i have ftp
Reply With Quote
  #359  
Old 03-25-2005, 01:25 PM
rjordan's Avatar
rjordan rjordan is offline
 
Join Date: Sep 2004
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Minor modification request:

When clicking on the download button, can you make it so it opens the link in a new window? Sounds trivial I know, but I am linking to other posts where the author does not mind downloading, but because it is a beta release he does not want it mirrored yet. As it stands, when I link to a forum post, it is leaving my site. This could also benefit other unknown situations too where you may end up leaving the site by clicking on the download link. I am going to make the change on my site as it is really simple, but thought I would share.

The change I made:

In includes/dl_file.php (around line 123) change:

Code:
 $download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down">Download Here</a>';
to
Code:
 $download = '<a href="./downloads.php?do=file&id='.$file['id'].'&act=down" target="File'.$file['id'].'">Download Here</a>';
Just thought I would contribute a little! Oh, thanks for the link fix. Worked like a charm!
Reply With Quote
  #360  
Old 03-25-2005, 02:21 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are the upload limits and how do you increase it?

Laters
Reply With Quote
  #361  
Old 03-25-2005, 06:41 PM
AuroraMike AuroraMike is offline
 
Join Date: Jan 2005
Location: Denver, CO
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uploads via http/php are limited by 2 settings in your php.ini file (assuming UNIX, I'm sure its the same in Windoze though). By default, max_post_size and max_upload_size are 2M. Increase them to a value you want but also realize that this consumes extra memory and *could* later be used for some random exploit or DoS. None exist that I know of that affect the current versions but potentially someone could attempt to repeatedly post 8MB strings and chew up all your available RAM and swap a lot faster since they use 8MB blocks.

but again, no such evil exists...today.
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 02:55 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.07197 seconds
  • Memory Usage 2,320KB
  • 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
  • (14)bbcode_code
  • (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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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