Thanks for reporting your experience.I use the customer service url generator and create a new link to the page. I then send it to my test computer and try it. I can get to the download page but when I try to download it redirects me to the membership page there is also this ...?s2member_level_req=0... in the url.
OK. So they're gaining access properly, but the download itself is failing.
It sounds to me like you're using s2Member's "Specific Post/Page Access" feature; which is NOT a part of s2Member's core functionality ( Membership management ). In other words, you've
inadvertently mixed File Downloads ( a part of Membership Level Access ) with Specific Post/Page Access.
That being said, File Downloads CAN be made to work with Specific Post/Page Access.-
How to mix File Downloads with Specific Post/Page Access:On the Post or Page that you're selling access to, whenever you create your download links, you will need to apply "Download Keys". You will find full instructions in your Dashboard, under:
s2Member -> Download Options -> Advanced Download Restrictions---------------------------------------------------------------------------------------------------------
Advanced Download Restrictions ( optional, for greater flexibility )By default, s2Member uses your Basic Download Restrictions, which work with Membership Level Access. However, you can force s2Member to allow file downloads, using an extra query string parameter ( s2member_file_download_key ). A file download `Key` is passed through this parameter, and it tells s2Member to allow the download of this particular file, regardless of Membership Level; and WITHOUT checking any Basic Restrictions, that you may, or may not, have configured.
- Code: Select all
http://www.example.com/?s2member_file_download=example-file.zip&s2member_file_download_key=<?php echo s2member_file_download_key("example-file.zip"); ?>
The function `
s2member_file_download_key()`, is part of the s2Member API. It produces a time-sensitive File Download Key that is unique to each and every visitor. 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. This makes it possible for you to create links on your site, which provide access to protected file downloads; and without having to worry about one visitor sharing their link with another. So let's take a quick look at what
s2member_file_download_key() actually produces.
s2member_file_download_key ("example-file.zip") = a site-specific hash of s2member_xencrypt(date("Y-m-d") . $_SERVER["REMOTE_ADDR"] . $_SERVER["HTTP_USER_AGENT"] . $file)When
s2member_file_download_key = a valid Key, it works independently from Member Level Access. That is, a visitor does NOT have to be logged in to receive access; they just need a valid Key. Using this advanced technique, you could extend s2Member's file protection routines, or even combine them with Specific Post/Page Access, and more. The possibilities are limitless really.