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)
-   -   vBDownload Area 1.0 (https://vborg.vbsupport.ru/showthread.php?t=74583)

Getox 01-17-2005 10:00 PM

vBDownload Area 1.0
 
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.
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

Quote:

Originally Posted by jluerken
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

Quote:

Originally Posted by trackpads
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

Quote:

Originally Posted by why-not
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

Quote:

Originally Posted by Getox
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

Code:

if (can_administer('canadminusers'))
{


mikaelweb 01-18-2005 09:54 PM

find this row

Code:

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?

Viks 01-18-2005 10:38 PM

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

Quote:

Originally Posted by Viks
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

Quote:

Originally Posted by yinyang
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!

Viks 01-19-2005 03:47 AM

Quote:

Originally Posted by Getox
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

Quote:

Originally Posted by Getox
@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

Quote:

Originally Posted by lasto
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....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

Quote:

Originally Posted by winlya
hey man,this is great hack.But can not anti leecher.
The first link is: http://yoursite.com/forum/downloads....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

Quote:

Originally Posted by Getox
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!!

hugo 01-20-2005 04:24 AM

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

Code:

        $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'))
        {

Quote:

Originally Posted by mitomcua
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,



All times are GMT. The time now is 04:52 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.01485 seconds
  • Memory Usage 1,841KB
  • 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
  • (3)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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