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™

Download protection in protected page

s2Member Plugin. A Membership plugin for WordPress®.

Download protection in protected page

Postby sujaypawar » April 28th, 2011, 9:05 am

Thank you very much for this AWESOME plugin.

I'm haveing one issue with Specific Post/Page Access Restrictions. I want to keep some files for download on this restricted page. Is there any way those files will be protected? e.g. If someone pastes the URL of the file location directly in his browser, it should not work.
User avatar
sujaypawar
Registered User
Registered User
 
Posts: 13
Joined: April 28, 2011

Re: Download protection in protected page

Postby Cristián Lávaque » April 28th, 2011, 11:58 am

I'm very glad you're liking s2Member!

You can protect file downloads using s2Member's download options WP Admin -> s2Member -> Download Options. Read the documentation there and search the forum if you're not sure, this has been covered a few times and maybe you'll find quick what you need.

Let me know if that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Is there any way we can protect files on specific restri

Postby sujaypawar » April 29th, 2011, 6:38 am

Here is my question with more details -

Re: Is there any way we can protect "files for download" on specific restricted pages?

I want to keep some files for download on the SPECIFIC RESTRICTED PAGE (not on pages for regular members). Is there any way those files will be protected? e.g. If someone pastes the URL of the file location directly in his browser, it should not work.

I know, s2member provides excellent features for File Download Options, but they are for members, correct?

Is there any way we can protect files on specific restricted pages as well?

Thank you in advance.
User avatar
sujaypawar
Registered User
Registered User
 
Posts: 13
Joined: April 28, 2011

Re: Download protection in protected page

Postby Cristián Lávaque » April 29th, 2011, 11:22 am

I suggest you look at WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Download protection in protected page

Postby sujaypawar » April 29th, 2011, 12:18 pm

Thank you for replying! I think I've reached nearer with with some confusion.

I have added the file merchants.txt on FTP location - wp-content/plugins/s2member-files

now should I link that file with link below?

Code: Select all
http://www.domainname.com/?s2member_file_download=merchants.txt&s2member_file_download_key=<?php echo s2member_file_download_key("merchants.txt"); ?>


Would that allow non registered users to download that file as well?

Thanks in advance.
User avatar
sujaypawar
Registered User
Registered User
 
Posts: 13
Joined: April 28, 2011

Re: Download protection in protected page

Postby Cristián Lávaque » April 29th, 2011, 1:06 pm

I'm pretty sure you don't need the account for that kind of download protection. This is from the docuementation of that feature:

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 above.


Just do a simple test: Configure the file for download as explained there, post the link in a public page in your blog, log out of your account and try to download the file from that link.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Download protection in protected page

Postby sujaypawar » April 29th, 2011, 2:45 pm

RE: Just do a simple test: Configure the file for download as explained there, post the link in a public page in your blog, log out of your account and try to download the file from that link.

this is what I intend to do, however I'm confused.

1. which folder should I keep the file in?
2. how should I link that file?

if I put the file "merchants.txt" in folder - wp-content/plugins/s2member-files

how should I link it from the public page? could you please give me an example which link should be used?


i.e. http://www.domainname.com/?s2member_fil ... nload_key=<?php echo s2member_file_download_key("merchants.txt"); ?>
User avatar
sujaypawar
Registered User
Registered User
 
Posts: 13
Joined: April 28, 2011

Re: Download protection in protected page

Postby sujaypawar » April 29th, 2011, 2:47 pm

I just need to know how the file "merchants.txt" in folder "wp-content/plugins/s2member-files" should be linked using key parameters?

an example would be great.
User avatar
sujaypawar
Registered User
Registered User
 
Posts: 13
Joined: April 28, 2011

Re: Download protection in protected page

Postby Cristián Lávaque » April 29th, 2011, 3:07 pm

The same documentation has an example too. WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions ;)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Download protection in protected page

Postby Cristián Lávaque » April 29th, 2011, 3:09 pm

Actually, at the end of its documentation, it also says:

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron