wpsharks / s2member

s2Member® Framework (membership management for WordPress®).
64 stars 36 forks source link

protect post older than x days #112

Closed siamnews closed 9 years ago

siamnews commented 10 years ago

This is a feature you will often see in newspaper/magazine : a story older than 30 or 40 days is protected. Would be nice to have it.

thx

oksodavid commented 10 years ago

+1, a great technique to encourage subscriptions.

jaswrks commented 10 years ago

Great idea! I'll pass this along so we can discuss it.

jaswrks commented 10 years ago

@raamdev @clavaque Thoughts on this?

clavaque commented 10 years ago

Content dripping would already do this (WP Admin -> s2Member -> Scripting -> Content Dripping). That said, it wouldn't be applied by default to all posts without editing the template to wrap it in a conditional, or some customization that manages to make it a default.

To make it simpler it'd need a GUI in WP Admin. Where would you add this? In the Restrictions page or as a setting in the current Content Dripping panel?

Would it need to be able to deal with different values depending on the user's role/capabilities? (I'm sure that'll be the next request if we don't add it from the beginning.)

Would it need to be able to deal with different times or just one? When it was published or when the user first had access to it? Would it be affected by changes in the membership (e.g. ends it, doesn't pay for a while, and starts it again at a later time).

siamnews commented 10 years ago

I agree,

time related content might be difficult to figure out.

How about a "the economist" or "NYT" solution : you can read up to x articles for free, and then you have to register ? (cookie based I presume).

_Boris Sullivan_Editor in chief Thailand Business News

thailand-business-news.com http://www.thailand-business-news.com/ thailand-classifieds http://www.thailand-classifieds.net/ http://thailande-fr.com/thailandchina.net http://www.thailandchina.net/ siamnews.net http://www.siamnews.net/ Thailand Business Directory http://www.thailandbusinessdirectory.net Bangkok Jobs http://www.jobsbangkok.net

_HK Office_Siam News Network http://www.siamnewsnetwork.net

Room 2611-12, CC Wu Building, 302-308 Hennessy Road, Wanchai, Hong Kong Tel : +852 8199 01 01

On Wed, May 7, 2014 at 4:52 PM, clavaque notifications@github.com wrote:

Content dripping would already do this (WP Admin -> s2Member -> Scripting -> Content Dripping). That said, it wouldn't be applied by default to all posts without editing the template to wrap it in a conditional, or some customization that manages to make it a default.

To make it simpler it'd need a GUI in WP Admin. Where would you add this? In the Restrictions page or as a setting in the current Content Dripping panel?

Would it need to be able to deal with different values depending on the user's role/capabilities? (I'm sure that'll be the next request if we don't add it from the beginning.)

