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™

Membership Directory

s2Member Plugin. A Membership plugin for WordPress®.

Membership Directory

Postby meeganjones » May 28th, 2010, 8:21 pm

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.
User avatar
meeganjones
Registered User
Registered User
 
Posts: 1
Joined: May 28, 2010

Re: Membership Directory

Postby rightrock » June 1st, 2010, 8:10 am

bumping this post as I am looking for a solution like this as well. Any suggestions or answers?

Thanks,

Joe
rightrock
Guest User
Guest User
 

Re: Membership Directory

Postby Elizabeth » June 2nd, 2010, 3:41 am

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/
User avatar
Elizabeth
Moderator
Moderator
 
Posts: 160
Joined: May 12, 2010

Re: Membership Directory

Postby Jason Caldwell » June 23rd, 2010, 8:20 pm

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.
~ 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: Membership Directory

Postby sbsantiago » August 31st, 2010, 9:47 pm

Hey Jason:

Is this listing feature already implemented into the Pro version or is this still in progress?

Thanks.

Shane
User avatar
sbsantiago
Registered User
Registered User
 
Posts: 8
Joined: August 12, 2010

Re: Membership Directory

Postby Jason Caldwell » August 31st, 2010, 11:27 pm

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/
~ 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: Membership Directory

Postby sbsantiago » September 14th, 2010, 5:32 pm

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!
User avatar
sbsantiago
Registered User
Registered User
 
Posts: 8
Joined: August 12, 2010

Re: Membership Directory

Postby guest1 » September 21st, 2010, 11:03 am

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!
guest1
Guest User
Guest User
 

Membership Directory

Postby sharac » November 10th, 2010, 5:16 pm

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?
User avatar
sharac
Registered User
Registered User
 
Posts: 1
Joined: November 10, 2010

Re: Membership Directory

Postby man-O-media » February 14th, 2011, 9:28 pm

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...
Jason Caldwell wrote: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/


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
User avatar
man-O-media
Experienced User
Experienced User
 
Posts: 117
Joined: February 10, 2011

Re: Membership Directory

Postby antseo » September 13th, 2011, 7:10 pm

Jason or Cristian, does the free or pro version able to pull back all members yet?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Jason Caldwell » September 13th, 2011, 8:31 pm

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_users

Code sample using `get_users()`.
Code: Select all
<?php
foreach(get_users("role=s2member_level1") as $user)
    {
        $user = new WP_User($user->ID);
        // print_r($user); for a list of properties available for display.
    }
?>

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);
        // print_r($user); for a list of properties available for display.
    }
?>

Or, for only Free Subscribers.
Code: Select all
<?php
foreach(get_users("role=subscriber") as $user)
    {
        $user = new WP_User($user->ID);
        // print_r($user); for a list of properties available for display.
    }
?>
~ 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: Membership Directory

Postby antseo » September 13th, 2011, 8:38 pm

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?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Jason Caldwell » September 13th, 2011, 9:16 pm

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);
        // print_r(get_s2member_custom_fields($user->ID)); // Requires s2Member v110912+.
        // print_r($user); // for a list of properties available for display.
    }
?>

See also, docs on get_user_field()
viewtopic.php?f=40&t=12453&src_doc_v=110912#src_doc_get_user_field%28%29

Also, 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
~ 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: Membership Directory

Postby antseo » September 13th, 2011, 10:20 pm

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?
Last edited by Cristián Lávaque on September 26th, 2011, 2:15 am, edited 1 time in total.
Reason: Improve code readability. http://www.primothemes.com/forums/viewtopic.php?f=36&t=2780
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Jason Caldwell » September 14th, 2011, 12:49 am

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/
~ 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: Membership Directory

Postby antseo » September 14th, 2011, 7:21 am

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?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Jason Caldwell » September 14th, 2011, 8:19 am

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.
~ 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: Membership Directory

Postby antseo » September 14th, 2011, 9:53 am

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?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby antseo » September 14th, 2011, 10:28 am

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?
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Jason Caldwell » September 14th, 2011, 10:41 am

There are several options here available to sort with:
http://codex.wordpress.org/Function_Reference/get_users

Also see get_avatar(): http://codex.wordpress.org/Function_Ref ... get_avatar
~ 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: Membership Directory

Postby antseo » September 15th, 2011, 9:45 am

Okay, thanks Jason.
User avatar
antseo
Experienced User
Experienced User
 
Posts: 127
Joined: September 2, 2011

Re: Membership Directory

Postby Cristián Lávaque » September 26th, 2011, 2:19 am

Jason Caldwell wrote:There are several options here available to sort with:
http://codex.wordpress.org/Function_Reference/get_users


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.
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: Membership Directory

Postby Cgoguen » October 19th, 2011, 3:03 pm

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
User avatar
Cgoguen
Registered User
Registered User
 
Posts: 9
Joined: August 15, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron