PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
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
Let's say that one way or another I appended the key to the 100 files links. So I go and make a PayPal button, and pick up protected for 3 days. Problem the post will be protected for three days but all the links inside would be predicted for 24 hours. There is a contradiction here!
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.
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.
Jason Caldwell wrote:One trick you can use though ( at your own risk ).
<?php echo s2member_download_key("file.zip", "forever"); ?>
The Key never expires, and is NOT tied to any specific User.
<?php echo s2member_download_key($file, "ip-forever"); ?>
$files = array (
'book.pdf',
'audio.mp3',
'video.flv',
);
foreach ($files as $file)
$keys[$file] = s2member_file_download_key($file);
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests