CodeCanyon User Downloads 6418274

User Downloads

CodeCanyon User Downloads 6418274
Plugin \ Utilities
Downloads \ Download \ Specific \ Encryptedurl \ Expiration \ Userdownload

Plugin - User Downloads 6418274 by R3dRidl3 @ CodeCanyon

Plugin \ Utilities

Features

- Restrict files to specific user

- Now with expiration date!

- List files assigned to specific user

- All files-URL are encrypted.

- 100% safe restricted files

Todo

- Add counter to downloads and restriction on how many times it can be downloaded.

- Create more settings like, what if file is expired.

Usage

- Upload the plugin

- Enable the plugin.

- In the WordPress menu you now will see “User Downloads” added. If you go to “User Downloads” => “Settings” you can set your encryption keys.

- Than you can create User Downloads wich goes as follows.

- Create a User Download.

- Enter a title

- Enter some content

- Select to wich user the to be uploaded files should be restricted

- Upload files for this specific user

- Publish the User Download

- I created a function to get all files that are belongs to the logged in user. The functions is get_user_specific_downloads_as_array. With this you can do anything you want to. Let me give you an example of how to list all files of one user per User Download (per post).

-
$files = '';
$userFiles = get_user_specific_downloads_as_array();
foreach($userFiles as $userdownload)
{
$files .= '<h2>'.$userdownload['title'].'</h2>';
$files .= $userdownload['content'];
$files .= '<ul>';
foreach($userdownload['files'] as $file)
{
$files .= '<li>';
$url = explode('/',$file['user_download_file']['url']);
$encryptedurl = user_specific_downloads_encrypt_decrypt('encrypt',$url[8]);
$encryptedurl = rawurlencode($encryptedurl);
if(strtotime($file['file_expiration_user_download_file']) < time() && strtotime($file['file_expiration_user_download_file']) != '')
{
$files .= '<a href="http://codecanyon.net/item/user-downloads/#" onClick="alert('This file as expired.'); return false;">'.$file['user_download_file']['title'].'</a><br />';
}
else
{
$files .= '<a href="http://codecanyon.net/'.plugins_url().'/user-downloads/download.php?file='.$encryptedurl.'">'.$file['user_download_file']['title'].'</a><br />';
}
$files .= '<em>'.$file['file']['description'].'</em>';
$files .= '</li>';
}
$files .= '</ul>';
}
echo $files;

- If you have any questions (technical or not) I will be able to help you.

Changelog
20-1-2015

- Added support for translations (multilanguage).

29-7-2014

- Added ability to select multiple users.

10-7-2014

- Fixed bug when not setting the expire date.

2-6-2014

- Improved encryption of files.

3-3-2014

- Added shortcode.

25-2-2014

- Added expiration date for downloads.

- Fixed bug in settings panel.

- Added support for subdomains.

- Added support for Windows Servers.

26-12-2013

Last Update: 21 January 15; High Resolution: No; Compatible Browsers: IE6, IE7, IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome; Files Included: PHP; Software Version: WordPress 4.1, WordPress 4.0, WordPress 3.9, WordPress 3.8, WordPress 3.7, WordPress 3.6, WordPress 3.5.

All in One FAQ; Google Short URL Statistics; Folium - Responsive Ajax Portfolio; WP Teamer; WP Extended Meta Tags; WP Nav Menu Breadcrumbs; Responsive FAQ Accordion.

Keywords: download, downloads, user, user attachemnt, user downloads, user files, user restricted downloads.

Comments:

Name:*
E-Mail:*
Add Comments:
Enter Code: *