PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Adding information to the members dashboard?

s2Member Plugin. A Membership plugin for WordPress®.

Adding information to the members dashboard?

Postby tr3online » January 19th, 2012, 8:39 pm

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
User avatar
tr3online
Registered User
Registered User
 
Posts: 4
Joined: December 23, 2011

Re: Adding information to the members dashboard?

Postby Jason Caldwell » January 19th, 2012, 10:44 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Adding information to the members dashboard?

Postby tr3online » January 20th, 2012, 3:53 am

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 :)
User avatar
tr3online
Registered User
Registered User
 
Posts: 4
Joined: December 23, 2011

Re: Adding information to the members dashboard?

Postby Jason Caldwell » January 20th, 2012, 11:00 am

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
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron