Community Support Forums — WordPress® ( Users Helping Users ) — 2010-08-17T11:46:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=435 2010-08-17T11:46:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2349#p2349 <![CDATA[Re: New replacement code not working]]> @POSSIBLE RESOLUTION :: possible bug existing with %%user_id%% replacement code.

Please let me know if this problem still exists in s2Member v3.2+.

- Replacement Codes. The `%%user_id%%` Replacement Code has been added to several other API Notifications now. Also, there are two new Replacement Codes for Payment Notifications ( `%%subscr_payment%%`, `%%subscr_payment_user_id%%` ). For further details, see: `s2Member -> API Notifications` in your Dashboard.

Statistics: Posted by Jason Caldwell — August 17th, 2010, 11:46 am


]]>
2010-08-10T17:55:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2254#p2254 <![CDATA[Re: New replacement code not working]]> Statistics: Posted by martonic — August 10th, 2010, 5:55 pm


]]>
2010-08-10T17:45:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2253#p2253 <![CDATA[Re: New replacement code not working]]>
martonic wrote:
Hi Jason,

This was a free registration, as we are not allowing payments until someone already has a WordPress account.

Thanks again for looking into this.

Still unable to reproduce this. Was this with the free version of s2Member, or with s2Member Pro? In other words, was this free registration processed by an s2Member Pro Form, or by the wp-login.php?action=register file?

Thanks again.

Statistics: Posted by Jason Caldwell — August 10th, 2010, 5:45 pm


]]>
2010-08-10T12:00:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2245#p2245 <![CDATA[Re: New replacement code not working]]>
This was a free registration, as we are not allowing payments until someone already has a WordPress account.

Thanks again for looking into this.

Statistics: Posted by martonic — August 10th, 2010, 12:00 pm


]]>
2010-08-05T15:37:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2155#p2155 <![CDATA[Re: New replacement code not working]]> Thanks for reporting back on this.
OK. So can you please explain how the original transaction was processed exactly? Was this a transaction completed with an s2Member Pro Form, or through a PayPal Button? Or perhaps just a free registration?

@PR TODO :: possible bug existing with %%user_id%% replacement code.

Statistics: Posted by Jason Caldwell — August 5th, 2010, 3:37 pm


]]>
2010-07-31T18:26:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=2007#p2007 <![CDATA[Re: New replacement code not working]]>
Code:
http://my_site.com/new_wp_user.php?secret=my_secret&id=%%user_id%%&fname=%%user_first_name%%&lname=%%user_last_name%%&login=%%user_login%%&level=%%level%%&email=%%user_email%%

$secret = $_GET['secret'];
$wp_id  = $_GET['id'];

debug("new-wp-user--- wp_id = $wp_id, email = $email");

[bern]$ cat debug.log

new-wp-user--- wp_id = %%user_id%%, email = test7@bulldogdiversions.com


Mysterious!

Edit: I tried moving the "secret" (only letters and numbers in there) to the end of the URL - but the result was the same. When the notification is received, all the fields are correct except for user_id, which is set to the "replacement code" instead of its expected value.

Statistics: Posted by martonic — July 31st, 2010, 6:26 pm


]]>
2010-07-28T06:18:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=1890#p1890 <![CDATA[Re: New replacement code not working]]> %%user_id%% replacement code is ONLY available for "Registration" Notifications. I'm assuming that you're aware of this; but since I was unable to reproduce it, I thought I would throw it out there.

Statistics: Posted by Jason Caldwell — July 28th, 2010, 6:18 am


]]>
2010-07-28T06:16:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=1889#p1889 <![CDATA[Re: New replacement code not working]]> Hi Martonic. Thanks for reporting this.

I just ran tests on s2Member, and s2Member Pro.
In both cases, I set s2Member -> API Notifications -> Registration Notifications
http://mysite.com/?user_id=%%user_id%%
and the value came through OK for me.

Can you please walk me through exactly what I need to do in order to reproduce this please?
~ Thanks in advance.

Statistics: Posted by Jason Caldwell — July 28th, 2010, 6:16 am


]]>
2010-07-24T14:29:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=1801#p1801 <![CDATA[Re: Replacement code not working - urgent - please help]]> I dumped the GET for %%user_first_name%% and it is correct!

So it's not that I don't know what to do, it's that the new %%user_id%% code does not work!

I need that to work - please fix this ASAP - thank you!

Edit: I will get it from the database by keying on email for now - a work around.

Edit: Locating the user record based on email worked, so progress is still being made.

Statistics: Posted by martonic — July 24th, 2010, 2:29 pm


]]>
2010-07-24T14:24:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=435&p=1800#p1800 <![CDATA[New replacement code not working]]> Hi Jason,

Using s2member 3.1.5, I composed an URL like this:

http://mysite.com/my-functions/new_user.php?id=%%user_id%%

for the Notification URL in Registration Notifications.

I have the following code in new_user.php.

Code:
$id  = $_GET['id'];
error_log("id = $id\n", 3, 'debug.log');


Here is what got sent to my function, as shown by the debug log:

cat debug.log

id = %%user_id%% :o :o :o :o :o

That's not what I expected to see!

Statistics: Posted by martonic — July 24th, 2010, 2:24 pm


]]>