Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-12T06:06:53-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10099 2012-01-12T06:06:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=60332#p60332 <![CDATA[Re: Members List]]>

About searching users by the custom field, this thread may be helpful: viewtopic.php?f=4&t=15658

I'm not sure how well Members List works s2Member, but you could try creating your own members list based on the code examples in that thread. Or, if you don't need to search by custom field, you can use the get_users function. http://codex.wordpress.org/Function_Reference/get_users

If you need from a develper, you may find a good freelance one at sites like odesk.com or elance.com. This page may also be helpful: viewforum.php?f=37

Statistics: Posted by Cristián Lávaque — January 12th, 2012, 6:06 am


]]>
2012-01-10T13:12:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=60149#p60149 <![CDATA[Re: Members List]]>
The whole s2member method of handling profile fields really puts a screw in the whole process, if only the process actually created new user fields, that would be perfect, it would then become compatible with Members List.

Or the other option would be for s2member to create the member list ->profile functionality, that'd make it a fully robust solution to meet what seems like a LOT of people need, after I've scoured this and other plugins' forums to find a solution.

My last hope right now at getting this site up and running for the client is hanging on the Members List, on a forum post they mentioned they could get it to work with buddypress fields. I'm following up on that and hoping they did. Will report back here if they did. It seems like it's a matter of getting the profile fields drop down list on "configure markup" settings in Member List to populate the additional fields listed in the bp_ tables. Unfortunately, I'm no programmer so I can't do it. :-(

Statistics: Posted by satdaya — January 10th, 2012, 1:12 pm


]]>
2011-09-18T16:53:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=38620#p38620 <![CDATA[Re: Members List]]> Statistics: Posted by carblanco — September 18th, 2011, 4:53 pm


]]>
2011-09-13T19:27:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=35917#p35917 <![CDATA[Re: Members List]]> Statistics: Posted by antseo — September 13th, 2011, 7:27 pm


]]>
2011-06-23T02:54:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=21494#p21494 <![CDATA[Re: Members List]]>
I'm looking for a developer to custom code this for me, but I was thinking that if you are planning to develop this feature maybe we could talk to boost it.
I can't send you a PM so if you don't mind please write me.

Anyway, is there any developer interested?

Thanks.

Statistics: Posted by carblanco — June 23rd, 2011, 2:54 am


]]>
2011-06-15T05:06:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20829#p20829 <![CDATA[Re: Members List]]> Thanks.

Statistics: Posted by carblanco — June 15th, 2011, 5:06 am


]]>
2011-06-14T09:49:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20701#p20701 <![CDATA[Re: Members List]]> Statistics: Posted by Cristián Lávaque — June 14th, 2011, 9:49 am


]]>
2011-06-14T03:12:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20686#p20686 <![CDATA[Re: Members List]]> Why you don't add a function to list all members? (like member list plugin). I mean, you can do that easily, it's almost done with the export function ;)
I think there is a lot of people looking for this.

Statistics: Posted by carblanco — June 14th, 2011, 3:12 am


]]>
2011-06-14T02:53:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20683#p20683 <![CDATA[Re: Members List]]>
I'd be looking at https://codex.wordpress.org/Function_Re ... /get_users but in the end you'll probably need to write your own database query, since you don't know the exact value of the meta field (wp_s2member_custom_fields in the usermeta table). You need to search in it for the registration field's name, which will be in the string that is the serialized array.

Statistics: Posted by Cristián Lávaque — June 14th, 2011, 2:53 am


]]>
2011-06-14T02:25:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20680#p20680 <![CDATA[Re: Members List]]>
Anyway, do you think I could use the API function get_user_field()?

Statistics: Posted by carblanco — June 14th, 2011, 2:25 am


]]>
2011-06-13T20:28:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20633#p20633 <![CDATA[Re: Members List]]>
Code:
$users_with_company_field = array(
    'The Company' => array(/* All this user's data you got with your query */), 
    
// More users...
); 

