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™

Content Dripping Message

s2Member Plugin. A Membership plugin for WordPress®.

Content Dripping Message

Postby kittykatmeowmeow » December 23rd, 2010, 1:40 pm

Ok,

So I understand and can now utilize content dripping in my site:
<?php if(S2MEMBER_CURRENT_USER_IS_LOGGED_IN_AS_MEMBER){ ?>
Content
<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS >= 1){ ?>
Content for day 1
<?php } ?>
<?php } ?>

I am going to drip content on a daily basis per membership. How can I put a message on the content that is not yet available to the member? For example, let's say John has been a member for 2 days and he tries clicking on the day 3 content, can I display a message on there stating that this content is not available yet?
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » December 27th, 2010, 12:10 am

Sure, you'd use a condition for that too.

Code: Select all

<?php if(S2MEMBER_CURRENT_USER_REGISTRATION_DAYS < 3){ ?>
    Sorry, this content is still not available.
<?php } else { ?>
    Content for Day 3.
<?php } ?>


In the message you could probably even say how many days remain before it's available.

Code: Select all

This content will be available for you in <?php echo (- S2MEMBER_CURRENT_USER_REGISTRATION_DAYS) ?> days.
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: Content Dripping Message

Postby kittykatmeowmeow » January 3rd, 2011, 3:40 pm

You are amazing! Thank you!
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby kittykatmeowmeow » January 3rd, 2011, 3:55 pm

Is there an area or place I can go to obtain most to all the php scripts that s2member can do, like the above one you shared with me? Are there basically endless possibilities to php through s2member?
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 3rd, 2011, 4:57 pm

Well, it's basically PHP and in that regard the possibilities are within PHP's limits.

s2Member has several examples in your admin area under s2Member -> API/Scripting (/wp-admin/admin.php?page=ws-plugin--s2member-scripting).
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: Content Dripping Message

Postby kittykatmeowmeow » January 4th, 2011, 11:54 am

Would it be possible to have S2member send out emails as content dripping? For example, on the 2nd day of membership, can an email automatically be sent out to that member?
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 4th, 2011, 1:20 pm

Well, it'd be best to configure that with a List Server, which you can synch with s2Member.

http://www.s2member.com/api-list-servers-video/
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: Content Dripping Message

Postby shaunamae » January 6th, 2011, 4:40 am

Hi Clavaque,

Quick and fairly silly question... where do I put that code? At the beginning of the post or page in the HTML section? Thanks.
User avatar
shaunamae
Registered User
Registered User
 
Posts: 5
Joined: December 10, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 6th, 2011, 10:08 am

Yes in the HTML editor of the post/page, but not necessarily at the beginning of it, only around the blocks of content you want to protect with the condition. You may also have sections of it that aren't protected.

You'll need to have installed the Exec-PHP plugin so WP parses PHP in posts.
http://wordpress.org/extend/plugins/exec-php/

The new videos help a lot to understand these better.
http://s2member.com/videos/

Hope that helps. :)
Last edited by Cristián Lávaque on January 6th, 2011, 3:19 pm, edited 1 time in total.
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: Content Dripping Message

Postby shaunamae » January 6th, 2011, 3:13 pm

Hi clavaque. You're awesome. Thanks so much for your help. Best. Shauna :)
User avatar
shaunamae
Registered User
Registered User
 
Posts: 5
Joined: December 10, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 6th, 2011, 3:19 pm

Glad to 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: Content Dripping Message

Postby kittykatmeowmeow » January 11th, 2011, 3:27 pm

Ok, so I have synced my list server with S2Member! How would I tell the list server to send out emails via content dripping?
Scenario: I have 28 days worth of content. Each day of a member's membership, another day of content is available to them (via content dripping). I would want each member to receive an email notifying them that the content is available (list server). However, not everyone is going to be signing up at the same time. How can I tell S2Member (with list server integration) to send email notifications to the member on each day that the content is available to them?
For example, John is on day 4 of his membership and this morning he receives an email telling him that new content is available to him.

Thanks in advance.
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 11th, 2011, 4:18 pm

Well, that'd depend on the list server you're using, but you basically set up an autoresponder with it and when you add someone to that list with s2Member, the autoresponder sequence will start at the beginning for that person, which would be in sync with the membership because they'd happen at the same time.
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: Content Dripping Message

Postby kittykatmeowmeow » January 11th, 2011, 5:13 pm

:geek:
Thanks for being so helpful!
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 11th, 2011, 10:02 pm

:)
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: Content Dripping Message

Postby kittykatmeowmeow » January 12th, 2011, 4:43 pm

Do you have any resources for learning PHP codes? Or maybe there is a huge database out there with PHP cheats? hehehe :)
User avatar
kittykatmeowmeow
Registered User
Registered User
 
Posts: 22
Joined: December 17, 2010

Re: Content Dripping Message

Postby Cristián Lávaque » January 12th, 2011, 6:19 pm

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: Content Dripping Message

Postby smitchell360 » January 14th, 2011, 6:08 pm

@clavaque

I put together a short plugin that adopts your idea of stamping the time with the custom capability. I'll start a new thread for this discussion.

viewtopic.php?f=4&t=1633
User avatar
smitchell360
Experienced User
Experienced User
 
Posts: 28
Joined: January 4, 2011

Re: Content Dripping Message

Postby Cristián Lávaque » January 14th, 2011, 6:30 pm

Awesome!

Although I don't remember it being my idea, it was Jason who mentioned it and I was asking him the details to figure out how it works. :)

/me goes check it out.
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: Exabot [Bot] and 2 guests

cron