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™

Account details and upgrade in BuddyPress

s2Member Plugin. A Membership plugin for WordPress®.

Account details and upgrade in BuddyPress

Postby scottgould » March 28th, 2011, 3:29 pm

Hi

Second question - is there a plugin or function that someone has written that enables a user to see their own membership level, days left in cycle, purchase amount, etc, within the Buddypress profile section?

I am otherwise about to get around to writing it but wanted to check first.

Thanks all,
Scott
User avatar
scottgould
Registered User
Registered User
 
Posts: 30
Joined: March 28, 2011

Re: Account details and upgrade in BuddyPress

Postby Cristián Lávaque » March 28th, 2011, 6:29 pm

I don't know about someone that has yet.

You may want to check the section WP Admin -> s2Member -> API / Scripting, particularly the sections Advanced Query Conditionals and s2Member PHP/API Constants may be helpful. Further details and additional functions can be found inside /s2member/includes/functions/api-functions.inc.php.

Let us know if there's anything we can help you with. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Account details and upgrade in BuddyPress

Postby scottgould » March 28th, 2011, 6:41 pm

Ok, thanks Cristián. I'm familiar with Wordpress but not BuddyPress, so I have to get my head around the specific hooks.
User avatar
scottgould
Registered User
Registered User
 
Posts: 30
Joined: March 28, 2011

Re: Account details and upgrade in BuddyPress

Postby Jason Caldwell » March 31st, 2011, 4:31 am

Hi Scott. Try running this test code so you can see the information that's available in your installation.

Code: Select all
<?php
$user_id 
= "123";
$user = new WP_User($user_id);
print_r($user);
?>
This will provide you with an array of all user data, including all meta fields, and all s2Member data as well.

Other related articles:
http://codex.wordpress.org/Function_Ref ... rrent_user
http://codex.wordpress.org/get_currentuserinfo
http://codex.wordpress.org/Function_Ref ... t_userdata
~ 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: Account details and upgrade in BuddyPress

Postby scottgould » March 31st, 2011, 2:21 pm

Thanks Jason.

This is a *seriously* impress plugin. if you know Wordpress well, you can really do some cool stuff.

Thank you!

Scott
User avatar
scottgould
Registered User
Registered User
 
Posts: 30
Joined: March 28, 2011

Re: Account details and upgrade in BuddyPress

Postby Cristián Lávaque » March 31st, 2011, 6:04 pm

I totally agree with you, Scott. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron