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™
<?
$wp_user_id = $_GET["wp_user_id"];
$eot_del_type = $_GET["eot_del_type"];
$user_data = get_userdata($user_id);
if (get_user_option("s2member_auto_eot_time", $user_id) == NULL) { $eot = '';}
else { $eot = date("Y-m-d", get_user_option("s2member_auto_eot_time", $user_id)); }
if (get_user_option("s2member_last_payment_time", $user_id) == NULL) { $lpd = '';}
else { $lpd = date("Y-m-d", get_user_option("s2member_last_payment_time", $user_id)); }
// insert Member's previous Last Payment Time & EOT values so I can access them post-demotion
$insertEOT = mysql_query("INSERT INTO expirations (id, wp_user_id, eot, lpd, eot_del_type) VALUES ('', $wp_user_id, '$eot', '$lpd', '$eot_del_type')") or die('Query failed: ' . mysql_error());
?>
$s2_notes = get_user_option('s2member_notes', $user_id);
add_filter("ws_plugin__s2member_preserve_paid_registration_times", "__return_true");
add_filter("ws_plugin__s2member_preserve_paid_registration_times", "__return_true");
s2member_paid_registration_times
s2member_auto_eot_time, s2member_last_payment_time
<?
$prts_arr = get_user_option("s2member_paid_registration_times", $user_id);
while( $element = each( $prts_arr ) )
{
echo $element[ 'key' ];
echo ' - ';
echo date("Y-m-d", $element[ 'value' ]);
echo '<br />';
}
?>
Users browsing this forum: No registered users and 1 guest