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.

Notifications Replacement Codes

Home Forums Community Forum Notifications Replacement Codes

This topic contains 2 replies, has 2 voices. Last updated by  Jeffrey Morris 4 years, 9 months ago.

Topic Author Topic
Posted: Monday Apr 2nd, 2012 at 1:34 pm #9774

Is it possible to use the Replacement Codes listed under Signup Notifications in Registration Notifications?

Are the various codes inter-operable?

Thank you in advance….

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Tuesday Apr 3rd, 2012 at 4:39 pm #9952
David Welch
Username: dwbiz05

Are you talking about the API / Notifications?

If so, the registration notification option has this listed below it:

You can also use these special Replacement Codes if you need them:
%%role%% = The Role ID ( subscriber, s2member_level[0-9]+, administrator, editor, author, contributor ).
%%level%% = The Level number ( 0, 1, 2, 3, 4 ). ( deprecated, no longer recommended; use %%role%% )
%%ccaps%% = Custom Capabilities. Ex: music,videos,free_gift ( in comma-delimited format ).
%%auto_eot_time%% = Auto-EOT Time ( if applicable ). Ex: 1299925670 ( unix timestamp ).
%%user_first_name%% = The First Name of the Member who registered their Username.
%%user_last_name%% = The Last Name of the Member who registered their Username.
%%user_full_name%% = The Full Name ( First & Last ) of the Member who registered their Username.
%%user_email%% = The Email Address of the Member who registered their Username.
%%user_login%% = The Username the Member selected during registration.
%%user_pass%% = The Password selected or generated during registration.
%%user_ip%% = The User’s IP Address, detected via $_SERVER[“REMOTE_ADDR”].
%%user_id%% = A unique WordPress® User ID generated during registration.
Custom Registration/Profile Fields are also supported in this Notification:
%%date_of_birth%% would be valid; if you have a Custom Registration/Profile Field with the ID date_of_birth.
%%street_address%% would be valid; if you have a Custom Registration/Profile Field with the ID street_address.
%%country%% would be valid; if you have a Custom Registration/Profile Field with the ID country.
%%etc, etc…%% see: s2Member -> General Options -> Registration/Profile Fields.
Custom Replacement Codes can also be inserted using these instructions:
%%cv0%% = The domain of your site, which is passed through the `custom` attribute in your Shortcode.
%%cv1%% = If you need to track additional custom variables, you can pipe delimit them into the `custom` attribute; inside your Shortcode, like this: custom=”.com|cv1|cv2|cv3″. You can have an unlimited number of custom variables. Obviously, this is for advanced webmasters; but the functionality has been made available for those who need it.
This example uses cv1 to record a special marketing campaign:

Hope that helps,

Dave

  • This reply was modified 4 years, 9 months ago by  David Welch.
Posted: Wednesday Apr 4th, 2012 at 10:43 am #10037

Hello David,
Thank you for your response.

Can I use the replacement codes listed in Payment Notification in the Registration Notification URL area as well, or are the codes restricted to the notification area specifically?

So, if I place a URL in the Payment Notification URL can it include replacement codes from the Registration Notification?

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.