Statistics: Posted by Cristián Lávaque — June 13th, 2011, 8:28 pm


]]>
2011-06-13T07:28:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20610#p20610 <![CDATA[Re: Members List]]> But I can't figure how to do that using ksort...

You are proposing something like
Code:
$query = array("d"=>"lemon", "a"=>"orange", "b"=>"banana", "c"=>"apple");
ksort($query);
foreach ($query as $company_name => $val) {
    echo "$company_name = $val\n";
}

I can't see what I have to write in array();

Also, is there any way to get always the 1st or 2nd or 10th column of the array?

Statistics: Posted by carblanco — June 13th, 2011, 7:28 am


]]>
2011-06-12T13:25:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20593#p20593 <![CDATA[Re: Members List]]>
carblanco wrote:
Can anybody help me with this newie question?
Right now I hava a list ordered as:
Code:
$query = "
SELECT $wpdb->users.ID, $wpdb->users.user_nicename
FROM $wpdb->users
INNER JOIN $wpdb->usermeta ON $wpdb->users.ID = $wpdb->usermeta.user_id
WHERE $meta_values
ORDER BY $wpdb->users.ID LIMIT $offset, $limit";


And what I need is ordering by a s2member custom field called "company name". How?

Thanks.


Well, right now you can't do it with the database query, because the fields aren't stored in their own columns, they're all in an array. You would have to get the users with the field "company name" into an array and sort them there. You could use the field values as they keys and then ksort it. http://php.net/ksort

Statistics: Posted by Cristián Lávaque — June 12th, 2011, 1:25 pm


]]>
2011-06-12T04:47:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20588#p20588 <![CDATA[Re: Members List]]>
Thanks.

Statistics: Posted by carblanco — June 12th, 2011, 4:47 am


]]>
2011-06-10T12:43:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20529#p20529 <![CDATA[Re: Members List]]> Statistics: Posted by Cristián Lávaque — June 10th, 2011, 12:43 pm


]]>
2011-06-10T12:22:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20522#p20522 <![CDATA[Re: Members List]]> Do you know the "autofilters used in Excel or Google Spreadsheets? You can order a list by a custom field or show only the selected ones. I mean, if I have two custom fields like company_name and company_state I'd like to order by company_name (ASC, DESC) or filter by companies only with a selected company_state.
For example, something like this but using s2member custom fields.

Thanks again.

Statistics: Posted by carblanco — June 10th, 2011, 12:22 pm


]]>
2011-06-10T11:55:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20516#p20516 <![CDATA[Re: Members List]]> Statistics: Posted by Cristián Lávaque — June 10th, 2011, 11:55 am


]]>
2011-06-10T01:57:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20502#p20502 <![CDATA[Re: Members List]]>

Yes because actually, provisionally, I have to list sorting by a custom field call "company_name".

And no because what I really need is the possibility to list all members (level1 + level2, for instance) but with the filters, I mean, filtering by "company_name" or by "phone" or by "company_name + phone", similar to automatic filters in excel.

Thanks.

Statistics: Posted by carblanco — June 10th, 2011, 1:57 am


]]>
2011-06-09T21:31:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20486#p20486 <![CDATA[Re: Members List]]> Statistics: Posted by Cristián Lávaque — June 9th, 2011, 9:31 pm


]]>
2011-06-09T12:06:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10099&p=20469#p20469 <![CDATA[Members List]]>
I'm having a lot of problems for listing all registered members with certain level.
Right now I've followed up this tutorial but I need more functionalities like search and filter by some s2member custom fields.

I can't imagine why s2member does not have this kind of functions because if you are a Pro user you can export users as csv and open it with Excel, and then you can search, add filters, etc.
Other option could be publishing the csv using Google Docs, but that's not the way.
I mean, the work is almost done.

Anybody can help me with this? Any hint?

Thanks.

Statistics: Posted by carblanco — June 9th, 2011, 12:06 pm


]]>