Page 1 of 1
Membership Directory
Posted:
May 28th, 2010, 8:21 pm
by meeganjones
Hi,
I wonder if there is a feature in s2Member to create a page listing all the members. A membership directory page which is accessible by members.
I have a plug in which does this through normal wordpress member registrations, but the s2Member levels don't come up as an option, only subscriber, author, contributer etc.
Is there a feature in s2Member that does this that I am missing?
Thanks,
Meegan
PS - thanks so much for your plugin, it has been immensely helpful. Once I start generating member income, I will certainly pass some your way.
Re: Membership Directory
Posted:
June 1st, 2010, 8:10 am
by rightrock
bumping this post as I am looking for a solution like this as well. Any suggestions or answers?
Thanks,
Joe
Re: Membership Directory
Posted:
June 2nd, 2010, 3:41 am
by Elizabeth
I just ran it by Jason, and he will try to implement it in a future version on s2Member Pro.
However, for the time being, you might want to use the BuddyPress plugin:
http://buddypress.org/
Re: Membership Directory
Posted:
June 23rd, 2010, 8:20 pm
by Jason Caldwell
Yep. Coming soon guys. It will be available only in s2Member Pro.
Until then, give BuddyPress a shot. Should do the trick. Although you need a BuddyPress compatible theme; which I'm not wild about.
Re: Membership Directory
Posted:
August 31st, 2010, 9:47 pm
by sbsantiago
Hey Jason:
Is this listing feature already implemented into the Pro version or is this still in progress?
Thanks.
Shane
Re: Membership Directory
Posted:
August 31st, 2010, 11:27 pm
by Jason Caldwell
Hi Shane. Thanks for your inquiry.
Nope, sorry. This is NOT in s2Member, or s2Member Pro yet.
In the mean time, you might take a look at this:
http://wordpress.org/extend/plugins/members-list/
Re: Membership Directory
Posted:
September 14th, 2010, 5:32 pm
by sbsantiago
Ok, very awesome. Thanks!
You did say "yet," though right? Does that mean it's something we should expect soon?
Also, let me know what youre thoughts are on dropdown menus/radio buttons/check boxes in the registration form per our other thread. Def want to be a beta tester as we have a huge client chomping at the bit.
Thanks!
Re: Membership Directory
Posted:
September 21st, 2010, 11:03 am
by guest1
Hi Jason,
Would you have an ETA as to when this feature would be in the Pro version?
Not sure if any of these are already planned (or for that matter already currently available in existing version) but these are what I am looking forward to:
1) Allows for a simple checkbox setting interface to choose which custom registration fields are to be listed in columns in the member list.
2) Columns can be sorted (eg. ASC/DESC etc.)
3) Search member function by all fields (including custom registration fields) or certain fields only (set in admin panel)
4) Member profile page 'backend' (where member can update their info and set which fields they would like to list as public/private
5) Frontend member profile page
Looking forward to a purchase once this becomes available in Pro.
Thanks much!
Membership Directory
Posted:
November 10th, 2010, 5:16 pm
by sharac
Im looking for the following
A membership directory that is only visible to level 2 members but includes all levels members
A section where logged in members can update their profiles that are visible in the directory which includes extra fields such as expertise, contact details etc
Would this be available soon?
Re: Membership Directory
Posted:
February 14th, 2011, 9:28 pm
by man-O-media
I guess this is kind of a bump...
I recently installed S2member with an eye towards getting the pro version, particularly for the member list import/export, as I hope to use s2 to manage the member levels as well as the data for a member directory which gets printed twice a year. The member levels and custom fields are perfect for what I need and back at the end of August you said...
The primary question is, with the recent additions, does S2member Pro now have an easy way to display and search the member database? I mean, the layout is wrong but the "users" {users.php} display is actually pretty close.
Short of that, before I found this thread, I found the "Members List" plugin which comes extremely close to what I need for the on-line directory. My problem is that even though the plugin seems aware of the s2member_custom_fields, I am not knowledgeable enough to configure the "Members List" plugin to properly pull the custom field data out of the s2member array, even with the help of the PHP/API stuff.
If this functionality is not yet in s2, any assistance with the proper syntax would be great.
Thanks, DP
Re: Membership Directory
Posted:
September 13th, 2011, 7:10 pm
by antseo
Jason or Cristian, does the free or pro version able to pull back all members yet?
Re: Membership Directory
Posted:
September 13th, 2011, 8:31 pm
by Jason Caldwell
Thanks for the follow-up.Sorry, we are still working toward this, but nothing in the latest release to address this specific issue with UI panels and such. However, you can certainly use this function to achieve what you need. Please see:
http://codex.wordpress.org/Function_Reference/get_usersCode sample using `get_users()`.- Code: Select all
<?php
foreach(get_users("role=s2member_level1") as $user)
{
$user = new WP_User($user->ID);
}
?>
Or, for all Users, not just those at Level #1.- Code: Select all
<?php
foreach(get_users() as $user)
{
$user = new WP_User($user->ID);
}
?>
Or, for only Free Subscribers.- Code: Select all
<?php
foreach(get_users("role=subscriber") as $user)
{
$user = new WP_User($user->ID);
}
?>
Re: Membership Directory
Posted:
September 13th, 2011, 8:38 pm
by antseo
Thanks Jason. I created two custom fields which are the following:
Age
Tell us something interested about yourself
Using the code above, how would I list out those two custom fields along with first name and their photo?
Re: Membership Directory
Posted:
September 13th, 2011, 9:16 pm
by Jason Caldwell
Thanks for your reply.Well, each Custom Registration Field that you create is associated with a unique ID that you give it when you create it. That's what you'll need to make the following code sample work for you.
- Code: Select all
<?php
foreach (get_users () as $user)
{
$user = new WP_User ($user->ID);
echo get_user_field ("my_field_id", $user->ID);
}
?>
See also, docs on get_user_field()
viewtopic.php?f=40&t=12453&src_doc_v=110912#src_doc_get_user_field%28%29Also, available in s2Member v110912+, we have: get_s2member_custom_fields()
viewtopic.php?f=40&t=12453&src_doc_v=110912#src_doc_get_s2member_custom_fields%28%29
Re: Membership Directory
Posted:
September 13th, 2011, 10:20 pm
by antseo
thanks Jason. The name of the field id is: age
So, I plugged this into the page but nothing shows up:
- Code: Select all
<?php
foreach (get_users () as $user)
{
$user = new WP_User ($user);
echo get_user_field ("age", $user->ID);
print_r(get_s2member_custom_fields($user->ID));
print_r($user);
}
?>
What am I doing wrong?
Re: Membership Directory
Posted:
September 14th, 2011, 12:49 am
by Jason Caldwell
Do you have a PHP execution plugin installed?
If you're trying this inside a Post or a Page, you'll need this plugin:
http://wordpress.org/extend/plugins/php ... on-plugin/
Re: Membership Directory
Posted:
September 14th, 2011, 7:21 am
by antseo
Hi Jason, yes I have that installed. I ran a quick "hello world" script in php on the page and it executed nicely. Now the code will only work of course if i place it in the html tab, not Visual. I think on the s2member shortcodes it doesn't matter on that right?
So the issue is that for some reason I can't pull back all users who have a s2member_level1 role using that script above even though I have about 10 that do. I confirmed that in the table in phpmyadmin also.
I can pull back an individual user with this:
<?php if(is_user_logged_in()){ ?>
user logged in
<?php } else { ?>
user not logged in
<?php } ?>
just not all users. Any ideas?
Re: Membership Directory
Posted:
September 14th, 2011, 8:19 am
by Jason Caldwell
Ah.
Change this:
- Code: Select all
$user = new WP_User($user);
To this please:
- Code: Select all
$user = new WP_User($user->ID);
I updated the code samples above in this regard. My mistake, sorry.
Re: Membership Directory
Posted:
September 14th, 2011, 9:53 am
by antseo
okay, thanks Jason. Okay that seemed to pull back a lot of data on each member. I'm sure it has to do with how I'm displaying it. So what I have is this now:
<?php
foreach (get_users () as $user)
{
$user = new WP_User ($user->ID);
echo get_user_field ("age", $user->ID);
print_r(get_s2member_custom_fields($user->ID));
print_r($user);
}
?>
How then can I parse it out so that I'm only pulling back a first name, age (s2member custom field), and their photo?
Re: Membership Directory
Posted:
September 14th, 2011, 10:28 am
by antseo
Okay, I got it to work! I have the following:
<?php
foreach (get_users ("role=s2member_level1") as $user)
{
$user = new WP_User ($user->ID);
echo "\n" . "<strong>Name:</strong> " . get_user_field ("display_name", $user->ID) . "\n" . "<strong>Age:</strong> " . get_user_field ("age", $user->ID) . "\n" . "<strong>About Me:</strong> " . get_user_field ("about_me", $user->ID) . "\n";
//echo .= "\t" . '<li>'. get_user_field ("display_name", $user->ID) .'</li>' . "\n";
}
?>
I just to figure out how to pull back their avatar image now. Also, if I wanted to do a sort order so that the display name is sorted in ascending order, how would I adjust the code above to do that?
Re: Membership Directory
Posted:
September 14th, 2011, 10:41 am
by Jason Caldwell
Re: Membership Directory
Posted:
September 15th, 2011, 9:45 am
by antseo
Okay, thanks Jason.
Re: Membership Directory
Posted:
September 26th, 2011, 2:19 am
by Cristián Lávaque
Another user asked me how he could sort the users by an s2Member custom registration field, but I didn't know. Is it possible in some way? I know they are in a serialized array, which would make it harder.
Re: Membership Directory
Posted:
October 19th, 2011, 3:03 pm
by Cgoguen
Hello all! Does anyone know of a way to make the members list plugin work with S2 member's extended fields? On their site they say that they call all their search results from user_meta and this is not where s2 stores its user data. Any suggestions on how to rectify this? I asked at members-list forum but they seem rather stalwart on their resolve not to solve this issue. ANY ideas would be GREATLY appreciated!
Thank you for your time and consideration!
Chris