$files = array (
'book.pdf',
'audio.mp3',
'video.flv',
);
foreach ($files as $file)
$keys[$file] = s2member_file_download_key($file);
Statistics: Posted by Cristián Lávaque — May 28th, 2011, 12:28 am
Statistics: Posted by guardian — May 27th, 2011, 8:29 am
Statistics: Posted by Cristián Lávaque — May 26th, 2011, 9:33 pm
<?php echo s2member_download_key($file, "ip-forever"); ?>
Statistics: Posted by Jason Caldwell — May 26th, 2011, 7:51 pm
Statistics: Posted by Cristián Lávaque — May 26th, 2011, 5:43 pm
Why not offering somewhere an option that will override all links to files from within the protected folder. I don't know where you could put that string, that piece of code, name, or what ever, but in a few words using that snippet would mean that everything on that specific post will override all different members levels programming, but will still able to hide the location of the files.
Statistics: Posted by Cristián Lávaque — May 26th, 2011, 5:36 pm
Gotchya. Well, one way or another, access to the files has to be authenticated. So if they are logged into your site as a Member, this is controlled by s2Member's "Basic Download Restrictions" in your Dashboard. If you need to grant access to these files, which are going to be given out to non-Members ( i.e. unauthenticated Users ), then the links must expire in a short time, otherwise there is a risk of someone sharing their download links with someone else.
Some brainstorming
Why not offering somewhere an option that will override all links to files from within the protected folder. I don't know where you could put that string, that piece of code, name, or what ever, but in a few words using that snippet would mean that everything on that specific post will override all different members levels programming, but will still able to hide the location of the files.
Statistics: Posted by Jason Caldwell — May 26th, 2011, 5:21 pm
Statistics: Posted by guardian — May 26th, 2011, 10:19 am
Statistics: Posted by Jason Caldwell — May 25th, 2011, 7:47 pm
Each Key it produces ( at the time it is produced ), will be valid for the current day, and only for a specific IP address and User-Agent string; as detected by s2Member
Statistics: Posted by guardian — May 24th, 2011, 8:53 pm
Statistics: Posted by Cristián Lávaque — May 24th, 2011, 8:37 pm
Statistics: Posted by guardian — May 24th, 2011, 7:46 pm
Statistics: Posted by Cristián Lávaque — May 24th, 2011, 12:50 pm
Statistics: Posted by guardian — May 24th, 2011, 12:40 pm
Statistics: Posted by guardian — May 24th, 2011, 8:13 am