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™

Restrict downloads only to a role

s2Member Plugin. A Membership plugin for WordPress®.

Restrict downloads only to a role

Postby carblanco » November 2nd, 2011, 6:50 am

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.
User avatar
carblanco
Registered User
Registered User
 
Posts: 39
Joined: May 4, 2011

Re: Restrict downloads only to a role

Postby Cristián Lávaque » November 2nd, 2011, 4:39 pm

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?
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: Restrict downloads only to a role

Postby carblanco » November 3rd, 2011, 2:25 am

Yes, that is.
In fact visitors and free members must have the same download privileges.
Paid members have more privileges.
User avatar
carblanco
Registered User
Registered User
 
Posts: 39
Joined: May 4, 2011

Re: Restrict downloads only to a role

Postby Cristián Lávaque » November 3rd, 2011, 9:25 pm

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?
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: Restrict downloads only to a role

Postby carblanco » November 4th, 2011, 4:27 am

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?
User avatar
carblanco
Registered User
Registered User
 
Posts: 39
Joined: May 4, 2011

Re: Restrict downloads only to a role

Postby Cristián Lávaque » November 5th, 2011, 8:48 pm

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. :)
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: Yahoo [Bot] and 1 guest

cron