2015-01-04, 07:25:28
(This post was last modified: 2015-01-05, 00:01:52 by dennis_maassen.)
Hi there !
The last days ive worked on a download manager for getsimple. Today i finished the first production - ready version.
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 :
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 :
- if you have fancy urls enabled. If you not have fancy urls enabled use :
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
generates a full styled and shiny button with all informations about that file like file-size and download count.
echoes out a text link with the file-name.
echoes out the file-size.
echoes out the number of times the file was downloaded.
echoes the number of all files which are available for download.
echoes the overall download count.
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!
I hope you enjoy it
Please report any bugs or feature requests in this thread ! Thanks !
The last days ive worked on a download manager for getsimple. Today i finished the first production - ready version.
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
Code:
index.php?id=download&f=filename.xxx
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 %)
Code:
(% dlm filename.xxx link %)
Code:
(% dlm filename.xxx size %)
Code:
(% dlm filename.xxx count %)
Code:
(% dlm totalfiles %)
Code:
(% dlm totalcount %)
Code:
(% dlm totalsizes %)
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
Please report any bugs or feature requests in this thread ! Thanks !