Community Support Forums — WordPress® ( Users Helping Users ) — 2011-04-19T16:48:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1425 2011-04-19T16:48:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1425&p=12952#p12952 <![CDATA[Re: Custom Fields in usermeta Table]]>
viewtopic.php?f=4&t=1668&p=12950#p12950

D.

Statistics: Posted by dwbiz05 — April 19th, 2011, 4:48 pm


]]>
2011-02-23T22:06:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1425&p=7083#p7083 <![CDATA[Re: Custom Fields in usermeta Table]]>
I'd also store all the data that modifies access to content to manage drips simpler.

Statistics: Posted by Cristián Lávaque — February 23rd, 2011, 10:06 pm


]]>
2011-02-23T12:29:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1425&p=7072#p7072 <![CDATA[Re: Custom Fields in usermeta Table]]> Statistics: Posted by Jwrbloom — February 23rd, 2011, 12:29 pm


]]>
2011-01-03T13:14:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1425&p=5254#p5254 <![CDATA[Custom Fields in usermeta Table]]>
As of now the s2member custom fields get saved as a single, serialized array in the wp_s2member_custom_fields usermeta.
First of all: why is that so?

Then the problem is this:
how do I filter my users based on a s2Member custom field (like "province")?

If it was a simple usermeta field, I could have used a straightforward query like this one:
Code:
$wp_user_search = $wpdb->get_results("
SELECT u.ID, u.display_name, um.meta_value
FROM $wpdb->users u
JOIN $wpdb->usermeta um ON um.user_id = u.ID
WHERE um.meta_key = 'province'
AND um.meta_value = 'value'
");


Given I can't, what's the fastest solution available?

(a "this feature is planned" response is very welcome, of course, but I need a viable solution with the stuff I have at present).

btw Happy new year everybody!
:D

edit: I'm also open to intercepting fields and creating usermeta during the signup process, but what's the exact hook? is there a hook that fires after a successful user registration?

Statistics: Posted by nfavari84 — January 3rd, 2011, 1:14 pm


]]>