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™

Protecting content in a post

s2Member Plugin. A Membership plugin for WordPress®.

Protecting content in a post

Postby weseoin » December 8th, 2011, 6:07 am

My blog posts are visible to any reader, but I've protected the video in each post by using this shortcode:

[s2If current_user_can(access_s2member_level1)] Protected Video [/s2If]

I plan to have no free membership, and just 1 level of paid membership, but the paid membership will have 7 days free trial after which the payment begins. This means when anyone subscribes using PayPal, she will pay nothing for 7 days after which PayPal automatically bills her the membership fee.

1
Now, my question is if I want to restrict a few videos during the 7-day trial period, how do I implement it within the shortcode above..! :?

2
If (1) is not possible, then is it possible to disable just the download of a video during the trial period even though the members can watch it on my site?

Thanks in advance.
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Protecting content in a post

Postby Cristián Lávaque » December 10th, 2011, 2:35 am

You can use a conditional to drip those videos after the 7 days. The documentation here should help you with that: WP Admin -> s2Member -> API / Scripting -> s2Member Content Dripping
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: Protecting content in a post

Postby weseoin » December 11th, 2011, 3:57 am

Thanks Cristián.

I read the documents and feel it can be done. May I request another help..!

Is there a place where the different parameters for PayPal button code is explained? This is 'cause PayPal button generator isn't working. But I guess if the parameters are known then it will not be difficult to make the button code manually.

Thanks again.
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Protecting content in a post

Postby Eduan » December 11th, 2011, 8:17 am

Well, you can go under WP Admin -> s2Member -> PayPal® Buttons -> Shortcode Attributes ( Explained ), or if you're using pro-forms then under WP Admin -> s2Member -> PayPal® Pro Forms -> Shortcode Attributes ( Explained ).

I believe you can find every thing a button shortcode can have.

Hope this helps. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: Protecting content in a post

Postby weseoin » December 12th, 2011, 1:06 am

Thanks Eduan. :)
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Protecting content in a post

Postby weseoin » December 12th, 2011, 3:24 am

For the benefit of the s2m users, here are 2 PayPal URLs for creating button code for subscriptions:

https://www.paypalobjects.com/en_US/ebo ... /html.html
https://www.paypal.com/cgi-bin/webscr?c ... ro-outside

Thank you.
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011

Re: Protecting content in a post

Postby Cristián Lávaque » December 14th, 2011, 3:48 am

If you create the buttons over at PayPal, make sure to follow Jason's instructions here so the buttons are integrated with s2Member viewtopic.php?f=36&t=309#p1333 ;)
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: Protecting content in a post

Postby weseoin » December 17th, 2011, 8:11 am

Thanks Cristián :)
User avatar
weseoin
Registered User
Registered User
 
Posts: 21
Joined: December 3, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron