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)