Page 1 of 1
Interesting Question -- Return Page Variables

Posted:
December 23rd, 2011, 2:43 pm
by einstein101
After Paypal Pro checkout, how do you get someone to return to a specific page in wordpress and show the variables for that customer on a new wordpress page?
Example:
%%user_first_name%%
%%user_last_name%%
%%Address%%
How do you make this information show on a page? Thanks so much!
Re: Interesting Question -- Return Page Variables

Posted:
December 23rd, 2011, 3:03 pm
by Eduan
Hi,
you can look under WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants, I believe you will find everything there, it's in shortcode and PHP format, if you want it in PHP format you will need the Exec-PHP plugin for WordPress.
Re: Interesting Question -- Return Page Variables

Posted:
December 26th, 2011, 1:23 pm
by einstein101
Thanks so much for your help. Is there a way to display the password on a page as well (unencrypted) like it shows in the email when using %%pass%%?
I tried [s2Get user_field="user_pass" /] but it shows encrypted version. I know it's a security issue, but, can it be done?
Re: Interesting Question -- Return Page Variables

Posted:
December 26th, 2011, 1:27 pm
by Eduan
I'm not sure it can be done, for the security reasons.
Maybe you can put a script that un-encrypts it before showing it up though. But it's going to be very difficult to un-encrypt it, especially if it's a high level encryption.
Re: Interesting Question -- Return Page Variables

Posted:
December 27th, 2011, 5:25 am
by Cristián Lávaque
I don't think it can be unencrytped.
You may want to Google this, because others probably pondered the same question. It's not really an s2Member question, this is how WordPress handles the passwords.
Re: Interesting Question -- Return Page Variables

Posted:
December 27th, 2011, 12:33 pm
by einstein101
Thank you very much for your responses!