Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-31T18:04:50-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2865 2011-03-31T18:04:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8765#p8765 <![CDATA[Re: Account details and upgrade in BuddyPress]]>

Statistics: Posted by Cristián Lávaque — March 31st, 2011, 6:04 pm


]]>
2011-03-31T14:21:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8725#p8725 <![CDATA[Re: Account details and upgrade in BuddyPress]]>
This is a *seriously* impress plugin. if you know Wordpress well, you can really do some cool stuff.

Thank you!

Scott

Statistics: Posted by scottgould — March 31st, 2011, 2:21 pm


]]>
2011-03-31T04:31:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8677#p8677 <![CDATA[Re: Account details and upgrade in BuddyPress]]> Hi Scott. Try running this test code so you can see the information that's available in your installation.

Code:
<?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

Statistics: Posted by Jason Caldwell — March 31st, 2011, 4:31 am


]]>
2011-03-28T18:41:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8525#p8525 <![CDATA[Re: Account details and upgrade in BuddyPress]]> Statistics: Posted by scottgould — March 28th, 2011, 6:41 pm


]]>
2011-03-28T18:29:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8523#p8523 <![CDATA[Re: Account details and upgrade in BuddyPress]]>
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. :)

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 6:29 pm


]]>
2011-03-28T15:29:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2865&p=8514#p8514 <![CDATA[Account details and upgrade in BuddyPress]]>
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

Statistics: Posted by scottgould — March 28th, 2011, 3:29 pm


]]>