 |
 |
 |
 |
#224833 - 09/20/02 02:31 AM
File Download Page v1.0
|
Enthusiast
Registered: 06/18/02
Posts: 394
Loc: Southern California
Add to del.icio.us
Digg it
|
Mod Name / Version - File Download Page v1.0<br /><br /> Description - Allows administrator to setup a Download page, seperate from UBBT, where allowed users can upload and maintain files and descriptions. Files can be categorized, and will display who uploaded them, and a download count. Uploaders can return and edit, delete, or upload a newer version of the file. Admin has full control with admin pages to edit and delete files. Custom settings include file size limit and file type restrictions.<br /><br /> Example - http://www.newoutriders.org/downloads/index.php<br /><br /> Pre-requisites - none<br /><br /> Author - Aglavalin, aka Steve Stout<br /><br /> Files Altered - config.inc.php<br /><br /> Database Altered - Only two tables are created, thus, very removable.<br /><br /> New Files - doeditcategories.php, doeditmyuploads.php, douploadfile.php, download.php, editcategories.php, editdownloads.php, editmyuploads.php, getdownload.php, index.php, updatedownload.php, updateupload.php, uploadfile.php<br /><br /> Credits: Dslam for suggesting this addon.<br /><br />Notes: All new files go into their own directory, i.e. domain.com/downloads. The files are designed to work with an installation of IIP 4.3, so if you are using a different page layout, you will need to edit each page except for download.php to match your site.<br /><br /><br />Here is what I believe to be a good working copy.
Attachments
56942-FileDownloadPage_v1.0.zip (102 downloads)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#224843 - 11/17/02 08:50 PM
Re: File Download Page v1.0
[Re: neuron]
|
Addict
Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
|
I just made a trial installation of this, finally, and found some minor caveats.<br /><br />First, the category list numbers need to start from 0 and be consecutive numbers, which wasn't entirely clear, should be in the description. Or even better, why not just sort by the number and do the loop on the number of rows returned?<br /><br />Also, the check for if the user is in the right group isn't entirely correct. If the group chosen is first on the list, php returns a false value (position 0). Just change the following:<br /><br /> if (!strpos($user['U_Groups'],$dlgroup)) {<br /><br />to this, in all pages:<br /><br /> if (strpos($user['U_Groups'],$dlgroup) === false) {<br /><br /><br />It was also a bit of a pain that the configuration strings weren't the same in all files, it would have made it so much easier to do a search and replace. =]<br /><br /><br />I think it might be a good idea to add the updated instructions to the main package in the first post of this thread.
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|