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™

Feature Request: Protect Downloads by Level

s2Member Plugin. A Membership plugin for WordPress®.

Feature Request: Protect Downloads by Level

Postby martonic » November 17th, 2010, 1:14 pm

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
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Feature Request: Protect Downloads by Level

Postby crushthenet » November 17th, 2010, 1:41 pm

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]
User avatar
crushthenet
Registered User
Registered User
 
Posts: 63
Joined: November 1, 2010

Re: Feature Request: Protect Downloads by Level

Postby martonic » November 17th, 2010, 2:01 pm

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:
User avatar
martonic
Experienced User
Experienced User
 
Posts: 70
Joined: July 14, 2010

Re: Feature Request: Protect Downloads by Level

Postby crushthenet » November 17th, 2010, 2:31 pm

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.
User avatar
crushthenet
Registered User
Registered User
 
Posts: 63
Joined: November 1, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 3 guests

cron