Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
*new* Download Manager plugin
#1
Brick 
Hi there !

The last days ive worked on a download manager for getsimple. Today i finished the first production - ready version. Smile

Heres the link to extend

A preview of the generated download button can be found on my GetSimple plugins page here.
The used shortcode to display the buttons :
Code:
(% dlm filename.zip button %)

And here some infos about the plugin :

Installation instructions :

After activation of this plugin there will be generated a new template file in your current themes root directory called "download_manager.php" .

Go to pages tab and create a new page. Open the page options and enter download as page title. Next choose "download_manager.php" as page template and enter download as custom url (slug). Do not add this page to the menu or enter some meta informations. Save this page.

Now click on the files tab and hit download manager on the right sidebar. In the settings tab you can define your preferred settings. In the logs tab you can view the download logs and some stats about your file system.

When you move to your file management menu you will notice that there is a new directory called "downloadmanager". This directory is the download managers root path. All files in this directory and its subdirectorys will be indexed by the download manager. You can create as many sub-folders as you want to sort your files by category`s.

All files in download manager´s root and subdirectorys can be accessed by adding links like :
Code:
download?f=filename.xxx
- if you have fancy urls enabled. If you not have fancy urls enabled use :
Code:
index.php?id=download&f=filename.xxx
instead.
This way no one will know the full path of your files and of your download_manager.php.

Short-codes :

Download manager provides some short-codes which can be accessed by
Code:
(% dlm filename.xxx parameter %)

Code:
(% dlm filename.xxx button %)
generates a full styled and shiny Smile button with all informations about that file like file-size and download count.

Code:
(% dlm filename.xxx link %)
echoes out a text link with the file-name.

Code:
(% dlm filename.xxx size %)
echoes out the file-size.

Code:
(% dlm filename.xxx count %)
echoes out the number of times the file was downloaded.

Code:
(% dlm totalfiles %)
echoes the number of all files which are available for download.

Code:
(% dlm totalcount %)
echoes the overall download count.

Code:
(% dlm totalsizes %)
echoes the size of all files which are available for download.

Make sure that your editor don´t places some  ´s into your short-codes!

Code:
Version : 1.0.4

== Changelog ==

v. 1.0.4

* Added: Redo function
* Added: Restore defaults function
* Added: Information page
* Added: More Short-codes
* Fixed: Some smaller bugs

v. 1.0.3

* Added: Table sorter to logs page
* Added: Short-code for download button
* Added: Short-codes for each file
* Moved: Download script to themes root
* Fixed: More bugs

v. 1.0.2

* Added: File stats to logs page
* Added: Logs admin page
* Added: Download counts
* Added: Download logging
* Fixed: Some bugs

v. 1.0.1

* Added: Settings pages
* Added: Admin menu -> files tab
* Added: English language file

v. 1.0.0

* First stable version

I hope you enjoy it Smile

Please report any bugs or feature requests in this thread ! Thanks !
Reply
#2
Fatal error: Undefined class constant 'SKIP_DOTS' in /home/*************/plugins/mod1fy_dlmanager/lib/mod1fy_dlmanageradmindisplay.class.php on line 185
SYSTEM INFORMATION
Reply
#3
Hi Oleg ! What version of PHP are you running there ?
SKIP_DOTS is found in the RecursiveDirectoryIterator class which was introduced in PHP 5.3 .
Reply
#4
you cant use SKIP DOTS
gs support 5.2+

need something like

PHP Code:
if($item->getFilename() == '.' or $item->getFilename() == '..'){
    continue;

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#5
I can change plugin requirements to PHP5.3 ?
Reply
#6
You can but you should code to match GS requirements, so all users can use your plugin
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#7
Done Smile , there is an update in Extend which fixes this compatibility issue.
Reply
#8
We like to retain compatibility on old shared hosts, and will continue to until version 4
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#9
Thanks for the quick reply. Everything works fine.
Reply
#10
(2015-01-10, 17:36:14)Oleg06 Wrote: Thanks for the quick reply. Everything works fine.

No problem, enjoy it Smile
Reply
#11
I added a translation of your plugins http://get-simple.info/extend/all_plugin_languages.php
Reply
#12
(2015-01-11, 04:09:15)Oleg06 Wrote: I added a translation of your plugins http://get-simple.info/extend/all_plugin_languages.php

Nice ! Thank you. Can i implement them into one of the next Versions ?
Reply
#13
necessarily
Reply
#14
Any way to show all the downloads in one page without having to edit them manually?
Reply
#15
Question:
Is there a way to have folks who want to receive a download, give their email addresses first?

I wanna know who is getting our stuff.


Thanks.

Homer
Reply
#16
I"m having a rookie problem.
I uploaded this plugin into a sample site on my localhost and it's fine.
Then I uploaded the plugin to my website and the none of the download codes seem to work.

Nothing shows up, but the text of the code.

Any idea what I'm doing wrong or not recognizing?

Thanks.
Reply
#17
Question 
BTW, wonderful plug-in!  Cheers.

Did find an error reported when attempting to download a .mp4 file.  Returned the following error:

Code:
Not allowed file type.

How can I allow downloading of files with extensions that may not initially be accepted?
Reply
#18
Same problem as Mark above.
I tried editing download-manager.php and added the extension but i still get "Not allowed file type."
Reply
#19
(2015-10-06, 10:38:07)inteq Wrote: Same problem as Mark above.
I tried editing download-manager.php and added the extension but i still get "Not allowed file type."

I thought it had something to do with lines 211-214 in inc/download_manager.php
PHP Code:
if (!array_key_exists($fext$allowed_ext)) {
    die(
$data->msgnotallftype);

Changing that line does nothing..
Same, I did text search over entire GS dir, added it as extension, and it still doesn't work... Eh? I'm clueless
Reply
#20
Your plugin after activate create folder /data/uploads/downloadmanager/

but when I use 
<?php echo download_count(basename(return_special_field('work_file'))) ?>
in my template ... 
plugin create folder /data/uploads/downloadmanager/ up to root folder ...

please fix it
Reply
#21
With Download Manager plugin the site began to be loaded in 3-4 times longer
If to disconnect that speed again becomes fast
Reply
#22
Hi,
I am trying to install/use this plugin but have some problems with the naming of my files.

The plugin is indexing everything and tries to just use the filename to create the reference. In my case I will have a lot of files with identical names like README.txt in different subdirectories.

I tested just by putting test1.txt in two directores dir-1 and dir-2. When I create some links like below, the first line give the file from dir-1 and the second line give the file from dir-2.

Code:
<a href="download?f=test1.txt">download?f=test1.txt</a>
<a href="download?f=dir-2/test1.txt">download?f=dir-2/test1.txt</a>
The first link is "fragile", if I create another directory called dir (which comes before dir-1 and dir-2) and put another test1.txt file in there, then the first link will deliver this one...
Another problem is that all the "shortcuts" do not work if I specifiy the name together with a directory
Code:
(% dlm test1.txt button %)
This will work and create a download link, but this
Code:
(% dlm dir-2/test1.txt link %)
will just be copied in the page... I have tested with different qoutes around the name, also with a slash and a backslash, can't get it to work...

Renaming all the files to have unique name is NOT an option...

Last reaction / login from the author here was around January 2015... Sad I don't know I there will be any feedback...

I might still use the direct method (and always specify the path), but the shortcuts seems to be quite handy and I would like to use them.

I will continue looking for other solutions and are open for suggestions.

Best regards,
 Andreas.
Reply
#23
Hi there,

I want to list all the files uploaded to the download-manager-folder (and maybe subfolders) on a page as download links. How to do that? I thought that would be the number 1 use of this plugin but the shortcodes don't seem to confirm this.

Many thanks for your support!
Reply
#24
(2019-02-06, 00:47:32)tarzan Wrote: Hi there,

I want to list all the files uploaded to the download-manager-folder (and maybe subfolders) on a page as download links. How to do that? I thought that would be the number 1 use of this plugin but the shortcodes don't seem to confirm this.

Many thanks for your support!

There is a plugin which will do that, (and only that) - Simple Dir Listing
http://get-simple.info/extend/plugin/sim...ting/1069/
Reply




Users browsing this thread: 1 Guest(s)