PDA

View Full Version : Download Manager MOD (unofficial)


condev1972
09-27-2006, 05:30 PM
Current version of "DLM MOD" is 1.3.2 as of May 31, 2008
The core code for this MOD was DLM 1.4.2 - the MOD itself has it's own version which is independent of the plugin version as it is (still) unofficial.

A history of changes is at the bottom of this post.

Requirements:
full and licensed version of Subdreamer 2.4+, incl. 2.5.x,2.6.x
installed Download Manager 1.4.2 (DLM)
this MOD does NOT contain the plugin installation script!
takes roughly about 1 minute to install

Installation:
First time install: make a backup of your existing DLM directory and tables (p13*)
Extract the attached archive's files directly into the existing DLM directory (webserver)
Open the SD admin page and go to the DLM plugin
In the initial CustomMOD page click "Install MOD now" - this will only show up upon first installation and probably on later updates (if required).Updating the MOD:
Extract the attached archive into the existing DLM directory (webserver)
Open the SD admin page and go to the DLM plugin
In the initial CustomMOD page click "Upgrade MOD now" - this will only show up once.Uninstallation:
On the "CustomMOD Settings" page scroll to the bottom of the page and click "Uninstall MOD".
This will revert all changes related to the current MOD version, nothing else. After that the original files should be restored when desiring to switch back to the delivered version -or- just click on the plugin again and the "Install MOD" page will reappear.

"Reapply MOD"
Normally there should be no need for you to use this (it is doing no harm if executed by mistake other than resetting settings to default values).
This just repeats the install steps and will only add missing settings/phrases that are not yet existing and default existing MOD settings. I'm using it during development right after having added some phrases or settings and no real install is needed.

Before I forget: if you should use this MOD, please do not contact SD for technical support or any problems/questions! This is an unofficial MOD and they therefore of course can't, won't and aren't supposed to help you, seriously. Post all questions/comments here in this thread on SD.org only, thanks.

Following is a compilation of my work so far - excluding cosmetic changes.

What you get as the admin:
Enhanced admin page with revised descriptions
25+(!) new options to configure the Downloads layout
Introducing "file layouts" to extend ways to display file lists ("Default" and "Enhanced 1" file layout delivered). There may be more layouts added later on which are additional php files.
Ability to set access permissions for sections and files - each for usergroups or single users. Right after installation of this MOD there are none set, so same behavior as before.
Introducing "image" and "thumbnail" for each section. Display of each is optional; the "image" should be max. 32x32 pixels, thumbnail - replacing the chevron sign - should be even smaller, like 8x8 or 16x16, depending on your skins fontsize. Requires active "Display Sections" in the regular options.
Bugfix: "Allowed file extensions" did not work with blanks in it
Bugfix: in some areas there were problems with file extensions of "jpg", "Jpeg" etc. - fixed
Bugfix: setting the "File Storage Location" (FSL) folder in the settings finally works throughout all DLM areas
Introducing great support for display and thumbnailing of uploaded images
Batch Upload: upload to multiple sections at once; option to automatically create thumbnails for uploaded image files; option to use filename as title rather than file1, file2 etc.;
Add File by URL: now correctly detects "links" throughout the DLM in all areas (http/www; bugfix)
Bugfix: changing the "storage location" of a version file now works correctly between Filesystem <> MySQL with files existing on the webserver, not "links" (shown as "external")
Batch Import: support for images and automatic thumbnail creation; option to re-check the import folder instead of going back and forth; import into multiple sections at once; correctly takes into account a changed storage location folder (as mentioned above)
"Latest Files" in admin: option for number of files displayed; optional display of thumbnails; direct switching of online status for each file (without editing it); "Delete" files with security prompt (Javascript required); display of linked section names to directly edit that section; added columns "Date added/updated"
Edit File / Edit Section: preview of both the "thumbnail" and "image" files; ability to create thumbnail from "image"; ability to create thumbnail from latest uploaded file version file if that is an image itself (only when stored in filesystem, though); images are well scaled to a specifyable max. thumbnail width/height
Edit File: it is now possible to maintain Date added/updated fields: finally allows "Date Added" to be changed to e.g. a product's "release date" independently of the upload date etc.
Edit File: added option to "Reset Rating" (2007-02-08)
New detail lists for downloads per user, ip address and file

What about the user ("Downloads" page)?
Editing a file directly from the Downloads list! Showing an "Edit File" link is configurable; if the user has admin rights for the plugin (required!); option to create thumbnail of uploaded file; configured "Auto Approval" is taken into account and email notification sent out; upload only for "Allowed file extensions" as configurable in the regular settings
As mentioned above, there is the "Default" layout which offers much less image support and configuration possibilities. The appearance of the "Enhanced 1", though, is configurable by multiple options.
Filelist: with section view enabled, the top menu is nicely displayed with section image and thumbnails in front of each section name (instead of the chevron).
Option to specify a comment for "guests" (not logged in) at the top of the page, e.g. stating that the guest has to sign up for downloading files or something you like (or empty to deactivate)
Configurable thumbnail names for above "Edit File", "Download Now" and "More Info"
Thumbnail click configurable to open in same or new window (2007-02-08)
Introducing option to specify a "separator" image which may be used instead of the "<hr>" tag; this image should be a very thin line to your liking; it is used between each file or not at all if empty
Display of file details: each item is configurable to be shown or not; 1- or 2 items per row; show/hide details in filelist or only on "More Info" page; hide "More Info" for image files
Configure the "description" to be displayed below file title or at the bottom (below details)
File Versions have new setting to be Default, "Standalone" or "Mirror" for different file links displays on the More Info page.
Add both an URL link as well as upload a file in the "Edit" file page at once.
...and some more...

This MOD version has it's own "uninstall" in the "CustomMOD" page, but be carefull: this only reverts the made changes of the MOD, not uninstall the plugin.
Info for those who use BrillianSolution's "Paypal" addon: this will not work with this MOD as there are too many differences in files. Although I have my own license of it, I haven't applied my MOD to it.

Important note for the image support:
In the regular "View Settings" page is a new option called "File Storage Location URL" (FSL URL).
This is required as a mapping between your "file storage" folder, which is local to the webserver, and the URL which would be needed in a browser.
Example:
If my FSL would be "/home/www/condev/subd/myfiles", then this might be correctly pointed to using this FSL URL: "http://www.mydomain.com/subd/myfiles".
With a relative path for the "File Storage Location", e.g. "../../ftp/", the actual files may reside outside of the web root. Of course this would render the mapped URL useless.

The reason is, that the FSL is an absolute path and the image-related functions for e.g. thumbnail conversion and image dimension calculation are happening on the server and use the local path there (and some functions work much faster than with URLs of course).
In contrast all image displaying tags need to use a URL which points from your browser to the website on the net. Don't be confused, just make sure that both entries point to the same directory.

Personal notes:
I recommend for you to start, just visit the "CustomMOD Settings" page and read through the options, which are quite self explanatory described (I hope). At least switch to layout "Enhanced 1", apply above mapping in the regular settings page, and you'll surely see the differences (especially when having image files as downloads).

Best regards,
Tobias

