vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

xtreme-mobile 03-23-2005 06:29 PM

i give up :(

clicks uninstall

DS MrSinister 03-23-2005 06:59 PM

kewl hack. I dont care for your site much Cheats. :(

Gottcha 03-23-2005 06:59 PM

ok i got it installed but when i try to upload i get this error:

Fatal error: Call to undefined function: prep_file() in /home/fragtrad/public_html/forums/includes/dl_add.php on line 66

phreak420 03-23-2005 07:32 PM

^^^^
thats the same error im getting

heres my settings...any suggestions

http://img178.exs.cx/img178/4572/downloads7tq.th.jpg

Rids 03-23-2005 07:56 PM

For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess:

Main page:

pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/forums/includes/dl_main.php(24) : eval()'d code on line 2

None of the categories are now visible

When I manually set the downloads_cat_filebit template I got the following error message: Parse error: parse error, unexpected T_STRING, expecting ']' in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 3
This is likely caused by a malformed conditional statement.



Manage files page

even more pages full of these: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_manage.php(97) : eval()'d code on line 2

None of the actual data is visible

When I tried setting the downloads_man_edit template I got the following error: Parse error: parse error, unexpected $ in /home/xxxxxxxx/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 91
This is likely caused by a malformed conditional statement.


I am also getting errors on the add file page: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxxxx/public_html/forums/includes/dl_add.php(94) : eval()'d code on line 1

I'm now completely stumped with nothing working :(

rjordan 03-23-2005 10:10 PM

Quote:

Originally Posted by xtreme-mobile
i give up :(

clicks uninstall

Gheez, give the man a chance! He may not have been online for the past 24-48 hours! :confused:

rjordan 03-23-2005 10:16 PM

Ok, I made the change (file_prep to prep_file) but it did not help. Same thing.

SupraT 03-23-2005 10:21 PM

Quote:

Originally Posted by spence2
tekram,

I think that answer was posted out of frustration by the author. Personally, I would not take the same request again and again as people pressuring me, but I can understand how the author might interpret it that way.

I think most of the time we just get all excited about great hacks and think we are encouraging the hacker by expressing our wants and needs ... even if it is the same thing posted by others.

Anyway, welcome! and I'm sure we both agree that this is a great hack and thank Ron1n for his generosity in sharing his hard work with us. ;)

Agreed and this is a great COMPLETE download hack. I am installing and converting over!

phreak420 03-24-2005 12:37 AM

alright well i got the uploading part to work...now i get some errors with downloading it...it doesnt use the right file name

elastomaniac 03-24-2005 01:44 AM

I just upgraded from vBDownloads 2 to the latest version but when i try to upload a file i get:

Code:

Fatal error: Call to undefined function: prep_file() in /home/elma2/public_html/includes/dl_add.php on line 66
EDIT: Fixed it by changing prep_file to file_prep :D

Osiris2k 03-24-2005 02:11 AM

Could users be able to upload files larger in size than 2mb (my host has a max 2mb for php)

Juanito 03-24-2005 02:41 AM

Quote:

Originally Posted by phreak420
alright well i got the uploading part to work...now i get some errors with downloading it...it doesnt use the right file name

Can you explain how you fixed your problem, amybe this could help...

I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!

Ron1n 03-24-2005 03:43 AM

Quote:

Originally Posted by rjordan
I have two more suggestions.
1- When you go to edit categories and you have multiple instances if a subcategory, it seems to group them together as so (pulled directly from my list):
Can this be modified so that the subcategories are listed under the main in a fashion like so by adding dashes to the drop-down list for subcategories:

Sounds good.

Quote:

Originally Posted by rjordan
2- Multiple (unlimited?) levels of sub-categories. Right now, you can have only one subcategory. In conjuntion with the above example, something like this:

This would be a tad tricky and would slow down forums even for people without many subcats. To be honest, just including one level of subcats requires Order(cats+1) more queries, and unlimited subcats would require Order(cats(depth)+1). Currently, if you have 5 cats you make 1 query. If you have 5 cats with 5 subcats, you make 5+1 queries. If you have 5 cats with 5 subcats and the possibility of another level of subcats you make 25+5+1 queries.

I tried my best to optimize queries and only perform stat-gathering queries when needed (file changes etc) and as a result, I think I may be able to incorporate this... but I will have to think about it.

Quote:

Originally Posted by Gottcha
ok i got it installed but when i try to upload i get this error:

Fatal error: Call to undefined function: prep_file() in /home/fragtrad/public_html/forums/includes/dl_add.php on line 66

Change file_prep to prep_file in dl_functions.php

Quote:

Originally Posted by Rids
For some reason when I updated from 1.0e to 2.0c not all of the templates were updated and not all of the mysql fields were set either. I eventually put the templates and mysql right (I think) manually from the installer file but what I have now is a mess: ... I'm now completely stumped with nothing working :(

I really don't know what to say. I haven't ever recieved those errors with this script or any other webprogram I have written or used. I know you had some data in your tables, but I would suggest a complete reinstall. If you want to save your old data, export it to a .sql file, and do a complete reinstall of EVERYTHING. If it works, I will help you manually add back the mysql data.

Good luck, and keep me posted.

Quote:

Originally Posted by Osiris2k
Could users be able to upload files larger in size than 2mb (my host has a max 2mb for php)

No. That is why I added the link-to-file feature. The only way to upload larger files is change your php config.

Quote:

Originally Posted by Juanito
I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!

Did you remember to add a . before your extension? (.rar, .jpg, .exe, .php) Also, if you are doing one with 2 or four letters (or more) and it doesnt work... I could have a bug. Please tell me what extension you are trying to upload and what you entered into the admincp.

I think I covered all the problems... if not just repost it.

There was someone who said uploading files with a . in the name didnt work...and I havent been able to produce the same error.

Allan 03-24-2005 05:27 AM

thanks Ronin, very nice hack :)

(click Install) ;)

Allan 03-24-2005 05:40 AM

I have this error in localhost when I click on "order the files"

error:
Code:

Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36
ligne 36 (in red) of file "dl_manage.php":
Code:

if ($file['link'] == 0)
                        {
                                if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
                                        eval('$filebits .= "' . fetch_template('downloads_man_filebits') . '";');
                                }
                        }


