User Downloads
WordPress – User Downloads | CodeCanyon
User Downloads his title this type of WordPress/Utilities This time I will review,made by R3dRidl3, WordPress/Utilities is sold at a price of $15 in themeforest.
download // downloads // user // user attachemnt // user downloads // user files // user restricted downloads //
Created | 20 December 13 |
Last Update | 20 December 13 |
Compatible Browsers | IE6, IE7, IE8, IE9, IE10, IE11, Firefox, Safari, Opera, Chrome |
Software Version | WordPress 3.7, WordPress 3.6, WordPress 3.5 |
High Resolution | No |
Files Included | PHP |
More Info…User Downloads ..
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):
$userFiles = get_user_specific_downloads_as_array(); foreach($userFiles as $userdownload) { echo '<h2>'.$userdownload['title'].'</h2>'; echo $userdownload['content']; echo '<ul>'; foreach($userdownload['files'] as $file) { echo '<li>'; $url = explode('/',$file['user_download_file']['url']); $encryptedurl = user_specific_downloads_encrypt_decrypt('encrypt',$url[8]); $encryptedurl = rawurlencode($encryptedurl); echo .= '<a href="'.plugins_url().'/user-downloads/download.php?file='.$encryptedurl.'">'.$file['user_download_file']['title'].'</a><br />'; echo .= '<em>'.$file['file']['description'].'</em>'; echo '</li>'; } echo '</ul>'; }- If you have any questions (technical or not) I will be able to help you.
Related produck This user:R3dRidl3
0 comments:
Post a Comment