History:
Notes: Bugfixes and change details are solely related to the mod's if not otherwise stated.
EFL = "Enhanced 1" File Layout.
Updating the MOD with a newer version only requires to copy files from the current archive.
Make sure to not overwrite files that you yourself have changed in the meantime.
2006-08-26: Release of DLM MOD 1.0.0
2006-09-06: Updated to 1.0.6
* Admin "Edit File" page: removed top "Update File" button as this did not work correctly in Internet Explorer (only in Firefox it seems).
* changed display of "Standalone" files.
2006-11-11: Updated to 1.0.7:
* Removed image tag param for Download Now / More Info buttons to avoid phrases to appear 2 times
* Fixed email notification to have proper CR/LF line endings (thanks Adam)
2007-02-08: Updated to 1.1.0:
* "Edit File": added option "Reset Rating" to set rating of file back to 0 (and remove all votes for that file)
* "CustomMOD Settings": option for thumbnail clicks to open in same or new window added to "Custom Layout Options"
* "Sections": added "Section Filesystem Prefix" to allow upload of new files into specific server directories (only for new uploads!)
2007-02-09: Updated to 1.1.1:
* Fixed handling of relative path for "Files Upload Directory"
* Fixed problem with MOD uninstall and revised main upgrade method
2007-02-12: Updated to 1.1.2:
* Finally the problems with the files directory should be resolved, even if outside the subdreamer installation. For that a relative path like "../../ftp/" or similar has to be set up in the settings.
2007-05-17: Updated to 1.1.4:
* Requires Subdreamer 2.4.x and PHP 4.3+ to be installed!
* Security checks for file uploads
+ Added "CustomMOD Options":
+ Display Sort Options
+ Default License Agreement
* Click on thumbnail in files list now opens the file's image if available (termi)
* Improvements to thumbnail display to obey a 0-width limit
2007-05-21: Updated to 1.1.6:
* Fixed: comments did not display always
* Fixed: automatic thumbnail creation for submitted file stopped
working in previous updates
+ Added a "Delete File Version" link for file authors editing a versioned file
2007-05-24: Updated to 1.1.7:
* Fixed: usernames with quotes caused SQL errors on frontpage
2008-01-09: Updated to 1.2.0:
* Added options to "CustomMOD Settings" page to disable the file version, thumbnail creation and thumbnail file options on the upload form.
2008-01-10: Updated to 1.2.2:
* Fix: editing and saving the main section may cause empty download page to show up
* Added code to pass correct section when searching for files
* Added code to not count downloads by download accelerators
* Added section selection to upload form
* Changed: sorting of sections of main section is now done alphabetically
* Fixed: upload errors were not displayed
* Changed: email notifications now sent by SD core email function
* Added new phrases (see "Languages" admin page) for email notification subject and message (for both submitting new files and changed files)
* Some additional fixes to avoid php warnings
* Thanks to XhUnTeR and all other people for all the feedback and suggestions!
2008-01-12: Updated to 1.2.3:
+ New options in "CustomMOD Settings":
* Added "Allow Remote Upload Links" so user can submit URL's to remote files instead of physical upload; this option checks for configured file extension to be allowed; for now filesize needs to be manually corrected/entered as remote files get 0 by default
* Added "Enable Download Accelerator Support" option to allow multiple-ranges support (depending on server); code sample supplied by XhUnTeR :)
This "feature" is only available for server-side, not remote files.
* Fixed - Admin: long-time problem with specifiying a single filename (without any path) in the Add or Edit file page as a "local" file was not working when downloaded
* Some new phrases (see "Languages"), fixed typos and smaller issues
2008-01-13: Updated to 1.2.4:
* Fixed interim empty error message for invalid user submitted URL
+ Added option "Check User Remote Link" to enable/disable syntax check of user submitted URL (default: on)
2008-01-14: Re-uploaded 1.2.4:
* Fix: initial MOD installation was missing to create a new table
* Improved line-break handling with user submitted files' description
* Changed: "[more]" link for descriptions using regular font size now
2008-03-09: Updated to 1.2.6:
* Better compatibility on windows platform
* Several fixes to admin upload processing and switching storage location
2008-03-17: Updated to 1.2.7:
* check for safe mode to prevent warning messages
* apply chmod(0644) to images and thumbnails
* corrected error URL redirecting to work with SD 2.5.x
2008-03-22: Updated to 1.2.8:
* added "access permissions" selection to both "batch upload"
and "batch import"
* enhanced chmod'ing of files
* fixed bug in "Batch Import" which resulted in no files being
available if the target was filesystem
*fixed download of file versions from admin area
2008-03-24: Updated to 1.2.9:
+ fixed use of options "Show Search Header" and "Show Sort Options"
+ enhanced chmod'ing of thumbnails
+ "Batch Upload" form:
+ added "File Storage Location" selection
* fixed: now an error message is displayed if a "Section's directory"
was selected, but the directory does not yet exist
* entered data is now remembered if an error occured
* fixed issue with "author" being ignored
* fixed storing multiple selected sections
+ fixed issue when editing a file version and changing the file
storage location from MySQL to Filesystem
+ Fixed a bug when uploading single file into MySQL which could
corrupt the file (not happening with filesystem as target)
+ fixed downloading of MySQL stored files
2008-04-25: Updated to 1.3.0:
+ fix for potential SQL error
2008-05-08: Updated to 1.3.1:
+ another fix for potential SQL error (changed file: downloads.php; pluglib.php)
2008-05-31: Updated to 1.3.2:
+ added support for SD 2.6 new WYSIWYG editor (changed file: p13_settings.php; pluglib.php)

Elemental Crisis
10-01-2006, 12:50 AM
I love this mod! Thanks for all the hard work!

For some reason when I upload the new files I am not prompted to upgrade to Version 1.6, my current version is 1.5.

Velsheda
10-02-2006, 10:29 AM
Big job Condev. I love these differents options.
Just a little problem: Counter don't increase !?
And a question: May it's possible to make an option to display Top 5 downloads like plugin latest files ?
Thanks for all.

abcohen
10-22-2006, 11:36 PM
Subdreamer.org is now running this mod... So if you submitted a file you should be able to manage the file yourself....

gdogg2000
10-28-2006, 03:02 PM
Sweet this works great!! Thanks!

steve51184
11-11-2006, 09:25 PM
if the files edit menu the files description isn't scrollable so you can only enter 7 lines of text and that means i have to copy the text out into notepad then edit and so on.. and chance you can make the edit box scrollable? :)

tyburon
02-08-2007, 11:43 PM
Thank you Condev I love your mod is just genius

inlinewout
02-17-2007, 08:04 AM
Great!

A bit complex, but great!

Thanks condev!

farzooma
02-24-2007, 03:02 PM
Great work Condev! i've been using the mod since release 1.0.5.

Can you please take under consideration the suggestion by Barsa in this post?

http://www.subdreamer.org/forum/showthread.php?t=1372


Many thanks

claudia
03-20-2007, 02:56 AM
I love this mod, thanks condev
and have a request :) is it posible to implement tags like in post
http://www.subdreamer.org/forum/showthread.php?t=2007
but for the download manager? that will be very cool

farzooma
03-26-2007, 05:14 AM
How do you limit the sub-sections under a main section? i have a large library with many sections, all of them listed in one column. :(

Is there anyway to limit sub-sections per page like you do with number of files?


One more thing please, How do you make all search options in a drop-down menu?

Thanks

claudia
03-29-2007, 03:49 AM
I did the upgrade to 2.4.1 a couple of days ago and so far so good :)

PrefeX
03-31-2007, 02:03 AM
love it :)

can you add a setting where i can switch between on and off as the default setting for the License Agreement when i add new files?
kind of annoying to change it manually every time i upload a new file :(

condev1972
04-06-2007, 08:42 AM
I might have been a bit snappy previously, but still...
to my mind even SD.org contributions are meant for licensed Subdreamer users as both Subdreamer and contributors (and all people who provide help for free on their spare time) earn that respect and right to choose what and how much to support (in case it sounds fishy if someone doesn't own Subdreamer).

It'll take some time for me to review any requests for the DLM MOD and I can't make any promises of when I'll have the time for it, but the DLM MOD is still one of my favorites. :)

I'll get back to this later... stay tuned... ;)

shahrambf
05-01-2007, 04:17 PM
wow, nice mods,
did u think about this :

http://www.subdreamer.org/forum/showthread.php?t=2350

condev1972
05-01-2007, 05:45 PM
Yup, replied in your other thread.

shahrambf
05-10-2007, 09:20 PM
I was thinking about subscription function (eg Notify me of updates [for sections]),

it shouldn't be too much work, but I think i will be very usefull,

I think it will just need another table with to columns "section id" and "email address",
so after each upload, and email is sent to those whose email address matches the section id.

I will try to work on it when I have some free time, but it will be good if it apears in your mod.

condev1972
05-18-2007, 12:39 AM
2007-05-17 - DLM MOD updated to 1.1.4:

Requires Subdreamer 2.4.x and PHP 4.3+ to be installed!
Added security checks for file uploads
New "CustomMOD Options":
+ Display Sort Options : option to show the "Sort by" area on frontpage (addaminsane)
+ Default License Agreement : set default for adding new files (PrefeX )
Click on thumbnail in files list now opens the file's image if available (termi)
Improvements to thumbnail display to obey a 0-width limit (VanceWxMan)


For downloading please visit the Mods Download Page (http://www.subdreamer.org/sd_plugins/p13_sectionid/4).

claudia
05-18-2007, 02:09 AM
Hi Tobias and thanks for the upgrade :) and by the way

Default License Agreement : set default for adding new files (Claudia)

was actually requested by PrefeX my request was TAG implementation but I understand you are very busy and I been having fun with your new plugins so no complaints from me :) but if in the future you have a little extra time I still will love to see Tags implemented on the DLM :D

VanceWxMan
05-18-2007, 07:37 AM
Just tested the new version VERY NICE! Thank you for fixing the thumb issues!

VanceWxMan
05-19-2007, 08:41 PM
Thank you.. I do not mean to make you work more but it does make your great script even more awesome!

condev1972
05-19-2007, 09:11 PM
Vance: I just reuploaded the DLM MOD (labelled 1.1.4b, but since only files were changed in minor way, it's not a new version this time). Just download and upload the files from today's date if you already have 1.1.4 on your server (otherwise all files, of course).
Changes:
* Widened the Section selection box in "Add File" pages
* Frontpage: no check for length of Title/Description (good luck! :lol: )

kboy_16
05-20-2007, 01:50 PM
great condev! ;) thanks.

PrefeX
05-20-2007, 02:16 PM
great update :)
thanks

