Right, the constants documentation will help you. [hilite path]Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants[/hilite]
1.) User Role Label ?
2.) Registration Date ?
1.) Experation Date ?
[hilite pre_code]
S2MEMBER_LEVELn_LABEL
S2MEMBER_CURRENT_USER_ACCESS_LABEL
S2MEMBER_CURRENT_USER_REGISTRATION_TIME
[/hilite]
You can use the [hilite mono][[s2Get constant="NAME_OF_CONSTANT" /]][/hilite] shortcode. For example, you might use [hilite code][[s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /]][/hilite] to display the type of Membership a Customer has. The [s2Get constant="" /] Shortcode will work for any of the s2Member constants.
For expiration time (EOT: end of term), you’d use the [hilite mono]get_user_field[/hilite] function. http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field%28%29
[hilite pre_code]
$s2member_auto_eot_time = get_user_field ("s2member_auto_eot_time"); # Auto EOT-Time for the current User ( when applicable ).
[/hilite]
I hope that helps. :)