View Full Version : vBDownload Area 1.0
Getox
01-17-2005, 10:00 PM
vBDownload Area v1.0
Features:
Restrict Downloading to XX user groups
Add/Edit/Delete Categorys
Upload/Edit/Delete Files
Post/Delete Comments
A little info:
Categorys & Files can have description.
Will show how many files in the category.
Will Show how many comments & downloads the file has.
Planned for 1.1:
Statistics(count all downloads, comments, and file downloads)
*MAYBE* Restrict Usergroups to Categorys
Linked Download's
*MAYBE* Anti-Leech
*MAYBE* File Rating
User Uploads
File Screen Shot(*MABY* With Thumbnail)
*MAYBE* Custom Fields
Is There anything else you would like to see in 1.1 ?
1.1 Status:
Done:
Upload to DB or Folder.
Querys are more secure.(changed some $_REQUEST's to $_GET's and added addslashes() aswell)
Linked Downloads.
Statistics
Screen Shot(No thumbnail)
No more support for 1.0 as 1.1 is out.
v1.1 Out Now. (https://vborg.vbsupport.ru/showthread.php?t=75071)
Dont Delete this post!.!
mikaelweb
01-18-2005, 11:34 AM
problem whit admincp/vbdinstall.php
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/codersla/public_html/forum/admincp/vbdinstall.php on line 236
Getox
01-18-2005, 11:50 AM
As of now, there is a new installer, File & Template Edits are now in "INSTALLATION.html"
so read that for file edits.
nexialys
01-18-2005, 11:55 AM
request for 1.1 ...
custom fields
screenshots (via the attachment system would be enough!)
moderating queue for files uploaded by usergroups (some usergroups would have direct access then!)
... i think it's all we need... we already have a lot with your new system once it's debugged... thanks!
EDIT:
here are my edits to your hack:
1- downloads.php ... there is too much "$navbits = array();" ... the first one is enough!
2- the download.php file is useless... put your next version to a single file, by calling something like "downloads.php?dl=yes&fileid=XXX" ... this would do the trick of a single file to call everything.
smsmasters
01-18-2005, 11:58 AM
Ability to add a screenshot to a file or something, plus custom fields...
Getox
01-18-2005, 12:18 PM
I forgot to remove a line that includes the functions_downloads.php file, which didnt need to be used so it isnt in the zip, i reuploaded the zip without the line so it works 100%, Well it Should.
yoyoyoyo
01-18-2005, 12:46 PM
**clicks install**
mikaelweb
01-18-2005, 12:56 PM
**clicks install**
jluerken
01-18-2005, 01:13 PM
I don't want to have the files in the DB cause this can become very fast very huge.
Is there a chance you can change this?
Getox
01-18-2005, 01:15 PM
I don't want to have the files in the DB cause this can become very fast very huge.
Is there a chance you can change this?
Well there will be linked download, I might add upload to folder aswell.
trackpads
01-18-2005, 02:08 PM
Freakin awesome! I have been looking for this. I have thousands of files to download and I am currently using a links program to do it.
Few questions, can we import files on the server, for example ones that are too big to upload?
Also, can we assign mods to this? Instead of only having an admin run it? I am very insterested in the user uploads, a file sharing idea is what I am looking for so that people can share powerpoint presentations etc.
Thanks again!!!
-Jason
Getox
01-18-2005, 02:23 PM
Freakin awesome! I have been looking for this. I have thousands of files to download and I am currently using a links program to do it.
Few questions, can we import files on the server, for example ones that are too big to upload?
Also, can we assign mods to this? Instead of only having an admin run it? I am very insterested in the user uploads, a file sharing idea is what I am looking for so that people can share powerpoint presentations etc.
Thanks again!!!
-Jason Ill add mods in 1.1 or 1.2 ;)
and adding files from a diff location, Ill try to do that.
why-not
01-18-2005, 02:29 PM
Hi
Nice mod, but (1) big problem! You are not validating many of your $_REQUEST['?'], anyone using MySQL 4.1 or higher can have their database deleted, or user table read! I am not going to post how, but let me tell you it is very easy, allowing what you allow! Why do I say this, because many of your querys are open to SQL_INJECTIONS! Validate each request or use addslashes() or better yet, use mysql_real_escape_string() <- PHP 4.3.0, if you don't want to validate the request! But you should always validate anything coming into your script!
Sonia
trackpads
01-18-2005, 03:49 PM
Hi
Nice mod, but (1) big problem! You are not validating many of your $_REQUEST['?'], anyone using MySQL 4.1 or higher can have their database deleted, or user table read! I am not going to post how, but let me tell you it is very easy, allowing what you allow! Why do I say this, because many of your querys are open to SQL_INJECTIONS! Validate each request or use addslashes() or better yet, use mysql_real_escape_string() <- PHP 4.3.0, if you don't want to validate the request! But you should always validate anything coming into your script!
Sonia
Somethings should be put in PMs.....
trackpads
01-18-2005, 03:51 PM
Ill add mods in 1.1 or 1.2 ;)
and adding files from a diff location, Ill try to do that.
Thanks!!
boo.3
01-18-2005, 04:12 PM
this is great
how does the files work? do you upload them thru the admin CP ?
boo.3
01-18-2005, 04:15 PM
and ALL the stuff u have planned for 1.1 is a must i can't wait!!!
error_22
01-18-2005, 07:31 PM
where am i supposed to find the uploader and stuff?? where in admincp??? and also, atleast in my admincp/index.php there are many
if (can_administer('canadminusers'))
{
mikaelweb
01-18-2005, 09:54 PM
find this row
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['add_new_user'], 'user.php?do=add', '|');
yinyang
01-18-2005, 10:20 PM
extremely cool.
i would like to see in 1.1 or 1.2 the ability for users to upload files and the ability to moderate their upload.
is this possible?
Getox.
the ONLY thing I would like to see .. is not to have the files as part of the database. Some files are like more than 3-5 MB and it make not be a good idea to have those in database. I really think that if we have a d/l utility/mod in which the files were in folder then it wud be great!
waddaya say?
Getox
01-19-2005, 12:24 AM
Getox.
the ONLY thing I would like to see .. is not to have the files as part of the database. Some files are like more than 3-5 MB and it make not be a good idea to have those in database. I really think that if we have a d/l utility/mod in which the files were in folder then it wud be great!
waddaya say? Just done that part in 1.1 ;)
Will upload to DB if you select Yes and upload to folder(downloads) if you select No.
@yinyang: I try to add that in 1.1 for ya.
trackpads
01-19-2005, 12:35 AM
extremely cool.
i would like to see in 1.1 or 1.2 the ability for users to upload files and the ability to moderate their upload.
is this possible?
dittos :)
Great hack!
Just done that part in 1.1 ;)
Will upload to DB if you select Yes and upload to folder(downloads) if you select No.
awesome! waiting for 1.1 release! THANKS!
webnx
01-19-2005, 04:43 AM
This hack looks very interesting. It would be amazing if there was some sort of Pafiledb inporter or if someone could make one. I know its alot to ask for, but I am in the process of moving from phpbb to vb, and have 3 years worth of files in pafiledb :(
Dan
yinyang
01-19-2005, 05:04 AM
@yinyang: I try to add that in 1.1 for ya.
thanks Getox! and for version 2.0, can you see if you can code it so if i upload my girlfriend's mother-in-law and then when i download her, she becomes a supermodel, that'd be great. :speechless:
Getox
01-19-2005, 09:13 AM
So far in 1.1 I'v done:
Screen Shot(no thumbnail)
Folder & Linked downloads
and Stats
If anyone wants me to put this up for download now i can add user upload in 1.2 ?
lasto
01-19-2005, 10:35 AM
the only thing id like to see is to restrict each usergroup to say - so many downloads per day
usergroup 1 - 5 downloads
usergroup 2 - 10 downloads etc
But for this to work you would need a restricter which only allowed them to download 1 file per time cause if not they could click on 5 links and grab all at same time.
Reason being - if not it still becomes a leech for all - now i know u can say which usergroup can grab files but once u give it them,there is no option to limit what they can have.
Getox
01-19-2005, 12:08 PM
the only thing id like to see is to restrict each usergroup to say - so many downloads per day
usergroup 1 - 5 downloads
usergroup 2 - 10 downloads etc
But for this to work you would need a restricter which only allowed them to download 1 file per time cause if not they could click on 5 links and grab all at same time.
Reason being - if not it still becomes a leech for all - now i know u can say which usergroup can grab files but once u give it them,there is no option to limit what they can have.
Ill try to do that for 1.2 or 1.3 ;)
winlya
01-19-2005, 12:15 PM
hey man,this is great hack.But can not anti leecher.
The first link is: http://yoursite.com/forum/downloads.php?dl=yes&fileid=XXX
and leecher have used this link on other site.
The seconds:Some member using PHP version 4.1 and they have some problem with admincp.
I will tell you some error with other post.
Getox
01-19-2005, 12:41 PM
hey man,this is great hack.But can not anti leecher.
The first link is: http://yoursite.com/forum/downloads.php?dl=yes&fileid=XXX
and leecher have used this link on other site.
The seconds:Some member using PHP version 4.1 and they have some problem with admincp.
I will tell you some error with other post.
The hack was coded on PHP Version 4.3.0 and vBulletin 3.0.5 (works with 3.0.6 aswell)
yinyang
01-20-2005, 03:43 AM
So far in 1.1 I'v done:
Screen Shot(no thumbnail)
Folder & Linked downloads
and Stats
If anyone wants me to put this up for download now i can add user upload in 1.2 ?
you can most definitely release 1.1. but i'll wait for 1.2 then to install. good work!!
Excellent work.. i can´t wait for all the MAYBE´s ..
I was waiting a long time for this hack!
=)
yoyoyoyo
01-20-2005, 04:52 AM
will we see subcategories anytime soon? how about file size restriction on upload (that is separate from the size restriction set in the admin cp for general attachments, etc.)? Along those same lines- if I allow a usergroup to download (in the newer future version) will they still be able to download in the download area if they are resticted from downloading attachments?
servus01
01-20-2005, 09:52 PM
Servus,
the installer adds templates only to standart style, or is it my fault? All my other styles give my just a blank page wenn i linked download.php
???
Greetz
Servus01
Skyline_GT
01-21-2005, 02:40 AM
I wonder is it possible to let members upload but it will require mods to approve them first before showing up on the download area.
smsmasters
01-21-2005, 11:24 AM
Simple, include all the features from the script like on http://www.securedownloads.net
mitomcua
01-22-2005, 01:08 AM
I have vb3.0.3, I tried to place the codes in admincp/index.php and it is NOT working. It also does not look right.
Please help.
$printhr = true;
construct_nav_option("Add Category", "dl_admin.php?do=add", "<br />");
construct_nav_option("Edit Category", "dl_admin.php?do=updatecat", "<br />");
construct_nav_option("Upload File", "dl_admin.php?do=addfile", "<br />");
construct_nav_option("Edit File", "dl_admin.php?do=updatefile", "<br />");
construct_nav_option("Delete Comments", "dl_admin.php?do=comments", "<br />");
construct_nav_group("Downloads", "<hr />");
if (can_administer('canadminusers'))
{
print_label_row($vbphrase['quick_user_finder'], '
<form action="user.php" method="post" style="display:inline">
<input type="hidden" name="s" value="' . $session['sessionhash'] . '" />
<input type="hidden" name="do" value="find" />
<input type="text" class="bginput" name="user[username]" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
<input type="submit" class="button" value="' . $vbphrase['exact_match'] . '" tabindex="1" name="user[exact]" />
</form>
', '', 'top', NULL, false
);
}
Thanks,
StevenIsProek
01-22-2005, 06:51 AM
finally!cant wait for 1.1
so I can link files I need that big time
and how about the ability to rate a file?
mikaelweb
01-22-2005, 11:05 AM
test like this then
$printhr = false;
$printhr = true;
construct_nav_option("Add Category", "dl_admin.php?do=add", "<br />");
construct_nav_option("Edit Category", "dl_admin.php?do=updatecat", "<br />");
construct_nav_option("Upload File", "dl_admin.php?do=addfile", "<br />");
construct_nav_option("Edit File", "dl_admin.php?do=updatefile", "<br />");
construct_nav_option("Delete Comments", "dl_admin.php?do=comments", "<br />");
construct_nav_group("Downloads", "<hr />");
if (can_administer('canadminusers'))
{
I have vb3.0.3, I tried to place the codes in admincp/index.php and it is NOT working. It also does not look right.
Please help.
$printhr = true;
construct_nav_option("Add Category", "dl_admin.php?do=add", "<br />");
construct_nav_option("Edit Category", "dl_admin.php?do=updatecat", "<br />");
construct_nav_option("Upload File", "dl_admin.php?do=addfile", "<br />");
construct_nav_option("Edit File", "dl_admin.php?do=updatefile", "<br />");
construct_nav_option("Delete Comments", "dl_admin.php?do=comments", "<br />");
construct_nav_group("Downloads", "<hr />");
if (can_administer('canadminusers'))
{
print_label_row($vbphrase['quick_user_finder'], '
<form action="user.php" method="post" style="display:inline">
<input type="hidden" name="s" value="' . $session['sessionhash'] . '" />
<input type="hidden" name="do" value="find" />
<input type="text" class="bginput" name="user[username]" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
<input type="submit" class="button" value="' . $vbphrase['exact_match'] . '" tabindex="1" name="user[exact]" />
</form>
', '', 'top', NULL, false
);
}
Thanks,
mitomcua
01-22-2005, 07:34 PM
It is not working. Getting error in the Admin CP
"" Fatal error: Call to undefined function: construct_nav_option() in c:\inetpub\wwwroot\forum\testforum\admincp\index.p hp on line 404 "
Maybe I am using vb 3.0.3 and the code in admincp\index.php is different. In the admincp/index.php code starts "print_lable_row....", but the instruction said paste the code which start at "construct_nav_option... "
mikaelweb
01-22-2005, 08:06 PM
It is not working. Getting error in the Admin CP
"" Fatal error: Call to undefined function: construct_nav_option() in c:\inetpub\wwwroot\forum\testforum\admincp\index.p hp on line 404 "
Maybe I am using vb 3.0.3 and the code in admincp\index.php is different. In the admincp/index.php code starts "print_lable_row....", but the instruction said paste the code which start at "construct_nav_option... "
send me your admincp\index.php and i help you whit it PM IT TO ME
Getox
01-23-2005, 03:33 AM
Before 1.1 i will do:
User Uploads
Then in 1.2
User uploads that wont show untill a Mod reviews it(there will be a setting for this, like show after post or moderate it).
File size for upload
Restrict User groups to XX categorys.
Muderman24
01-23-2005, 02:52 PM
anyway to set so guest can't view it? Only members
yoyoyoyo
01-23-2005, 03:03 PM
anyway to set so guest can't view it? Only members
you could always just link it only from the navbar, and then set your conditionals in the link, so only members, or certain usergroups will see the link. also change the name of the download page to something that people couldn't guess if they tried or knew about the hack. Then you can also change the name of the page, etc. as often as you feel you need to be secure.
yinyang
01-24-2005, 12:17 AM
awesome work Getox. don't mind, me but i'm just curious to know as to when you think you can finish 1.2. again, no rush, just trying to space out all my hacking installations in my part time and priority wise. :)
Getox
01-24-2005, 01:33 AM
You can stop guests from Downloading files.
I wonder is it possible to let members upload but it will require mods to approve them first before showing up on the download area.
This will be very useful to me too, and all the the sites that have many uploads..
Sub-Categories will be an excelent idea
(sorry my bad english)
Muderman24
01-24-2005, 02:39 PM
is there a size limit on files you can upload becasue mine will not upload.
Getox
01-24-2005, 08:42 PM
is there a size limit on files you can upload becasue mine will not upload.
What is the file size?
Getox
01-24-2005, 08:49 PM
BAD NEWS!:
1.1 Delay
While trying to isntall RedHat 7 on my other 160GB HD it whiped my windows drive, So as soon as i get it fixed i will do the rest of the 1.1 which is the User uploads.
Muderman24
01-24-2005, 09:28 PM
What is the file size?
5mb....
Getox
01-25-2005, 09:40 AM
5mb....
I uploaded a 5mb file on my localost and it worked..
Ill post up 1.1 now and add User uploads in 1.2
So you can upload to Folder or link to file.
servus01
01-25-2005, 10:04 AM
Sers,
yeah 1.1 thats what i need! Thank u for this great Hack i love it!
Greetz
SErvus01
Muderman24
02-09-2005, 03:05 PM
why is it the download page only works on 1 style the rest of the styles i have only show a blank white page?
JMH11788
02-10-2005, 02:07 AM
How can I get this to work with vBadvanced? What do I write in the 'Portal Output Global Variables'...? Thanks.
Muderman24
02-13-2005, 11:58 PM
why is it the download page only works on 1 style the rest of the styles i have only show a blank white page?
anyone?
why is it the download page only works on 1 style the rest of the styles i have only show a blank white page?
you need to copy the templates to other styles it only installs to the main 1
shame hes stopped at 1.1 had lot more going for it then vBDownloads which is very limited at the mo
Allan
02-21-2005, 07:19 AM
For the version 1.1 :
in descriptions and the name of the uploads, if you put ==>'<==, that produced an error of syntaxes, it is necessary to put ==>\ '<== so that that goes, to repair that, here the solution (Thanks at Akex):
To replace has line 15 and 111 in file "dl_admi.php":
$name
to
addslashes($name)
AND
$details
to
addslashes($details)
I do not know if this error were to defer but of in the doubt I prefer to make some to you by ;)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Click Install, thanks for the hack :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Muderman24
02-25-2005, 08:25 PM
is there an uninstall for this?
RichieBoy67
02-27-2005, 03:23 AM
I am getting errors..
Warning: Cannot modify header information - headers already sent by (output started at /home/talkandm/talkandmore-www/includes/adminfunctions.php:223) in /home/talkandm/talkandmore-www/includes/functions.php on line 2809
Can I please have some help with this??
Thanks
RichieBoy67
02-27-2005, 06:15 PM
Probably a good hack but since not even one person can answer a question I am going to dump this hack and try the other one
stonericious
02-28-2005, 07:59 PM
I've gots to say this is much better than vBdownloads 1.0, good job ;)
RichieBoy67
02-28-2005, 08:54 PM
Too bad niether of them offer decent support...
Muderman24
03-01-2005, 01:19 AM
anyone? is there an uninstall for this?
twoseven
03-01-2005, 02:03 PM
the uninstall delete the dirs and manually modify the db info and file edits
Bloodlust
03-05-2005, 04:42 AM
I have a video game reviews section on my site. A thumbnail would be very useful, definitely add that for the next version.
This will definitely come in handy, thanks!
*clicks install*
Bloodlust
03-07-2005, 05:37 AM
Ok since the other thread is closed Im guessing this is where support will be offered. Everything seems to work fine besides for a few minor things:
1. When uploading a file, usually large, it goes to a Page Cannot Be Displayed. Im guessing this is a timeout error. Is there anyway to correct this?
2. When clicking the thumbnail image for a movie, it prompts me to download a "download.php" file. I would have thought this would have either brought up a large version of the thumbnail or prompt to download the file directly.
Please respond.
Thanks.
Bloodlust
03-11-2005, 07:09 PM
Still having this problem....
s1l3NCER
08-31-2005, 06:36 AM
Well I uninstall it couse I had no use for it. But now I get this
Database error in vBulletin 3.5.0 Release Candidate 1:
Invalid SQL:
SELECT * FROM dl_main;
MySQL Error : Table '***_forum.dl_main' doesn't exist
Error Number : 1146
Date : Wednesday, August 31st 2005 @ 03:09:42 AM
Script : http://www.saintzero.com/forum/admincp/downloadadmin.php?do=settings
Referrer : http://www.saintzero.com/forum/admincp/index.php?do=nav
IP Address : *************
Username : *****
Classname : vb_database
Olso I still have this windows *look at attach file* eventhough its uninstall. now i cant update my usergroups. any help please.
Getox
09-03-2005, 10:42 AM
Well, For 1, its made for vb 3.0.x you have it on 3.5.0. 2, You are getting that error, cause you are on the admin page of the downloads script ;)
As for usergroups, Dont think the script would of done it, You might of done a mistake removing it maybe? try reuploading the files.
cOuNtErFiET
02-03-2006, 05:08 AM
i can't run the installer get an error saying this:
Invalid SQL: DELETE FROM template WHERE title like LCASE('downloads_%')
mysql error: Table 'crack_vb.template' doesn't exist
mysql error number: 1146
i think i have to edit the installer to add the table prefix is this the case maybe?
lmongello
08-22-2006, 05:30 PM
Is there any support still for this hack? I just installed it and get this error when I upload files, edit, etc.:
Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site1/fst/var/www/html/forums/includes/adminfunctions.php:223) in /includes/functions.php on line 3003
Thanks!
nasko
10-12-2006, 04:45 PM
Hello
When i install it i get this error message
Warning: main(./includes/functions_bbcodeparse.php): failed to open stream: No such file or directory in /downloads.php on line 29
Fatal error: main(): Failed opening required './includes/functions_bbcodeparse.php' (include_path='.:/usr/share/pear') in /full/path/to/forums/downloads.php on line 29
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.