Page 1 of 1

Feature Request: Protect Downloads by Level

PostPosted: November 17th, 2010, 1:14 pm
by martonic
Hi Jason,

My client has many downloadable files that need protection. They have some files that level1 and above can download (but not visitors, or guests who have only registered but not paid) - and other files that only higher paying levels should be allowed to download.

However, s2Member does not support this option at present.

It would be a great feature to add. :mrgreen:

Many thanks as always, Marty

Re: Feature Request: Protect Downloads by Level

PostPosted: November 17th, 2010, 1:41 pm
by crushthenet
Actually, I believe it does Marty.

Have you looked into the API/Scripting section?

It's not too difficult to create a custom Page Template in your WordPress theme and input something like this. Or you can use a plugin like Exec-PHP...

http://wordpress.org/extend/plugins/exec-php/

Code: Select all
<?php if (current_user_is("s2member_level4")){ ?>
    Some premium content for Level 4 Members.
<?php } else if (current_user_is("s2member_level3")){ ?>
    Some premium content for Level 3 Members.
<?php } else if (current_user_is("s2member_level2")){ ?>
    Some premium content for Level 2 Members.
<?php } else if (current_user_is("s2member_level1")){ ?>
    Some premium content for Level 1 Members.
<?php } else if (current_user_is("s2member_level0")){ ?>
    Some content for Free Subscribers.
<?php } else { ?>
    Some public content.
<?php } ?>


You can even use shortcode if you want.......

Code: Select all
[s2If current_user_is(s2member_level1)]
    Content for Members at exactly Level# 1, on this Blog.
[/s2If]

Re: Feature Request: Protect Downloads by Level

PostPosted: November 17th, 2010, 2:01 pm
by martonic
Hi crushthenet, and thank you for your fast and friendly reply!

:arrow: However, what you've got there deals with CONTENT - not with DOWNLOADABLE FILES which is what my client needs to protect.

True, we can avoid displaying LINKS to the downloadable files to the wrong level of membership - and that's what we're doing now, as a half-measure - but that will not stop them from downloading the files, if they can guess the link locations. They could also learn the locations by temporarily purchasing a higher membership level.

We could make each link horribly obscure, but that's a nuisance for legitimate users - and a nightmare for file management. :cry:

Re: Feature Request: Protect Downloads by Level

PostPosted: November 17th, 2010, 2:31 pm
by crushthenet
I see what you mean.

I was looking at the Advanced Download Restrictions but that just creates a temporary key, you can still see the file name when hovering the link.

Hmmm, interesting stuff, I'll keep digging around to see if I can come up with a solution. :)

Ya never know......

Otherwise it's a great feature request! Would be nice to have that functionality.