Would it need to be able to deal with two different times or just one? When it was published or when the user first had access to it? Would it be affected by changes in the membership (e.g. ends it, doesn't pay for a while, and starts it again at a later time).

— Reply to this email directly or view it on GitHubhttps://github.com/WebSharks/s2Member/issues/112#issuecomment-42408578 .

clavaque commented 10 years ago

Then that one isn't based on time but uses, and a counter per user needs to be kept.

siamnews commented 10 years ago

Yes

like I said you can see this live on http://www.economist.com/ . If you try to access more than 3 articles, you will be asked to register.

_Boris Sullivan_Editor in chief Thailand Business News

thailand-business-news.com http://www.thailand-business-news.com/ thailand-classifieds http://www.thailand-classifieds.net/ http://thailande-fr.com/thailandchina.net http://www.thailandchina.net/ siamnews.net http://www.siamnews.net/ Thailand Business Directory http://www.thailandbusinessdirectory.net Bangkok Jobs http://www.jobsbangkok.net

_HK Office_Siam News Network http://www.siamnewsnetwork.net

Room 2611-12, CC Wu Building, 302-308 Hennessy Road, Wanchai, Hong Kong Tel : +852 8199 01 01

On Fri, May 9, 2014 at 11:34 AM, clavaque notifications@github.com wrote:

Then that one isn't based on time but uses, and a counter per user needs to be kept.

— Reply to this email directly or view it on GitHubhttps://github.com/WebSharks/s2Member/issues/112#issuecomment-42632754 .

clavaque commented 10 years ago

Okay, but that'd probably not really be a kind of content drip, which is time based in some way, as far as I understand it. But thanks for the input, I took note of your comment because I do see that it could be desirable and another way to limit access to content. Thanks!

siamnews commented 10 years ago

yes, I agree it's a new topic

_Boris Sullivan_Editor in chief Thailand Business News

thailand-business-news.com http://www.thailand-business-news.com/ thailand-classifieds http://www.thailand-classifieds.net/ http://thailande-fr.com/thailandchina.net http://www.thailandchina.net/ siamnews.net http://www.siamnews.net/ Thailand Business Directory http://www.thailandbusinessdirectory.net Bangkok Jobs http://www.jobsbangkok.net

_HK Office_Siam News Network http://www.siamnewsnetwork.net

Room 2611-12, CC Wu Building, 302-308 Hennessy Road, Wanchai, Hong Kong Tel : +852 8199 01 01

On Fri, May 9, 2014 at 12:25 PM, clavaque notifications@github.com wrote:

Okay, but that'd probably not really be a kind of content drip, which is time based in some way, as far as I understand it. But thanks for the input, I took note of your comment because I do see that it could be desirable and another way to limit access to content. Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/WebSharks/s2Member/issues/112#issuecomment-42634510 .

siamnews commented 10 years ago

Hi David,

thanks for the new tag %%POST_EXCERPT%%. Would is be possible to restrict display to post only : when used on a protected page, is shows the tag (no excerpt available in page I guess)....

example here : http://www.thailande-fr.com/mon-compte

Thx

BS

raamdev commented 10 years ago

@siamnews You'll want to surround your %%POST_EXCERPT%% replacement tag with an [s2If has_excerpt()][/s2If] conditional, so that you only show the %%POST_EXCERPT%% if the post actually has an excerpt.

Something like this:

[s2MOP]
You attempted to access members-only content. 
Post title: %%POST_TITLE%% 
    [s2If has_excerpt()]
        Post excerpt: %%POST_EXCERPT%%
    [/s2If]
[/s2MOP]

In the future, please open new support requests using the Support Center, as GitHub is for reporting bugs and requesting new features.

siamnews commented 10 years ago

Thanks, will do

BS

_Boris Sullivan_Editor in chief Thailand Business News

thailand-business-news.com http://www.thailand-business-news.com/ thailand-classifieds http://www.thailand-classifieds.net/ http://thailande-fr.com/thailandchina.net http://www.thailandchina.net/ siamnews.net http://www.siamnews.net/ Thailand Business Directory http://www.thailandbusinessdirectory.net Bangkok Jobs http://www.jobsbangkok.net

_HK Office_Siam News Network http://www.siamnewsnetwork.net

Room 2611-12, CC Wu Building, 302-308 Hennessy Road, Wanchai, Hong Kong Tel : +852 8199 01 01

On Fri, May 16, 2014 at 2:11 AM, Raam Dev notifications@github.com wrote:

@siamnews https://github.com/siamnews You'll want to surround your %%POST_EXCERPT%% replacement tag with an [s2If has_excerpt()][/s2If]conditional, so that you only show the %%POST_EXCERPT%% if the post actually has an excerpt.

Something like this:

[s2MOP] You attempted to access members-only content. Post title: %%POST_TITLE%% [s2If has_excerpt()] Post excerpt: %%POST_EXCERPT%% [/s2If] [/s2MOP]

In the future, please open new support requests using the Support Centerhttps://www.websharks-inc.com/support/?product=s2member, as GitHub is for reporting bugs and requesting new features.

— Reply to this email directly or view it on GitHubhttps://github.com/WebSharks/s2Member/issues/112#issuecomment-43252367 .

emanuelevenditti commented 10 years ago

Great feature.

"To make it simpler it'd need a GUI in WP Admin. Where would you add this? In the Restrictions page or as a setting in the current Content Dripping panel?"

How about having it as a general setting for Memberships and Packages? That way one could set a membership type to only access the last 5 articles, or only what was published during the first X days of user's membership (to incentive upgrades etc).

That'd be a start, then yes, add the feature to individual posts and pages, in the Dripping section, I think.

raamdev commented 9 years ago

I've gathered ideas from this GitHub issue to apply to future s2Member development cycles. I'm going to close this issue here, but I just wanted to thank everyone for their ideas and input here!