Page 1 of 1

Adding Buddypress with an existing s2member user base

PostPosted: May 17th, 2011, 1:07 am
by leialee31
Hi,

Thanks so much for this great plugin. It's been really helpful! :)

I have a conundrum. I've built a site for an arts nonprofit that allows artists who want to participate in a festival to register as members. Up until now, I've only been using s2member. There are over 100 registered users who have filled out very detailed information using s2member's custom fields.

However, the nonprofit wants to list all of the artists at a certain level on a directory page that links to individual profiles (which are like business listings). This apparently is what the membership fee is meant to cover. I've attempted to use members-list to no avail - I can't get it to show s2member custom fields and I haven't been able to find a detailed or successful solution.

I know that the question of creating a public directory has been addressed in the forums before, but I read through all the posts and didn't see a resolution. I also know you guys were talking about adding a feature like this to the pro module, and I'd love to get an ETA on that. I would gladly purchase Pro, but this project is ridiculously time sensitive so it would be so, so helpful to know if the release is too far away for me to wait on this time around.

If there isn't any way to do this with members-list, I'd like to try to install buddypress since it seems to have all those functions, but since all of our registered members filled out custom field information that's stored differently I don't know how to make the jump without losing all of their data.

So my questions in short are as follows:
1) Is there anywhere I can find a detailed explanation of how to use members-list with s2member custom fields?
2) If not, is the s2member pro module with the ability to create member lists and profiles coming out very soon?
3) Failing all else, is there a way for me to import the data for my existing users into buddypress without losing all of the custom profile information they've already filled out?

Thank you so much in advance for your help, and I'm sorry this was so long!

Leia D.

Re: S2member adding buddypress with existing member base

PostPosted: May 17th, 2011, 1:23 am
by leialee31
I should add, if the only way for me to salvage my user information is to manually do it member by member, I'm willing to do that (though it's a bummer. :D ). I just need to know whether that's my only option at this point.

Thank you again!

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 17th, 2011, 4:50 pm
by leialee31
I found a solution, and I didn't even need BP! Role-specific Member list and user profiles are active. :D I used a kind of defunct user profile plugin and figured out how to get the variables in there properly with some of the code that other people in the forum were knocking around. I'll share how and post a link when I get a little further if anyone's interested.

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 17th, 2011, 4:55 pm
by Cristián Lávaque
Awesome! I'm interested, and I'm sure others are too.

I had not replied earlier because I emailed Jason asking how to do this and was waiting for his reply.

I'm very glad you solved it. I look forward to your how-to. :)

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 18th, 2011, 6:52 pm
by Jason Caldwell
Hi there. Yes, please do share.
I'd love to see what you came up with.

FYI: You can grab s2Member's Custom Fields for a User like this:
Code: Select all
<?php
$field 
= get_user_field("my_custom_field");
?>

Or for a specific User like this:
Code: Select all
<?php
$field 
= get_user_field("my_custom_field", $user_id);
?>

Or get all of the fields in an array, like this:
Code: Select all
<?php
$fields 
= get_user_option("s2member_custom_fields");
?>

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 23rd, 2011, 4:38 pm
by leialee31
Hey guys, thank you so much for your helpful replies!

I used a combination of the User-Photo plugin, the Wordpress-Users plugin (which seems to be kind of abandoned by its creator in terms of support and stuff) and of course s2member.

You can see the results in action here: http://www.northsideopenstudios.org/view-members/. It's not super pretty yet because it's a list of artists, and artists are lazy (they haven't all uploaded images yet). WP-users is sorting by the levels I want to display (showing only members who have paid), ordering them by id, and pulling the s2member custom fields by using the break-into-an-array code that someone else posted here a while back.

I'm working on a mini tutorial in a post below, but I'm a horrible, horrible coder so I'm not sure how clearly I'll be able to explain. :) Tutorial posted here: viewtopic.php?f=4&t=6536

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 23rd, 2011, 4:50 pm
by Cristián Lávaque
Cool! :)

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 23rd, 2011, 6:40 pm
by leialee31
Oh, also, let me know If I should move this tutorial to a separate post, since it's not strictly relevant to the thread title. If one of you is able to do that that's cool too.

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 23rd, 2011, 8:39 pm
by Cristián Lávaque
Thanks a lot Leia! Very good work for someone that doesn't know much PHP. :)

If you want I can help you split the tutorial to its own thread, just tell me what subject line you'd like for it.

Re: Adding Buddypress with an existing s2member user base

PostPosted: May 23rd, 2011, 9:12 pm
by Jason Caldwell
I split this topic into a separate tutorial post for you:
viewtopic.php?f=4&t=6536