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™

Please help, what am I doing wrong? Content Dripping!

s2Member Plugin. A Membership plugin for WordPress®.

Please help, what am I doing wrong? Content Dripping!

Postby wealthyc » June 8th, 2011, 11:24 am

Hello, I'm attempting to use the content dripping code which I have provide below.

Code: Select all
<?php if(s2member_registration_time("level1") >= ($_10_days_ago strtotime("-10 days"))){ ?>
My content Here
<?php ?>


It is to my understanding that this code will show my content to those members who have registered 10 days ago and have level 1 access. The problem is, I have created a test member about 15 days ago and gave it level 1 access but the content still will not show to that member.

Can someone tell me what I'm doing wrong here, am I missing a step or any other key factors?
Last edited by Cristián Lávaque on June 8th, 2011, 5:40 pm, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
wealthyc
Registered User
Registered User
 
Posts: 1
Joined: June 8, 2011

Re: Please help, what am I doing wrong? Content Dripping!

Postby Cristián Lávaque » June 8th, 2011, 5:46 pm

I'd echo those times and see what you're comparing.

Code: Select all
echo s2member_registration_time("level1"), '

'
, strtotime("-10 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


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron