Page 1 of 1

Restrict downloads only to a role

PostPosted: November 2nd, 2011, 6:50 am
by carblanco
Hi all,

I'm running a website with some free downloads and some others for members only.
I have some levels of membership: level0 (suscribers), level1, etc.

How can I restrict downloads only for level0 members but keeping all the free downloads open?
I mean:
- visitors can access only to free downloads
- level0 (subscriber so it's a member) can access only to free downloads
- level1+ can access all downloads

Thanks.

Regards.

Re: Restrict downloads only to a role

PostPosted: November 2nd, 2011, 4:39 pm
by Cristián Lávaque
So you want to have two groups of files to download:

- One that everyone can download: visitor, free member, and paid member.
- One that only paid members can download.

Is that it?

Re: Restrict downloads only to a role

PostPosted: November 3rd, 2011, 2:25 am
by carblanco
Yes, that is.
In fact visitors and free members must have the same download privileges.
Paid members have more privileges.

Re: Restrict downloads only to a role

PostPosted: November 3rd, 2011, 9:25 pm
by Cristián Lávaque
I see.

Then the files for visitor and free member would be in a common directory, not protected by s2Member, while the files for Level 1 members would be in the directory protected by s2Member as described in the documentation. WP Admin -> s2Member -> Download Options

Does that help?

Re: Restrict downloads only to a role

PostPosted: November 4th, 2011, 4:27 am
by carblanco
No at all because I'm using another plugin to manage downloads (download monitor) so I have no files under the s2member directory.

And using the
File Downloads ( Level #0 Or Higher ):
X every Y day(s).
Only this many unique downloads will be permitted every X day(s), at Level #0 or higher.
* To allow UNLIMITED downloads, use: 999999999 ( i.e. 999999999 = unlimited ).

? Or it only affects to s2member folder?

Re: Restrict downloads only to a role

PostPosted: November 5th, 2011, 8:48 pm
by Cristián Lávaque
s2Member download protection only affects the dir s2Member uses for that. By default it's /wp-content/plugins/s2member-files/ but Jason posted here a hack to change the download protection dir: viewtopic.php?f=36&t=2729

I hope that helps. :)