rjordan 03-24-2005 09:54 AM

Try removing the ] at the front of the line you highlighted.

Marco van Herwaarden 03-24-2005 09:58 AM

Change:
PHP Code:

                ]if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) { 

to:
PHP Code:

                if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) { 

But double check your edit, because that ] must have come from somewhere (unless hack instructions have an error, which i didn't check).

Allan 03-24-2005 10:00 AM

Quote:

Originally Posted by MarcoH64
Change:
PHP Code:

                ]if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) { 

to:
PHP Code:

                if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) { 

But double check your edit, because that ] must have come from somewhere (unless hack instructions have an error, which i didn't check).


nono, it's a error of me for the color ligne juste, rectified :o

phreak420 03-24-2005 10:00 AM

Quote:

Originally Posted by Juanito
Can you explain how you fixed your problem, amybe this could help...

I still can't upload or link anything, keep telling me I can only upload the extension I'm already trying to upload!

well what i did was in the dl_add i had the error on line 66...so i changed the code a little bit

from
Code:

prep_file
to
Code:

file_prep
and now it says its uploaded atleast but then when i go to download the file name is changed

Marco van Herwaarden 03-24-2005 10:53 AM

Quote:

Originally Posted by Allan
nono, it's a error of me for the color ligne juste, rectified :o

What is the meaning of the
PHP Code:

" . TABLE_PREFIX . " 

Looks to me that don't belong there

Ron1n 03-24-2005 01:31 PM

Quote:

Originally Posted by MarcoH64
What is the meaning of the
PHP Code:

TABLE_PREFIX 

Looks to me that don't belong there

TABLE_PREFIX is the vB mysql database prefix, but correct, it does not belong there. I dont think it exists there - or has existed there, in all the latest versions. He must be using an old copy.

However, I did update this file last night from my laptop, and the files could be reverted to their prior state. Could someone please clarify whether the TABLE_PREFIX thing exists before file_exists in 2.0d? I would check myself, but I cant open .zip files atm.

Quote:

well what i did was in the dl_add i had the error on line 66...so i changed the code a little bit from
Code:

prep_file
to
Code:

file_prep
and now it says its uploaded atleast but then when i go to download the file name is changed
1. change file_prep back to prep_file. Open dl_functions.php and change file_prep to prep_file (around line 34)

2. It SHOULD change the name of the file to {cat abbrev} {author} {file}.{extension}

Aren't you still able to download the file?

Allan 03-24-2005 03:20 PM

Quote:

Originally Posted by Allan
I have this error in localhost when I click on "order the files"

error:
Code:

Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36
ligne 36 (in red) of file "dl_manage.php":
Code:

if ($file['link'] == 0)
                        {
                                if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
                                        eval('$filebits .= "' . fetch_template('downloads_man_filebits') . '";');
                                }
                        }



Hey Ron1n, you does not have idea for my problem :rolleyes:

Marco van Herwaarden 03-24-2005 03:37 PM

Alan,

Like i suggested above, start by removing that
PHP Code:

". TABLE_PREFIX ." 


Allan 03-24-2005 05:55 PM

Quote:

Originally Posted by MarcoH64
Alan,

Like i suggested above, start by removing that
PHP Code:

". TABLE_PREFIX ." 



veiled, I did it and it is similar, even error

The Realist 03-24-2005 06:31 PM

If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?

The Realist 03-24-2005 07:51 PM

Ignore my above post, all working.

Also make sure that Php open_basedir is off for the URL this hack is being used for, I was getting permission errors with it on.

Laters

Quote:

Originally Posted by The Realist
If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?


rjordan 03-24-2005 09:20 PM

Ok, I have an off-site link:

http://www.battlezoneclub.org/BZClubDL/AntilagXP.zip

and place it in the link field for adding. When I try to submit, I get the error about only submitting certain file types.

If I do:

/BZClubDL/AntilagXP.zip

it is added to the database fine. The problem here, of course, is I cannot use this for off-site links.

Additionally, when I try to delete this, I am getting the following error:

Warning: unlink(./downloads//BZClubDL/AntilagXP.zip): No such file or directory in /includes/dl_manage.php on line 141

The Realist 03-24-2005 09:24 PM

Remove the dot from the begining of the upload path. Also make sure that you have disabled Php open_basedir.

Laters

rjordan 03-24-2005 09:37 PM

The problem is, I do not think that it is supposed to put anything in the downloads folder if it is a link. This is not an uploaded file. I should not see that error at all on a link... right?

Oh, and how WOULD you disable open_basedir if that were an issue?

Ron1n 03-24-2005 09:53 PM

rjordan: Ok, read the delete message: unable to delete (file) or whatever... it makes perfect sense that you wouldn't be able to delete a file that isnt on your server etc. That being said, the hack shouldnt TRY to delete a linked file, so I will fix that. Its a bug, but not a problem. Its just one of those anoying things that doesnt effect performance. Seeing as it cannot effect performance, I will fix it in the next general release.

Allan: your using an old version or failed to reupload the files you edited.

rjordan: about linking to files on other servers, i get the same thing. im not sure whether its a . issue, a : issue or a / issue. I will look into it. For now... just dont leech.

rjordan 03-24-2005 10:19 PM

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!

Ron1n 03-24-2005 10:22 PM

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']);
                        }


phreak420 03-24-2005 10:31 PM

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

Ron1n 03-24-2005 11:04 PM

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 :)

BamaStangGuy 03-25-2005 03:20 AM

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?

Juanito 03-25-2005 07:07 AM

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']);
                        }



phreak420 03-25-2005 09:52 AM

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

rjordan 03-25-2005 01:25 PM

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!

The Realist 03-25-2005 02:21 PM

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

Laters

AuroraMike 03-25-2005 06:41 PM

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.


All times are GMT. The time now is 01:25 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.02365 seconds
  • Memory Usage 1,893KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (23)bbcode_code_printable
  • (8)bbcode_php_printable
  • (19)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete