latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Drip Content Solution

Home Forums Community Forum Drip Content Solution

This topic contains 7 replies, has 4 voices. Last updated by  behladesign 4 years, 6 months ago.

Topic Author Topic
Posted: Sunday Jun 10th, 2012 at 8:42 pm #16117

Hello,

I have a potential member based project and am wondering how close you are to implementing a “drip” content solution with S2 Member. This is the one major feature that separates you from Wish List. I’d much rather use S2 member of course. Here’s the thread: http://www.s2member.com/forums/topic/drip-content/

I’m wondering how long it takes to code the older way that you suggest in that thread vs. the new solution that will be provided. If you can provide any estimates that would be great.

Thanks
Andrew

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Tuesday Jun 12th, 2012 at 12:08 am #16201
Raam Dev
Username: Raam
Staff Member

Hi Andrew,

The current version of s2Member is fully capable of Dripping Content. Please see Dashboard -› s2Member® -› API / Scripting -› Content Dripping for more details.

We do not currently have a release date for the next major release of the plugin.

Posted: Wednesday Jun 20th, 2012 at 4:11 pm #17033

Thanks for the info there. Raam, do you have any idea time wise how long it would take a developer to setup a content drip script? I’m new to this and want to get a sense of what is involved.

Posted: Wednesday Jun 20th, 2012 at 9:31 pm #17049
David Welch
Username: dwbiz05

It depends on exactly what you need it to do and how involved it is. If you just need to do time-based dripping on one page you can usually do it with the shortocdes in s2member, but if you need something more advanced, it just depends on your requirements.

How are you wanting your content dripping to work?

Dave

Posted: Wednesday Jun 20th, 2012 at 10:07 pm #17058

We’d like to the content dripping to work so that if there is a 10 week course the user will see the content for each week. IE Week 1 they will see the content/pages for week 1, week 2 they will see the content for week 1 and 2. Week 3 they will see the content for 1, 2 and 3. Etc.

What gets a bit tricky is how to tie in the navigation for the new content, so that each week when they login, maybe there is a updated sidebar with navigation/links to the new content for that week. I’m not sure how s2 member will handle that.

Posted: Thursday Jun 21st, 2012 at 4:46 am #17077

Andrew, you can certainly use the conditionals for the dripping.

The navigation for the drips uses the same logic, just put it in a Text widget. ;)

Posted: Thursday Jun 21st, 2012 at 9:04 am #17123
David Welch
Username: dwbiz05

Hopefully this will get you started on the right track…

Add this to your Theme’s functions.php file:

//Make sure this goes between the php opening and closing tags.
add_shortcode('dw-content-drip-menu','dw_content_drip');

function dw_content_drip(){
	$menu = '<ul class="content_drip_menu">';
	
	if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 0){
	   $menu .= '<li><a href="">Course 1</a></li>';
	}
	if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 7){
	    $menu .= '<li><a href="">Course 2</a></li>';
	}
	
	if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 14){
	    $menu .= '<li><a href="">Course 3</a></li>';
	} 
	
	if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 21){
	   $menu .= '<li><a href="">Course 4</a></li>';
	}
	//Add courses as needed like above
	
	
	$menu .= '</ul>';

	return $menu;
}

add_shortcode('dw-content-drip-check','dw_content_drip_check');

function dw_content_drip_check($atts,$content){
	extract(shortcode_atts(array("days" => 0),$atts));
	
	if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= $days){
		return do_shortcode($content);
	}
}

Use this shortcode in your page or sidebar text widget to show the list of links (content dripped):

[dw-content-drip-menu /]

Use this tag around your course content, using the “days” attribute to make sure it is only shown to those who have paid for that long:

[dw-content-drip-check days="21"]
Put your content here...
[/dw-content-drip-check]

Hope that helps,

Dave

Posted: Thursday Jun 21st, 2012 at 10:50 am #17132

HI Dave,

Thanks so much for your help!! I’ll test this out.

Best
Andrew

Viewing 7 replies - 1 through 7 (of 7 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.