PrefeX
05-21-2007, 12:23 AM
another sweet future would be URL adresses on "Optional Thumbnail:" and "Optional Image:" when adding a file :) would also be sweet if it worked along with the Image Manager on th ACP (but this is asking for a lot :))

condev1972
05-21-2007, 02:04 PM
DLM MOD 1.1.6 uploaded to fix some open issues.

New feature on frontpage file editing for authors (i.e. logged in user has the same name as the file "author"): "Delete File Version" shown if there are more than 1 versions available, which helps cleaning up old uploads. This is configurable in the CustomMOD Settings ("Enable Author File Delete").

condev1972
05-24-2007, 07:42 PM
DLM MOD 1.1.7 uploaded

Fixed: usernames with quotes caused SQL error on frontpage
Fixed: "Search" header now correctly takes into account the "Main Color" plugin setting as the background color
Fixed: frontpage: creation of thumbnail of uploaded (main) file being an image did error


This update is highly recommended for security reasons.

VanceWxMan
05-25-2007, 04:23 AM
Thank you very nice work!

Ok Odd issue? When you are in DLM and you click on the file name it loads the info of the file however when you click on download file from that window all you get is a blank page and no file downloads?

Looks like a bug :(

Also under Optional Thumbnail and Image the thumbnail ALWAYS shows
Width: 100 Pixels
Height: 100 Pixels

Even though this is not the case

condev1972
05-25-2007, 06:34 PM
DLM MOD 1.1.8 uploaded

Fixed: "Download" of a file version in admin "edit file" page was broken
Fixed: admin "edit file" page now shows the real image dimensions for Thumbnail and Image files, not the currently set max. Thumbnail size
Fixed: storage of files in MySQL no longer corrupts binary files (like images or PDF)! ;)


If not yet installed, this update is highly recommended for security reasons.

Thanks to everyone providing feedback and pointing out issues.

condev1972
05-26-2007, 10:16 PM
Great, thanks for the help! :D

EDIT: XhUnTeR: thanks for all your feedback and suggestions, I'll try to make time in the next 2 weeks to add this (optional). :)

VanceWxMan
05-27-2007, 04:33 PM
Very nice work Condev! I love the new larger window and the downloads from Admin CP work!

Will let you know if I see anything new. Thank you for correcting these issues so quickly!

steel51
05-29-2007, 11:17 AM
Thanks for the great Mod. Many features are now intergrated I was waiting for.


But I recognized two things:

* Wouldnt it be reasonable to choose the section/category where the download will be stored from the upload-site? Perhaps per Radio-Button/Dropdownlist?
* it would be great to define extra Text-fields in upload for the single files per Section/Kategorie. Is there a way to integrate this?

My downloads are on http://www.fachinformatiker.de/Downloads

Keep on good work, thank you for this again.

regards
Stefan

XhUnTeR
05-29-2007, 05:54 PM
I have another suggestion for you :)

This came to my mind as I am using a cloned download manager to act as a universal media player, something similar to ur "Mass Media Pro", with all the functionalities of download manager,

this could be useful both for this and your Mass Media pro,

http://getid3.sourceforge.net/

I use it to get video/audio info details with only a couple of lines


$filenamep = $pxx_filesdir. $file['storedfilename']; // xx (13)
require_once('/path to the module/getid3.php');
$getID3 = new getID3;
$fileinfo = $getID3->analyze($filenamep);


and the u access eg the movie length like this :

@$fileinfo['playtime_string']



I m pretty amazed by it's functionality,

condev1972
05-29-2007, 06:11 PM
Thanks! :)

I've seen similar stuff in the past which could do the same even for other multimedia types (like flw/swf, mov etc.), but I think that one was commercial.

XhUnTeR
05-29-2007, 06:27 PM
this one does too,
I don't want to make multiple posts again :) ,

but look at the file types supported,

I like it even more when I saw it worked with all of my wmv/asf/swf/mov and rm files :)

it's amazing,

it doesn't need the file extention to parse the file, that is why it would work in download manager, but may be you could use this file extention of the filename to call this function and show these sort of info only for multimedia files.

condev1972
05-29-2007, 08:26 PM
XhUnTeR: I just played a bit with it and indeed: wow! :) It's great to be able to get author/title, play time, width/height and so much more from it across so many file types... awesome! :)

condev1972
06-02-2007, 01:19 PM
PrefeX: the "Add file by URL" by definition cannot work with files outside your web root. Please use the Batch Import and Upload File features instead for that.

PrefeX
06-04-2007, 03:31 PM
PrefeX: the "Add file by URL" by definition cannot work with files outside your web root. Please use the Batch Import and Upload File features instead for that.
maybe it could be added as a future function then ^_^
seems kind of pointless to re-upload all the files when their already is in the folder, and could be added using a system like "Add file by URL" :rolleyes:

alcapon
06-28-2007, 02:37 PM
Hello,

