hakpersson
Forum Replies Created
-
Forum: Plugins
In reply to: [Delightful Downloads] Multiple Files, Feature RequestSorry, forgot to paste in the link to the library by Sindre Sorhus I′m using. Here′s the link: https://github.com/sindresorhus/multi-download
Forum: Plugins
In reply to: [Delightful Downloads] Multiple Files, Feature RequestOk, no problems I understand. Since the site I′m currently building works around streaming (two) mp3-files this would mean using up more disk space than necessary.
Regarding starting one download after the other I′ve solved this issue already on my site with a bit of jQuery. But as you say it might be difficult to get this working on all types of WordPress installs.
Thanx! Below I′ve pasted in the snippets I use for download of File_A, then File_B. Someone might find it useful.
jQuery
if ($('.download').length) { $('.download').on('click', function () { var files = $(this).data('files').split(' '); multiDownload(files); }); }
.htaccess
##Force Download of files <FilesMatch "\.(?i:mp3)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch>
html/php
<button class="download" data-files="File_A, File_B">Download files</button>
Forum: Plugins
In reply to: [Media Vault] Restrict only for subscribersTo start of with, very nice plugin an a much needed feature. As Spence states above it would be a great if the plugin could evolve/or have a write up on a “dynamic permission feature”.
For example if you have a scheduled post with 1 or more attached images/files. And these files are protected (only visible for lets say Admin) as long as the post is not published. Then when the post is for example published the files are automatically moved from “_mediavault” and accessible to whatever permission you choose.
Something that could be done?
/All the best!
Forum: Plugins
In reply to: [Theme My Login] Support for avatarYou can do the same with good results (plus a couple of minor tweaks) using: https://www.ads-software.com/plugins/wp-user-avatar/
Second that. Just discovered the same mishap, affects all “password reset”.