http://example.com/my-script.php?user_id=%%user_id%%
<?php echo get_user_option("s2member_subscr_id", $_GET["user_id"]); ?>
Statistics: Posted by Jason Caldwell — September 9th, 2011, 6:53 pm
$url = preg_replace ("/%%subscr_id%%/i", c_ws_plugin__s2member_utils_strings::esc_ds (urlencode ($subscr_id)), $url);
Statistics: Posted by tkittredge — September 7th, 2011, 3:40 pm
Statistics: Posted by Cristián Lávaque — August 25th, 2011, 12:48 am
Statistics: Posted by tkittredge — August 24th, 2011, 6:53 am
Yea, I'll see what we can do about that. Not all "Registrations" are associated with a Paid Subscr. ID. However if/when they are, you can certainly use: get_user_option("s2member_subscr_id", %%user_id%%); as passed through by the Registration API Notification. If the value returned is non-zero, they ARE a paying Member, if it's empty, they're just registering for free ( i.e. Open Registration is enabled on the site ). When this value is non-zero, it WILL exactly match the value returned in the Signup Notification, so yes.tkittredge wrote:
The name and email values return between signup and registration events are not necessarily the same.
Since in my scenario I am calling script to record the information from the two independent events as they naturally occur (subscription and registration events), we need a way to key the two datasets together.
Would <?php $subscr_id = get_user_option("s2member_subscr_id", %%user_id%%); ?> invoked as a result of the registration event be guaranteed to be the key against the %%subscr_id%% value returned with the signup event?
Shouldn’t %%subscr_id%% also be returned with the registration event by s2M?
T
Statistics: Posted by Jason Caldwell — August 23rd, 2011, 7:13 pm
Statistics: Posted by tkittredge — August 23rd, 2011, 9:32 am
Statistics: Posted by tkittredge — August 21st, 2011, 7:29 pm
Statistics: Posted by Cristián Lávaque — August 19th, 2011, 10:39 pm
Statistics: Posted by tkittredge — August 19th, 2011, 8:05 pm