i use Subdreamer 2.4.2.1 and Download Manager V1.4.2, after install MOD V1.1.8, i can`t see my Download Page. If i set the Option "Display Sections" to "NO", i see my Site !

the second thing is, if i disable the Search Box (Option - Show Search Header) there is always on !

any ideas ?

regards alcapon

manfred.heindl
07-10-2007, 09:50 PM
in this post i will say THANK YOU "condev1972"" for your great support.

fahl
07-24-2007, 05:20 PM
I have just installed sd 2.4.2.1 & was intending to use this dl manager,Installed fine,works fine,
But i have my own server for file hosting that is access by a url,Is there any way to get dl manager to use external http://address for uploads & downloads.

Elvis67
10-08-2007, 09:05 AM
I Like the mod, especially the ability to restrict the downloads to certain usergroups. All is running well so far. Although, I found a missing image: seems that you should include /plugins/p13_download_manager/images/misc/edit.gif in your next release ^_^

...quickly draw a matching one for you

Carlospr
11-02-2007, 09:37 PM
First of all thank you for such great work!

The hability to change "date added" is very useful.

My questions:

1) Standalone buttons

How can I enable stand alone buttons for "Edit file", "Download now" and "More info"?


2) Why am I having alignment issues? The link below will show 4 files and the one named "CD Slot Display" has different alignment (text information, not the thumbnail).
http://www.cdartdisplay.com/index.php?categoryid=2&p13_sectionid=2

3) Is there already a way to add additional views? Like just thumbnails and file name (click to lead to more info)?

Thank you in advance!

:)

charley
11-18-2007, 09:16 PM
Hey XhUnTeR, I'm really interested in your mod since lower cpu load the better especially with webhost's and their cpu quota.

I cant get it to work though :o

The upload path is correct. Could it be php restriction from my host?
p.s Rapidleech works fine on my host besides the high cpu load.

tia,
charley
Here is again another suggestion :)
(trying to keep u busy improving download manager ;) )


Server 2 Server Transfer,
that is, if a file is already on internet, you don't need to download and then reupload it to ur site, you would just enter the file URL, and that file is downloaded to your server directly.

This could be amazing for download manager (maybe where there is an input for external URL, a Select option could say "Download the URL") or any other ways...

an script that I found working was from Jazarsoft (http://www.jazarsoft.com/main.php), their website is not working properly, but this script can be found on internet easily , I attached it to this thread for ease of access.

555 (Original),


I am using it in my server alot.


There were a few problems with the original script,
in order to show the download process, the script writes a javacript command on the page for each size change which will show the progress ;
<SCRIPT>document.form.status.value=\"$msg\";</SCRIPT>

This could cause problems and hang the browser if a big file is being downloaded (thousands of this command), I think that's why the original author has limited the download size limit to 5 MB,

but I managed to work around it, by instead of writing this command, writing the size to a text file, and a javascript inside the main page continuously reads that text file with 1 sec intervals and shows the progress of download,
this way you can download files no matter how big (I think there is some sort of max in php (2GB?) even after maxing in php.ini)

Here is my code, enter as many urls as you want and upload directly to ur server,

556

change $saveloc to somewhere in your server eventhough you can change it when uploading.

Getting more and more functions out of download manager.

XhUnTeR
11-26-2007, 04:09 AM
There is an issue that I think has been missed in DM in getfile.php,

there is no


$DB->close();


that's a potential open end specially in this case.

usually php servers do that if it is not done when the php scripts execution is completed, but in this case (eg for a big file), when users start downloading they keep the getfile open until the download is finished which means your max connections to DB permitted will hang on these downloads and if reached your site will stop functioning for a while.

the solution would be to close the connection right before opening and sending the file content.

thomas
11-26-2007, 04:29 AM
would that be the reason for the unprecented number of downloads (in the 10,000's ) from the same user, ever second on subdreamer.org?

XhUnTeR
11-26-2007, 11:02 AM
would that be the reason for the unprecented number of downloads (in the 10,000's ) from the same user, ever second on subdreamer.org?

I can't think of way that an open connection could go haywire like that,

I was more thinking like the connection limit being reached,
MySQL connection limit with many hosts is usually a low number (eg 3 or 20), that is the number of people connecting to the DB at the same time per sec, which is usually enough for sites not extremely busy .

index.php does close the connection at the end, but I think I read somewhere even if there wasn't a clsoing, when the php file is executed completely by the server, it does close the connection,

with getfile.php, neither we close the connection, nor the execution finishes before the file is fully downloaded.

for example I think if I went to download manager here on SD.org and started 20 downloads (depending on max_connection) at the same time, your max_connection will be reached and everything else on the site is going to return an MySQL error like,

"User xxxxx already has more than 'max_user_connections' active connections"

and it's going to stay like that for a while.

XhUnTeR
11-27-2007, 03:09 AM
would that be the reason for the unprecented number of downloads (in the 10,000's ) from the same user, ever second on subdreamer.org?

I think I am encountering the same issue,
I have one my users being hooked up with a couple of my files,
what I can see that she is online all the time and the download count is going up.
eventhough the file are each around 600MB, but she has been on it for too long, maybe it's caught up in a loop.

from my logs, when browsing the site her user agent is for IE7 but when requesting the files is IE6 (probably a download manager or website downloaders),

The request codes are 206 (given I have added resume support) that is a partial rang request, supporting being a download manager request.

My initial guess is, it's a download manager that is having issues with authentication (eg cookies) and keeps requesting the file.

XhUnTeR
11-27-2007, 04:42 PM
would that be the reason for the unprecented number of downloads (in the 10,000's ) from the same user, ever second on subdreamer.org?

I was able to fix this issue for myself by adding check for ranges to the criteria needed to log the donwloads:


if(empty($_GET['in_admin']) && (!in_array($pluginid,$userinfo['pluginadminids']) || $p13_settings['Count Admin Downloads']) && !isset($_SERVER['HTTP_RANGE']))

Nathan Allen Pinard
12-28-2007, 10:51 PM
Hello, just recently DL'd this, looks great.

I like everything just fine except I'm getting some weird format errors with the image vs text alignment.

Look here: http://www.nathanallenpinard.com/index.php?categoryid=14

Chris Powell
01-08-2008, 11:04 PM
Also how come when you delete a file from the download manager it still appears on the server?

Please help me remove the above section coddev then im good to go i think

Chris Powell
01-09-2008, 12:39 AM
Ok. :)

Its a code line i will look at late tonight.

Much appreciated!

@ condev1972, thanks for this DM Mod. :cool:

condev1972
01-09-2008, 04:50 PM
Chris: the updated version 1.2.0 of the DLM MOD (see first post) now offers the missing options. :)

Chris Powell
01-09-2008, 06:25 PM
Excellent!! Much appreciated condev1972!!! :D

Also please think about allowing the option for admin who have php 5.2 to allow a real time meter to be displayed for members when uploading files so they know how long big files will take to upload!

I remember seeing it on JamRoom when trying out their software and thought it was excellent the way you can see exactly how long it takes for your file(s) to upload. It shows data like time, filesize in KB then changes to MB. Example: I don’t know if this is any help but the Upload Progress meter is included with the Jamroom 3 Power Pack, http://www.jamroom.net/Downloads3_Core the Upload Progress meter is included with the Jamroom 3 Power Pack.

If you add this in any future releases, I will send you big donation. :)

Thanks

valnex
01-09-2008, 11:27 PM
Chris: the updated version 1.2.0 of the DLM MOD (see first post) now offers the missing options. :)

What might be even more important than this update, is the hope that condev might be coming back to the scene.

Let's make a Welcome back Condev thread.

Thanks friend. ;)

condev1972
01-10-2008, 09:22 AM
First: all the best to everyone for 2008! :)

I'll only be around sporadically depending on my work schedules.

In the coming days/weeks I'll cleanup this thread a bit.

Also I already applied some suggestions made by XhUnTeR - thanks for all your feedback! - which will be included in the next update. These include DB-Close upon download, section number handling when searching and download count not for "ranges".

Although I can't promise any new features, I'll try to make some time to take care of bugs and - if necessary and generally usefull - new options.

If there are still e.g. display or download problems with the *existing* features, please repost the issue here.

Chris Powell
01-10-2008, 01:09 PM
If there are still e.g. display or download problems with the *existing* features, please repost the issue here.

Good to hear! You even kept the code xhtml 1.0 compliant! V. Good work :D

I will propberly know more about the mod once I make my site go live. Still testing things atm. :cool:

condev1972
01-10-2008, 10:20 PM
DLM MOD 1.2.2 uploaded

This update introduces several fixes and smaller enhancements as can be read up in the first post's history. Thanks to all for the feedback, suggestions and ultimate patience. ;)

condev1972
01-12-2008, 08:28 PM
I made some time to take care of some errors and added 2 requested features, please see below for details:

2008-01-12: Updated to 1.2.3:
+ New options in "CustomMOD Settings":
* Added "Allow Remote Upload Links" so user can submit URL's to remote files instead of physical upload; this option checks for configured file extension to be allowed; for now filesize needs to be manually corrected/entered as remote files get 0 by default
* Added "Enable Download Accelerator Support" option to allow multiple-ranges support (depending on server); code sample supplied by XhUnTeR
This "feature" is only available for server-side, not remote files.
* Fixed - Admin: long-time problem with specifiying a single filename (without any path) in the Add or Edit file page as a "local" file was not working when downloaded
* Some new phrases (see "Languages"), fixed typos and smaller issues

Enjoy! :D

Loverboy27
01-12-2008, 11:52 PM
Enjoy! :D

what if I wanna cry?? :huh: haha!

welcome back friend ;)

Joe

KOMAPA
01-13-2008, 02:55 PM
Now it's work fine :)

Thank You condev1972!

It's very usefull now...

KOMAPA
01-13-2008, 03:50 PM
"No Rating" and Stars images for dark designs :D
http://rapidshare.com/files/83495998/darkstars.rar

Chris Powell
01-13-2008, 10:33 PM
Hmmm. think I have a problem

I’ve created different folders under the mixes folder like this


mixes/ = default Section Filesystem "/home/djpassio/public_html/mixes/"
mixes/downloads
mixes/downloads/drum_n_bass
mixes/downloads/urban
mixes/downloads/house
mixes/downloads/trance
mixes/downloads/techno
mixes/downloads/unclassified = custom Prefix: -"downloads/unclassifiable/"

I did a test upload in the unclassifiable section and even though I used the correct prefix (well as far as I know it is), the mix still uploads to the mixes folder. It should go to the unclassified folder.

Any ideas what I’m doing wrong condev1972?

Btw, I also noticed that when entering a description and you press enter = next line down... it makes no difference after the file has been submitted

Eg.

I submit a tracklisting like this

1. test 1 - dj test (dj test remix)
2. test 2 - dj test ( dj test remix)

It comes through on the download manager page as

1. test 1 - dj test (dj test remix) 2. test 2 - dj test ( dj test remix)

Any idea how make it so when in the upload form you press enter and is submitted to the database the enter acts as <br /> :(

I'm not so fussed about the first thing i mentioned, if they have to go to one folder then so be it. just thought id ask though in case im making a simple mistake. the latter is important though. without a fix all tracklisting would look a right mess. :(

condev1972
01-13-2008, 11:55 PM
I just checked and it works fine.

Please make sure to not only specify the target section (at the top of the "Upload File" page), but also select the correct entry from the "Available "Section" directory prefixes" selection list.
The paths in your example look ok to me, though they should appear with a trailing "/" when you edit a section.

As to the line breaks: the description is supposed to be HTML, thus you either enable your WYSIWYG editor or add <br /> at each line's end.

Chris Powell
01-14-2008, 12:46 AM
Hi

The WYSIWYG editor is already enabled in SD Admin panel. I guess it doesn’t work with the download manager description form section? I guess the only way is to leave Auto Approve off for files being uploaded, and for me to check through each mix uploaded to make sure there’s a <br /> after each track *crys then faints :eek: lol

The last script I had worked ok regarding the breaks in tracklistings. Not sure how it was done. I guess it more complex code was used for it or something.

Sure there isn’t a way to make it easier for me, condev1972? How about making the upload form (description section) appear with a WYSIWYG setup instead of it displaying the standard form?

Riki
01-14-2008, 05:48 AM
would anyone know how to fix an error like this? I get it when I try to access or upload any files in the admin section
Database error in Subdreamer

Invalid SQL: SELECT usergroupid FROM `sd_p13_access`
WHERE userid IS NULL AND itemid = '1' AND itemtype = '0'
Error: Table 'mydatabase.sd_p13_access' doesn't exist
Error number: 1146
Date: Monday 14th of January 2008 05:45:44 AM
File: http://mysite/admin/myplugins.php

it only happens when I apply the mod, it doesnt happen with the default download manager

condev1972
01-14-2008, 07:03 AM
Chris: I'll have a look later today into the line break issue

Riki: please go to "CustomMOD Settings" in the DLM admin, scroll to the bottom and click "Reinstall CustomMOD", then try again to upload. I'll also have another look into this. So your original DLM was v1.4.2, right?

addaminsane
01-14-2008, 08:15 AM
good job, i really wish the dlm would get the ability to have separate keyword and page title options for each download like the article manager...

Loverboy27
01-14-2008, 08:57 AM
these dlm customers is really hard to satisfy huh condev LOL :D

condev1972
01-14-2008, 11:57 AM
I just re-uploaded 1.2.4, please reupload the files to your existing plugin folder.

Chris: please try again with the descriptions, display should work much better now

Addam: nice idea, though requires multiple changes (not planned yet)

Joe: yup, you're right! :)

Chris Powell
01-14-2008, 03:37 PM
Chris: please try again with the descriptions, display should work much better now

Yes. They work fine now. Cheers for that!!!

Chris Powell
01-14-2008, 04:43 PM
I just checked and it works fine.

Please make sure to not only specify the target section (at the top of the "Upload File" page), but also select the correct entry from the "Available "Section" directory prefixes" selection list.
The paths in your example look ok to me, though they should appear with a trailing "/" when you edit a section.

When i goto edit a section this is how it shows

http://i101.photobucket.com/albums/m72/Chris_Powell/test-1.jpg

That looks right to me but it doesn’t seem to be working for me. Going by the settings above when I upload to the default folder “downloads” the file should goto the “downloads” folder. But for some reason it’s just going to the mixes folder. The one before downloads? I set the folders on ftp to 777. The mixes one however by default is 755 and is where they keep going no matter whether the section has a prefix at the end or not. Ive tried different permissions but not good.

KOMAPA
01-14-2008, 04:45 PM
Hi Again,

In process of tests I find another problem...

If link external link contain some extra spaces or %20 it's not recognised as valid link!

Tanx!

condev1972
01-14-2008, 05:29 PM
Chris:
your section setup is correct. In my earlier post I mentioned the specific selection box when using admin's "Upload File": there is an extra selection box with section prefixes you have to set before submitting a file. The selection of sections at the top of the page is only to determine where the file is to be listed (since you can specify multiple sections). Please try again. ;)

Komapa:
Please go to DLM admin page, "CustomMOD Settings" and disable the option "Check User Remote Link" located pretty much at the bottom. This will deactivate the validity check (which I found somewhere in SD, so it seems it's too strict in this case). This is for user submitted URLs. Please let me know exactly where the problem occured if not there.

Riki
01-14-2008, 06:12 PM
I just re-uploaded 1.2.4, please reupload the files to your existing plugin folder.


That fixed my problem it seems..Thanks!

KOMAPA
01-14-2008, 06:48 PM
Komapa:
Please go to DLM admin page, "CustomMOD Settings" and disable the option "Check User Remote Link" located pretty much at the bottom. This will deactivate the validity check (which I found somewhere in SD, so it seems it's too strict in this case). This is for user submitted URLs. Please let me know exactly where the problem occured if not there.
I'm stopido :confused:.... it's so simple for you and not so for me (Yet) :)

But I have another problem, not about this MOD, it's about login and logout problem (mainpage/forums) - where must I to post my question?

condev1972
01-14-2008, 07:19 PM
Login/logout problem is to be posted on SD.com for technical support with your licensed user name.

Chris Powell
01-14-2008, 07:27 PM
Chris:
your section setup is correct. In my earlier post I mentioned the specific selection box when using admin's "Upload File": there is an extra selection box with section prefixes you have to set before submitting a file

Ooooh I get it now. So it only works for admins when uploading in SD admin panel. It doesn’t work when using the upload form on the website itself. I got it now. Not a problem.

Btw, when I said the breaks thing worked, I don’t think it did actually. When I used the upload form to upload a file the WYSIWYG editor only shows because I was logged in as admin. The WYSIWYG doesn’t show to normal users. Though, you must have done something because when I did use next line down in the upload form as a test user it did add a break, well three breaks in fact http://www.djpassion.co.uk/mix_center/p13_sectionid/1/p13_fileid/6. So I think 2 extra breaks were added or something. I'm not sure. I only need one break

atm one break =

This is just a test. :)



This is just a test. :)

should be

one break =

This is just a test. :)

This is just a test. :)

Cheers CD :D

condev1972
01-14-2008, 08:25 PM
Chris:
within SD users do not have any WYSIWYG anywhere, mostly due to security reasons, so what the DLM does is that it automatically converts "normal" line breaks to HTML line breaks so a user does not need to manually enter any < br > tag. It is a bit "strange" to handle because the admin might use WYSIWYG - which most of the time adds <p>...</p> to it - or not. So, when I tested it without adding manual < br > tags, it showed up fine, just keep playing with it, I won't change it again... ;)
Within admin area, do not use any manual line breaks as it is supposed to be HTML, then you're good to go.

Chris Powell
01-14-2008, 10:41 PM
It’s ok now as I’ve decided to let members submit a description for the mix rather than a tracklisting = no need for <br />‘s now.

I couldn’t seem to get the remote URL to work either. I got two errors. So I wont use that either. Think I’m good to go now though, thanks to you.

Cheers for adding the extras.

If you decide to add an option to allow a file upload progress bar meter I think flash might be the best to use going by what I read on another forum where I requested it as a feature request on e107.org.

Good stuff CD

Cheers

Chris

condev1972
01-14-2008, 11:09 PM
Please post these errors, Chris, maybe a screenshot (or PM me).

A progress bar for the DLM is not happening soon, though, sorry.

KOMAPA
01-15-2008, 09:53 AM
Hi again,

I found a design brokable case - if pages in section is more then 10 (in my case - 54) design expand it's size...

In file downloads.php
in this code around line 233:

if($totalpages > 1)
{
echo '<td style="padding-left: 4; padding-right: 0;">[</td>';
for($i = 1; $i <= $totalpages; $i++)
{
if($i == $currentpage)
{
echo '<td><a style="color: red;" href="'.RewriteLink('index.php?categoryid='.$categoryid.
$section.'&p13_currentpage='.$i.(strlen($ordertype)?'&p13_ordertype=':$ordertype) .
'&p13_pagesize='.$pagesize.$search).'"><b>'.$i.'</b></a></td>';
}
else
{
echo '<td><a href="' . RewriteLink('index.php?categoryid='.$categoryid.
$section.'&p13_currentpage='.$i.(strlen($ordertype)?'&p13_ordertype=':$ordertype).
'&p13_pagesize='.$pagesize.$search).'">'.$i.'</a></td>';
}
}
echo '<td>]</td>';
}


I change this code to:

echo '<td style="padding-left: 4; padding-right: 0;">';
for($i = 1; $i <= $totalpages; $i++)
{
if($i == $currentpage)
{
echo ' <a style="color: #FFF;" href="'.RewriteLink('index.php?categoryid='.$categoryid.
$section.'&p13_currentpage='.$i.(strlen($ordertype)?'&p13_ordertype=':$ordertype) .
'&p13_pagesize='.$pagesize.$search).'"><b>'.$i.'</b></a> ';
}
else
{
echo ' <a href="' . RewriteLink('index.php?categoryid='.$categoryid.
$section.'&p13_currentpage='.$i.(strlen($ordertype)?'&p13_ordertype=':$ordertype).
'&p13_pagesize='.$pagesize.$search).'">'.$i.'</a> ';
}
}
echo '</td>';


and now pages are arranged in more then 1 row.

condev1972
01-15-2008, 11:07 AM
Thanks Komapa, I see the issue and will adapt the changes. :)

Chris Powell
01-17-2008, 11:18 AM
Please post these errors, Chris, maybe a screenshot (or PM me).

Ok i will try again later and let you know. the rest seems to be working a treat though Mix Center (http://www.djpassion.co.uk/mix_center)

A progress bar for the DLM is not happening soon, though, sorry.

Ok. No rush. Would be great for my site though. Though if i could pay you for that extra addition, please let me know via PM, condev1972!

Riki
01-19-2008, 08:58 AM
For the life of me I cannot remove the search header at the top, and is there anyway to remove the link from the title of the file?
http://eat3d.com/dlm1.jpg
http://eat3d.com/dlm2.jpg

condev1972
01-19-2008, 09:13 AM
I'll have a look next week, thanks for your feedback.

Ortixx
01-20-2008, 10:59 AM
maybe stupid question but where do i download this? I have 1.0.4 and i want to update. I remember a link but there's nothing :P

cykelmyggen
01-20-2008, 11:17 AM
When setting restrictions in usergroups having access to downloads they meet this sentence:
"The Download Area shows available files grouped by below sections. Access to non-public files is only allowed when being logged in. For signing-up please click the "Register Now" link in the "Login Panel"."
Can't figure out how to translate this into my own language, as it doesn't appear in the "Language" section of this plugin:confused:

Riki
01-20-2008, 11:33 AM
Subdreamer Team now?

Congratulations condev!

Ortixx: look up top under "mods (http://www.subdreamer.org/sd_plugins/p13_sectionid/4)"

condev1972
01-20-2008, 02:15 PM
When setting restrictions in usergroups having access to downloads they meet this sentence:
"The Download Area shows available files grouped by below sections. Access to non-public files is only allowed when being logged in. For signing-up please click the "Register Now" link in the "Login Panel"."
Can't figure out how to translate this into my own language, as it doesn't appear in the "Language" section of this plugin:confused:

This is actually a DLM option in the admin area, not under Languages. :)

Ortixx
01-20-2008, 02:17 PM
Subdreamer Team now?

Congratulations condev!

Ortixx: look up top under "mods (http://www.subdreamer.org/sd_plugins/p13_sectionid/4)"

i said it was a stupid question :P my bad :P

cykelmyggen
01-20-2008, 02:45 PM
This is actually a DLM option in the admin area, not under Languages. :)
Selbstverständlich... how could I overlook this one...:rolleyes:

Riki
01-29-2008, 05:39 AM
Can someone help me figure out how to remove more info completely, and also the name of the file is also a hyperlink to more info, it would be really nice if I could remove this more info altogether.

condev1972
01-29-2008, 02:10 PM
Have you checked the "CustomMOD Settings"? I thought I had added a switch to enable/disable More Info already...

Riki
01-29-2008, 07:19 PM
ahh yes, with enhanced1 you can remove the word, but the name of the file is still a link into that section (The Title). To remove confusion, the only active link I would like is download now. Is this possible?

condev1972
01-29-2008, 08:48 PM
Possible it is, but not happening for the next couple of weeks due to other obligations. But I do like your suggestion and will remember it when the right time's there. :)

Riki
01-29-2008, 11:37 PM
Thanks as always condev! :)

Riki
01-30-2008, 04:17 AM
If I use an external URL link for my file, is it possible for someone to figure out that external link? Would it be easy to figure out? I would like to host my file externally with a static URL, but it would be devastating if everyone found that link and were able to download for free.
Thanks!

condev1972
01-30-2008, 05:53 AM
I'd have to recheck, but I think any "links" are just redirected to the browser as-is, meaning: there's no "streaming" from remote servers, sorry.
Also, it seems to me that due to security issues more and more servers are configured to disable the access of remote files, but this new feature could then be made optional.

Riki
01-30-2008, 07:59 PM
Ok, so basically I made an account at box.net and it gives you a static link to link to a file. In the Download Manager I put put that link in for the file, and people pay for access and get that file. I dont see anywhere in the download process where it reveals that link from box.net, but I was wondering if people could find it out easy.

Chris Powell
01-31-2008, 04:10 PM
Hi condev,

how about this - is it possible for the dj names in my Mix Center (http://www.djpassion.co.uk/mix_center) to link to their profile in vBulletin?

example:

File Size: 69.96 MB
DJ: manik (http://www.djpassion.co.uk/forums/members/manik.html)
Date Added: January 31, 2008
Download Count: 0

would be sooo cooool :)

condev1972
01-31-2008, 05:05 PM
Nice idea indeed. Gimme some weeks to get back to you with this, though.

Chris Powell
02-02-2008, 01:36 AM
For sure. Cheers for lookin into it.

Riki
02-06-2008, 11:02 PM
1.2.5? :)

condev1972
02-07-2008, 01:16 AM
DLM MOD 1.2.5
Silently updated, because ... I forgot to tell! :)
It has only little compatibility changes for the upcoming SD 2.4.4 (now at RC3).
No new features, sorry.

Chris Powell
02-09-2008, 01:26 AM
Is there a way to completely disable the use of images in the download manager? Just that some of my members are uploading them but are just showing up as red x's, which I think is because they upload pics that are too big and that the system has trouble resizing them. Either way it’s a bit of a pain and id like to cut off the image stuff altogether but I don’t see any options to cut off all traces of the image sections

Also what code do I remove to stop ‘p13’ showing in the urls as it looks a bit messy.


I really want to use this plugin but there are several things I need extra and/or changed

Id like

1/progress bar (even if its a fake one) just as long as they see a progress bar moving so they know their mix is still uploading then.

2/ id like the mix links to be direct links eg http://www.djpassion.co.uk/mix/chris_powell_-_trance_mix.mp3 instead of them showing like

http://www.djpassion.co.uk/mix/p13_sectionid/50/p13_fileid/220

Also members keep uploading their mixes to the downloads section (parent category) then ask me to move it into a sub category eg. drum and bass

They don’t realize that they have to click on sub category then upload. They keep uploading to the main downloads section. Aaaaagh

Is it possible to stop members uploading to the parent category and to allow them to upload to a sub category only?

To be honest I think im going to get rid of the free mix hosting thing because I cant get a good setup. Id be willing to pay a good £50 to £100 maybe more if someone could code a decent one for me :(

What to do?

condev1972
02-09-2008, 06:37 AM
Chris,

as replied on SD.com, the "p13" cannot be removed from the URL, unless you use direct links to your files (upload files by FTP and add them in the DLM by "Add File by URL").
Technically, it could be added as a new feature for uploaded files, but then you'd have no control over leeching and uploaded files would need to be renamed back from the random name to a readable name.

As to the upload section: please set option "Show Upload Section Selection" under "CustomMOD Settings" to "Yes" so that the section selection will appear, too (defaulting to the current section the user is in).

About your earlier request for links of author names to forum: this is not as easy as I thought as the core SD functionality for forum links requires a user id, not a name and I don't intend to write new functions for each forum to just achieve this, sorry.

Regards,
Tobias

Chris Powell
02-09-2008, 09:30 AM
Chris,

as replied on SD.com, the "p13" cannot be removed from the URL, unless you use direct links to your files (upload files by FTP and add them in the DLM by "Add File by URL").
Technically, it could be added as a new feature for uploaded files, but then you'd have no control over leeching and uploaded files would need to be renamed back from the random name to a readable name.

Ok...i dont quite understand what you mean by that, but it sounds complicated so no worries.

As to the upload section: please set option "Show Upload Section Selection" under "CustomMOD Settings" to "Yes" so that the section selection will appear, too (defaulting to the current section the user is in).

ok ive done that but now in the Upload into Section: i have this

Downloads
Downloads/Breaks
Downloads/Chillout
Downloads/Drum n Bass
Downloads/Gabba
Downloads/Hard Dance
Downloads/Hardcore
Downloads/Hardstyle
Downloads/House
Downloads/Old Skool
Downloads/Techno
Downloads/Trance
Downloads/Unclassifiable
Downloads/Urban

is it possible to hide the main category 'Downloads' to stop it showing in the Upload into section: so instead of my members seeing the above they just see this instead

Breaks
Chillout
Drum n Bass
Gabba
Hard Dance
Hardcore
Hardstyle
House
Old Skool
Techno
Trance
Unclassifiable
Urban

About your earlier request for links of author names to forum: this is not as easy as I thought as the core SD functionality for forum links requires a user id, not a name and I don't intend to write new functions for each forum to just achieve this, sorry.

why do you mean by each forum? do you mean like for different forum softwares eg, vbulletin, ibp, phpbb3 etc. if so, just having the option to be used for vbulletin3 would do as its commercial software as is subdreamer. i wouldnt bother with the opensource software or do you mean ids for forum user profiles? again i dont quite understand what you mean

thanks for your help Tobias

condev1972
02-09-2008, 01:51 PM
Hi Chris,

as to the upload categories: no, there's not an option yet to e.g. specify on the section level if uploads are allowed there, but that's a good idea and I'll keep that in mind. I assume, that you moderate uploads currently and "move" them to the right section, right?

The forums thingy: it's the forum member id that is usually required to generate the forum "view profile" link. I haven't looked into it in detail if and which of the supported forum engines offer a link to a user's profile by name. But in time I'll do that to actually enhance the SD core to offer this feature.

Thanks for your feedback & input! :)

Chris Powell
02-10-2008, 12:48 AM
Hi Tobias

Ok. And yes, I have auto approve off for many reasons. Ill always approve them first.

Hmmm, I think I know what you mean....

Well it is vBSEO that turns http://www.djpassion.co.uk/forums/member.php?u=1469 into http://www.djpassion.co.uk/forums/members/manik.html

I know it would be a fair bit of work to get the downloads section to link to the vBSEO friendly profile name like http://www.djpassion.co.uk/forums/members/manik.html instead of the default vBulletin URL http://www.djpassion.co.uk/forums/member.php?u=1469 as well as make it appear as the name of the profile eg. 'Manik' next to author/dj name.

I think the way to pull the profile name is using header output. im not to clued up with coding, just read a little bit about it heh. im sure you’ll know what I mean.

I view the source code of this page http://www.djpassion.co.uk/forums/members/manik.html

And it has



--> </style> <style type="text/css" id="vbulletin_tabctrl_css">
@import url("clientscript/vbulletin_tabctrl.css?v=370b4");

</style> <script type="text/javascript" src="http://www.djpassion.co.uk/forums/clientscript/vbulletin_tabctrl.js?v=370b4"></script> <title>DJ Community - Forums - View Profile: manik</title> <script type="text/javascript"> <!--
vbphrase['server_failed_respond_try_again'] = "The server failed to respond in time. Please try again.";
vbphrase['edit_value'] = "Edit Value";


--> </script> </head> <body> <style type="text/css">

see bold !! maybe grab the profile name from there somehow. im not sure. just trying to help make the plugin better

I hope this info helps a little

ps the links in the download manager wouldnt have to link to the vbseo'd profile urls like http://www.djpassion.co.uk/forums/members/manik.html

as when you goto the default url http://www.djpassion.co.uk/forums/member.php?u=1469 you get redirected to the vbseo'd url anyway.

basically the same for the latest forum posts plugin im using on my homepage

they show like this

http://www.djpassion.co.uk/forums/showthread.php?p=13853#post13853

but when you goto it are redirected to http://www.djpassion.co.uk/forums/music-promotion-advertising/4099-16-02-08-plan-b-brixton-jakin-house-trevor-loveys-tm-juke-diesler-ed-kane.html#post13853

again hope this helps :D

Chris Powell
02-12-2008, 01:04 AM
btw Tobias i still dont know how to disable the image stuff that i mentioned any ideas ;)

condev1972
02-12-2008, 06:24 AM
Chris,
the images can't be shut off fully right now.
I'd be more concerned about the fact that images are not correctly thumbnailed that often if I understood you correctly. Do you have any System Log messages regarding "file not found" or anything from the DLM?
Regards,
Tobias

Chris Powell
02-19-2008, 03:45 AM
ok but i really need to be able to cut off the images section altogether. it'd just be less hassle for me.

not sure why some pics didnt upload for a certain member for though. pic uploaded but just appeard as a red x lol. this was just for one member. maybe down to the web browser he was using or something i dont know and cant check now because he hasnt uploaded anymore.

btw i think you need to change something for seo reasons. when here http://www.djpassion.co.uk/mix/p13_sectionid/13 and you click on the Danny Inzerillo Feb 2008 Mix link it takes you to the file but then the link is there again that takes you back to the category where the file was. i think you should change it say the file name can be clickable from the category but not when viewing the profile if you know what i mean. search engine picks this up http://www.google.co.uk/search?hl=en&q=Danny+Inzerillo+Feb+2008+Mix&btnG=Search&meta=cr%3DcountryUK%7CcountryGB could be classed as duplicate content or something you never know heh. besides it isnt right for the web user thats the main thing. perhaps change this that?

Riki
02-24-2008, 07:34 AM
Im having a very big problem with downloads not finishing and being corrupt. Is there anything I can do to prevent this from happening? Someone will download a file from me, and 1/2 way through it will act like its done, but it only downloaded part of the file, thus rendering it unusable. Im storing the file in the outside of my webroot and pointing directly to it, so its not stored in the database.
Also, is there a way possible to limit the amount of concurrent downloads a single user can download? I have a suspicion people will use a download manager and max out the connections as high as it will go, this killing my server.
Thanks!!!

Riki

Riki
02-25-2008, 02:53 AM
anyone? perhaps this question is asked in the wrong place?

condev1972
02-25-2008, 06:24 AM
Well, you asked in the right place. :) But it very much depends on the connection of the user if downloads abort. Rigt now there is no functionality to control the number of connections.

condev1972
03-09-2008, 08:51 PM
MOD Updated to 1.2.6:


Better compatibility on windows platform
Fixes for admin upload processing (filesystem prefix)
Fixes for admin switching storage location


I have this version running on SD 2.5.0 without problems. Should there occur problems, please let me know, thanks.

condev1972
03-17-2008, 02:19 PM
MOD Updated to 1.2.7:

check for safe mode to prevent warning messages
apply chmod(0644) to images and thumbnails
corrected error URL redirecting to work with SD 2.5.x

XhUnTeR
03-17-2008, 03:40 PM
Im having a very big problem with downloads not finishing and being corrupt. Is there anything I can do to prevent this from happening? Someone will download a file from me, and 1/2 way through it will act like its done, but it only downloaded part of the file, thus rendering it unusable. Im storing the file in the outside of my webroot and pointing directly to it, so its not stored in the database.
Also, is there a way possible to limit the amount of concurrent downloads a single user can download? I have a suspicion people will use a download manager and max out the connections as high as it will go, this killing my server.
Thanks!!!

Riki

Well, you asked in the right place. :) But it very much depends on the connection of the user if downloads abort. Rigt now there is no functionality to control the number of connections.

I think corrupted downloads usually happen with Internet explorer when the connection is slow, file is big or there is a connection problem with the site, it's not related to the plugin.

about the connection maxing out, if it is the mysql connection (usually limited to 3-20 depending on your host), I remember mentioning about a "$DB->close();" that should be placed in getfile.php,
as I had a simillar experience, as long as somebody is downloading a file through getfile.php, they are keeping one connection to database open, which means if for example your servers limit is 3 , if you start 3 downloads at the same time and it takes some time for those 3 to finish, that is enough to make everything else on your site to return max connection limit error.

"$DB->close();" could be right before going to open and send the file as we dont need the database after that, plus if the download is supposed to take a long time for a user to be completed, we have made sure the database was closed already.

thomas
03-18-2008, 07:16 AM
Tobias, I have just started getting this..after your upgrade with me last night.

Database Error Notification

Invalid SQL: SELECT 1 FROM `sd_p13_access`
WHERE itemid = '5' AND
itemtype = '1' AND
(userid = OR usergroupid IN (4))

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR usergroupid IN (4))' at line 4

Error number: 1064
Date: 'Monday 17th of March 2008 09:21:15 PM
Filename: /index.php
URI (cleaned): /about/downloads

Riki
03-21-2008, 08:19 PM
Is it possible to secure an external link for a download? Currently if the file is on the server you can secure the download file very well, but is this possible to point it to another server. It would be very nice if I was able to mirror a file on another one of my webhosts but in a secure way.
Thanks!
Riki

condev1972
03-22-2008, 08:59 PM
This is a nice idea, but not available now.

condev1972
03-22-2008, 09:01 PM
DLM MOD updated to 1.2.8:

added "access permissions" selection to both "batch upload" and "batch import"
enhanced chmod'ing of files
fixed bug in "Batch Import" which resulted in no files being available if the target was the filesystem
fixed download of file versions from admin area

condev1972
03-24-2008, 04:10 PM
DLM MOD updated to 1.2.9:

fixed use of options "Show Search Header" and "Show Sort Options"
enhanced chmod'ing of thumbnails
"Batch Upload" form:
+ added "File Storage Location" selection
* fixed: now an error message is displayed if a "Section's directory"
was selected, but the directory does not yet exist
* entered data is now remembered if an error occured
* fixed issue with "author" being ignored
* fixed storing multiple selected sections
fixed issue when editing a file version and changing the file
storage location from MySQL to Filesystem
Fixed a bug when uploading single file into MySQL which could
corrupt the file (not happening with filesystem as target)
fixed downloading of MySQL stored files

Usurper
04-07-2008, 01:54 AM
Alright, I know this is the newbiest question to land in this thread, but I figure I better ask before I start cloning my DLM a dozen times.

I'm building a site with various categories. I'd like to be able to put the DLM into each of those categories and have it only display downloads FOR that category.

Is there a way to do that without cloning the DLM? Sorry if this has been asked a hundred times. There's just so many features in this mod that I can't even begin to wade through them all, and so many mentions of the DLM in the forum that I can't find a similar question by searching.

condev1972
04-07-2008, 06:02 PM
Usurper, no problem with asking. :)
The "category targeting" - as it is called in the articles plugin - is not offered in the DLM, but it's a great idea, duely noted.

thomas
04-07-2008, 11:54 PM
2nd for the category targeting!!!! :)

thenashone
04-16-2008, 03:41 PM
I love this mod! but im quite new to this and i have 1 problem, which is my site is a dark site (colour) and i am using white text within the site but!, on the drop down menu for the downloads, the text is also white and the box background thingy on the drop menu is also white so i can't see the options with in this.

is there a line of code to change the text colour or the drop box

condev1972
04-17-2008, 09:38 AM
thenashone:
this is a skin issue as it's "styles.css" should have a line for "select" tags, e.g.

select { color: #000000; }

with "color" referencing the text color, not the background color.

thenashone
04-17-2008, 09:24 PM
thenashone:
this is a skin issue as it's "styles.css" should have a line for "select" tags, e.g.

select { color: #000000; }

with "color" referencing the text color, not the background color.

Thanks so much! thats alot better. :lol::lol:
i looked through the ccs and just didnt see that!
but thank you again

condev1972
04-25-2008, 08:59 AM
DLM MOD updated to 1.3.0:

fix for potential SQL error mentioning "p13_access" table
added closing of DB before downloading file

Please upload all files of the archive to your existing Download Manager plugin folder and visit it's admin area to upgrade it.

mister999
05-30-2008, 06:40 AM
Subdreamer 2.6 + DLM1.4.2+DLM MOD 1.3.1 = error: This section is currently offline or does not exist.

thomas
05-30-2008, 08:28 AM
tobias you also need to update the plugin to reflect the wysiwyg textarea changes

condev1972
05-30-2008, 06:29 PM
mister999: if you are a licensed user, then please post on Subdreamer.com in the 2.6 support thread.

thomas: yes, I'll have to look into that this weekend, too

condev1972
05-31-2008, 09:42 AM
DLM MOD updated to 1.3.2:

* support for SD 2.6 new WYSIWYG editor display

Please upload all files of the archive to your existing Download Manager plugin folder and visit it's admin area to upgrade it.

mister999
05-31-2008, 11:06 AM
mister999: if you are a licensed user, then please post on Subdreamer.com in the 2.6 support thread.

Subdreamer 2.6 + DLM1.4.2 works well. But when i install your mod - it do not working. Sanks for help

p.s. I make update of mysql manual and all works. Your mod do not make changes in db(maybe error).

thomas
06-01-2008, 04:28 AM
Subdreamer 2.6 + DLM1.4.2 works well. But when i install your mod - it do not working. Sanks for help

p.s. I make update of mysql manual and all works. Your mod do not make changes in db(maybe error).

It sounds like you should try uploading the files to the server again and reapply the modd.

thomas
06-03-2008, 07:54 AM
This is a very small modification that could enhance the users experience, I guess you would put it under the "download now" button. If a user is downloading a PDF document, most sites & cms's would say...

http://www.recruitmentdirectory.com.au/images/get_adobe_reader.gifPDF files can be viewed in Adobe Acrobat Reader.

Images and more information here: http://www.adobe.com/misc/linking.html

So... Can we add maybe intro text? ie like we did with the register/user control plugins?

thomas
06-03-2008, 08:53 AM
Tobias I have recieved an sql error (as i have modded includes/db/mysql.php to link 3 sd sites user table) and on closer inspection p13_settings.php contains '.TABLE_PREFIX.'users can we depreciate the use of table_prefix around the place.

jennec
06-11-2008, 02:16 PM
Subdreamer 2.6 + DLM1.4.2+DLM MOD 1.3.1 = error: This section is currently offline or does not exist.

Hi I just installed this mod and I get the same error. but I am using SD 2.5.3.2. I have selected the groups I wish to be able to see my sections, and updated those sections. Including the Downloads section. but still no joy. Plus when I untick Active section it shows as ticked again when I update.

Update: I have just noticed that I am no longer able to create sections since installing this mod.

condev1972
06-11-2008, 10:52 PM
Please try to add/edit sections within Firefox 2.

jennec
06-12-2008, 01:44 PM
Afraid this make no difference. I have tried IE, Safari (on a mac), and Firefox 2 and 3.

Since I posted I tried to create a new section also and this, although it states that it has completed the creation process, does not actual create a new section.

I suspect that this might be some SQL permission thing. But am not certain about that. I know the SQL user has been granted full permissions to the SD database, but perhaps the Mod changed permission during install or something screwy just occurred.

condev1972
06-16-2008, 06:14 PM
Important Notice:
jennec kindly helped me to track down an issue with the DLM MOD, thanks! :)
In case it is not possible to add new "Sections" in the admin area, please re-download the DLM MOD archive again and upload the "p13_settings.php" and "plugmod.php" files to your server (no plugin upgrade).
Afterwards go to "CustomMOD Settings", scroll to the bottom and click on the "Reapply" button once. This will re-run the mod code to make sure the necessary table changes and new settings are in fact correct.
Then adding/editing a section should work just fine.

Vivarant
08-07-2008, 11:48 PM
I just installed the mod because i saw over at sd.com that people were having the same trouble i'm having. I am able to upload small files just fine but when i try to upload anything larger 20 - 50 mb it fails. I've changed the max allowable filesize from 2m to 200m in the php.ini and even with the mod installed i'm not having any luck. can anyone shed some light on this for me:confused:

hyperdesign
09-15-2008, 07:43 AM
whenever i try " upload file" i get this error message - see attachment

it is driving me crazy.. any help would be appreciated

thomas
10-28-2008, 04:15 PM
I was wondering if someone could add a quick modd for users to enter a email address before downloading :) tobias please :):)

Willing to pay $50 usd straight away for it to be done

thomas
11-13-2008, 06:21 AM
I was wondering if someone could add a quick modd for users to enter a email address before downloading :) tobias please :):)

Willing to pay $50 usd straight away for it to be done

Anyone interested in getting this done? I am about to post it on rentacoder.com to see if any php developer can do it.

If anyone else chips in $$ they will be provided with this modd.

"Users must submit their email address before being allowed to download the file"

condev1972
11-14-2008, 06:40 PM
Hi Thomas, contact me on Skype for this. ;)

thomas
11-14-2008, 11:30 PM
Ahh thanks tobias, might be a bit too late. I managed to get one of my coders to fix it. I will send you the changes when its done.

thomas
11-15-2008, 05:12 AM
This has been done now.

Dominic1966
11-20-2008, 07:44 PM
What would be good would be the option for me to set the DLM so downloads can only be sent to the end user's email address - hence guaranteeing the email address is real.

I'm looking at using the DLM so people can download other people's scripts and this would help to protect the copyright of any scripts that people download.

VanceWxMan
01-05-2009, 01:50 AM
How would I go about adding the sections (main downloads page) into a table? Currently the list is tightly packed together.

I have looked at downloads.php and see LOTS of code..have atempted to add some table code but I keep breaking the php file :(

Any help is appreciated.

jmchale
01-12-2009, 07:07 PM
Dear Condev1972,

I'm a new fully licensed user of Subdreamer and Download manager and applied what I believe is your latest MOD for download, though subdreamer seems to omit the endings i.e..

Component Your Version Latest Version
Subdreamer CMS 2.5.3.2 2.5.3.2HF5
Download Manager 1.4.2 1.4.2-upd4

My problem is that I only want individual users to see their individual files. This seems to work except for one glaring mistake, either on my part or yours. If you enter a valid username in the login panel, yet omit or give an incorrect passwords, the download manager continues to show files allocated to that user - it shouldn't - not unless correctly logged on. Please can you check this out and tell me whether I've done something wrong or is it the mod . Thanks very much

John Mc

Elvis67
01-13-2009, 10:37 AM
I have two Ideas for the next release of this mod!

It would be great, if the Downloads Header Guest setting could work with the wysiwyg editor. This would be great for enhance the guest header without using a cutom plugin.
Improve the File Separator Image Setting: Check if the setting entered has the allowed ending for an image. If so, give out the image. If not, simply echo out the setting itself. That would give us the possibility to ad a separator like <hr class="yourclassname" /> or something like that.
just my $ 0.02 ^_^

Elvis67
01-13-2009, 02:57 PM
While playing around with the mod a bit, I came up with another enhancement: Preventing the Version to show while nothing is entered.

The background: I have several files that have a version, others (like some pdf files) do not need any.

So here's what I did:

open up the dlcustlib.php and search for the following code block (around line 873):

if(($settings['Display Version'] == 1) && isset($file['version']))
{
$details[] = array (
"labels" => strip_tags($p13_language['version']),
"values" => $file['version'],
"coloridx" => $colorflag);
}

and change the first line to:

if(($settings['Display Version'] == 1) && isset($file['version']) && ($file['version'] != ""))

It worked pretty well for me ;)