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.

s2 pro : complete list of shortcodes

Home Forums Community Forum s2 pro : complete list of shortcodes

Tagged: 

This topic contains 8 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 8 months ago.

Topic Author Topic
Posted: Wednesday Apr 18th, 2012 at 5:11 pm #11154

Hi,

Please can someone point me to a complete list of s2 pro shortcodes ?

Thanks

List Of Topic Replies

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Wednesday Apr 18th, 2012 at 5:55 pm #11157

Hi,

i can give you a short list – not complete but helpful

<?php
$user_login = get_user_field ("user_login"); 
# Username for the current User.

$user_email = get_user_field ("user_email"); 
# Email Address for the current User.

$first_name = get_user_field ("first_name"); 
# First Name for the current User.

$last_name = get_user_field ("last_name"); 
# Last Name for the current User.

$full_name = get_user_field ("full_name"); 
# First and Last Name for the current User.

$display_name = get_user_field ("display_name"); 
# Display Name for the current User.

$s2member_custom = get_user_field ("s2member_custom"); 
# Custom String value for the current User.

$s2member_subscr_id = get_user_field ("s2member_subscr_id"); 
# Paid Subscr. ID for the current User.

$s2member_subscr_or_wp_id = get_user_field ("s2member_subscr_or_wp_id"); 
# Paid Subscr. ID, else WordPress® User ID.

$s2member_subscr_gateway = get_user_field ("s2member_subscr_gateway"); 
# Paid Subscr. Gateway Code for the current User.

$s2member_registration_ip = get_user_field ("s2member_registration_ip"); 
# IP the current User had during registration.

$s2member_custom_fields = get_user_field ("s2member_custom_fields"); 
# Associative array of all Custom Registration/Profile Fields.

$s2member_file_download_access_log = get_user_field ("s2member_file_download_access_log"); 
# Associative array of all File Downloads by the current User, in the current Period ( Period is based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's current Membership Level ).

$s2member_file_download_access_arc = get_user_field ("s2member_file_download_access_arc"); 
# Associative array of all File Downloads by the current User, in previous Periods ( Periods are based on a specific User'sallowed_days, configured in your Basic Download Restrictions, at the User's Membership Levels in the past ).

$s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time"); 
# Auto EOT-Time for the current User ( when applicable ).

$s2member_last_payment_time = get_user_field ("s2member_last_payment_time"); 
# Timestamp. Last time an actual payment was received by s2Member.

$s2member_paid_registration_times = get_user_field ("s2member_paid_registration_times"); 
# Timestamps. Associative array of all Paid Registration Times.

$s2member_access_role = get_user_field ("s2member_access_role"); 
# A WordPress® Role ID ( i.e. s2member_level[0-9]+, administrator, editor, author, contributor, subscriber ).

$s2member_access_level = get_user_field ("s2member_access_level"); 
# An s2Member Membership Access Level number.

$s2member_access_label = get_user_field ("s2member_access_label"); 
# An s2Member Membership Access Label ( i.e. Bronze, Gold, Silver, Platinum, or whatever is configured ).

$s2member_access_ccaps = get_user_field ("s2member_access_ccaps"); 
# An array of Custom Capabilities the current User has ( i.e. music,videos ).

$s2member_login_counter = get_user_field ("s2member_login_counter"); 
# Number of times the User has logged into your site.
?>

This could help you.

Posted: Thursday Apr 19th, 2012 at 4:23 am #11201

Hi RK.

I don’t know if a compiled list for the shortcodes exists, but you can find most of them in the Scripting API page. Then there are the buttons and pro-forms shortcodes, the badge one in General Options, and the ones for the downloads… I think that’s it.

[hilite path]Dashboard -› s2Member® -› API / Scripting[/hilite]
[hilite path]Dashboard -› s2Member® -› Download Options[/hilite]
[hilite path]Dashboard -› s2Member® -› General Options -› Security Badge[/hilite]

What do you need it for? What kind of shortcode did you want?

Posted: Thursday Apr 19th, 2012 at 8:05 am #11234

Hi Cristian,

The most important shortcodes to me would be pro forms related:

1. include reg form inline

[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="Signup now, it&#039;s Free!" custom="yoursite.com" tp="0" tt="D" captcha="clean" /]

2. include profile form inline

[s2Member-Profile /] 

3. include lost password form inline

I cannot find this one

4. include login form inline

I cannot find this one

I think a complete searchable list like this or a shortcode generator would be a great asset to customers.

  • This reply was modified 4 years, 8 months ago by  RK Creative.
Posted: Friday Apr 20th, 2012 at 2:10 am #11329

Yeah, it’s a great idea for a reference in the codex. I’ll forward it to the team. :)

The lost pasword doesn’t have a shortcode version, but you could just copy the form’s HTML from [hilite mono]/wp-login.php?action=lostpassword[/hilite].

For login s2Member Pro has this function: http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_s2member_pro_login_widget%28%29

Posted: Friday Apr 20th, 2012 at 7:36 am #11365

For login s2Member Pro has this function: http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_s2member_pro_login_widget%28%29

Thanks for the link. So are you saying that for the s2 pro login to appear on a wp page I have to add this code to a page ?

<?php echo s2member_pro_login_widget(); ?>

Please confirm.

Posted: Friday Apr 20th, 2012 at 2:02 pm #11406

Hi,

that’s the shortcode for the widget.

<?php echo s2member_pro_login_widget(); ?>

It show’s this

My Profile Summary
your username
My Account
Edit My Profile
Logout
Edit

If you want to edit your profile you can use this shortcode

[s2Member-Profile /]

It displays the profile form.

Posted: Friday Apr 20th, 2012 at 2:40 pm #11410

Figured it out.

As there is no apparent s2 shortcodes to add the s2 login form inline on a wp page, do the following…

1. Install Exec-PHP from wordpress

2. Create a wp login page and add the php code call to s2’s pro login widget to the page html.

<?php echo s2member_pro_login_widget(); ?>

Done. Inline login form. Style it any way you please.

  • This reply was modified 4 years, 8 months ago by  RK Creative.
Posted: Friday Apr 20th, 2012 at 11:24 pm #11448

Right. :)

Viewing 8 replies - 1 through 8 (of 8 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.