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.

About: Kyle Nash

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


Topics I've Started


My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Sep 26th, 2012 at 11:55 pm #26643
Kyle Nash
Username: CALicense

Yep that worked! Thanks a ton!

Posted: Tuesday Sep 25th, 2012 at 12:42 pm #26451
Kyle Nash
Username: CALicense

$_35_days_ago and $_1_days_ago echo accurately.

$level2_payment_time and $level3_payment_time are echoing the initial registration time, not the registration time at level 2 and level 3.

This is the wp_s2member_paid_registration_times data in mysql for the test user I’ve been using:

a:3:{s:5:”level”;s:10:”1346198456″;s:6:”level1″;s:10:”1346198456″;s:6:”level2″;s:10:”1348455350″;}

With this data, I believe $level2_payment_time should echo 1348455350 and $level3_payment_time should echo 0, since the user has not yet registered at level 3.

Both variables are echoing 1346198456, which is the initial registration time (same as level 1 payment time).

What am I missing here?

Posted: Monday Sep 24th, 2012 at 12:04 pm #26321
Kyle Nash
Username: CALicense

Hi Dave,

Yep when I echo $level2_payment_time I get the the timestamp of the initial registration.

And yeah I tested it with a user account that was initially set up 30 days ago but just moved to Level 2 about an hour before I was testing it. When I set the function to

<?php if($level2_payment_time && $level2_payment_time  <= ($_35_days_ago = strtotime("-35 days"))){ ?>

the dripped content was not displayed, but the content was still displayed when it was set to

<?php if($level2_payment_time && $level2_payment_time <= ($_1_days_ago = strtotime("-1 days"))){ ?>

Any ideas?

Thanks for your help.

Posted: Friday Jul 6th, 2012 at 12:08 pm #18490
Kyle Nash
Username: CALicense

Ok thanks for the help guys, I will try out those solutions!

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

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.