Page 1 of 1

Adding information to the members dashboard?

PostPosted: January 19th, 2012, 8:39 pm
by tr3online
Hi there,
I was just reading another post and have enabled the s2member specific profile redirect using [s2Member-Profile /].
I was wondering if there was a way to modify this form and display other things about s2member? Namely I would love to add the current users subscription date and/or the date that they are going to expire. These are features I really need.

Any information would be greatly appreciated!

Thanks!

Tre

Re: Adding information to the members dashboard?

PostPosted: January 19th, 2012, 10:44 pm
by Jason Caldwell
Thanks for your inquiry.
What payment gateway have you integrated with please? Please let us know if you're running s2Member, s2Member Pro, and what version of WordPress/s2Member that you're operating with.

Re: Adding information to the members dashboard?

PostPosted: January 20th, 2012, 3:53 am
by tr3online
Right now I'm running regular s2Member with paypal. I'm planning on upgrading to s2Member Pro soon and using authorize.net or paypal pro if I can get this plug-in to do what i want it to :)

Re: Adding information to the members dashboard?

PostPosted: January 20th, 2012, 11:00 am
by Jason Caldwell
Thanks for the follow-up.

Well, it is currently not possible to further modify the output from [s2Member-Profile /]. However, it IS possible to build a list of information and/or other details about each account either above or below, or in concert with the Profile editing form if you like.

Here are some examples. You will find further documentation & additional details that are available for each User/Member in your Dashboard, under: s2Member -> API Scripting -> API Constants.

You might do something like this in your WordPress editor.
Code: Select all
Your first name is: [s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]
Your last name is: [s2Get constant="S2MEMBER_CURRENT_USER_LAST_NAME" /]
Your username is: [s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]
Your email address is: [s2Get constant="S2MEMBER_CURRENT_USER_EMAIL" /]
Your display name is: [s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]

You paid through: [s2Get constant="S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY" /]
You paid on (timestamp): [s2Get constant="S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME" /]
You've been a paid member for: [s2Get constant="S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS" /] days.
Your account status is: [s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /]
Your paid subscription ID is: [s2Get constant="S2MEMBER_CURRENT_USER_SUBSCR_ID" /]

Edit Your Profile below:

[s2Member-Profile /]


SNAG-0034.png



Of course, it is ALSO possible to extend your ability to obtain and parse details about each User/Member through PHP code. While the examples above use WordPress Shortcodes, your Dashboard includes documentation for PHP scripting as well, making all sorts of things possible for you.

In addition, if you use PayPal Pro, it is possible to pull extended information directly from your PayPal Pro API using the example provided in this post I'm referencing. You can pull the current status of their Recurring Payment Profile along with next billing date, and an array of other details.

See: viewtopic.php?f=4&t=2062#p7407