• I want to add a hidden custom field that the registration does not ask for them to fill out, that I can edit. So I can assign a specific value to certain people.

    Is there a way when I create that field, to search for all members that have the same value I’m looking for, in php?

    Example: mtype

    Some are customers, some may be reps, I want to assign customers to everyone by default, then if someone I hire as a rep signs up, I can change theirs to rep.

    Then I may need to find just the customers, other times just the reps.

    That is what I’m looking for it for.

    https://www.ads-software.com/plugins/s2member/

Viewing 5 replies - 1 through 5 (of 5 total)
  • RTFM at “Dashboard -> s2M admin -> General Options -> Registration/Profile Fields & Options -> Add New Field -> Allow Profile Edits” ??

    Thread Starter ukndoit

    (@ukndoit)

    I did read all of that, but there was no answer. I searched google, no answer, anywhere. I read the entire page, MF. RMFM I said “Is there a way… to search for all members that have the same value I’m looking for, IN PHP?” ;p} lol

    SORRY! My fault. Was too sleepy to read all the message. Really sorry. I must do more RTFM ??

    Here is the code:

    $my_reps = $wpdb->get_col("select user_id from ".$wpdb->prefix."usermeta where meta_key='".$wpdb->prefix."s2member_custom_fields' && meta_value like '%\"mtype\";s:4:\"reps\"%'");

    And hope my mind is clear enough today ??

    Thread Starter ukndoit

    (@ukndoit)

    ?? no problem. Nothing but love here, my friend. I appreciate the help. ??

    will test it out later when I’m back to working on that page. working on other pages right now, while it is fresh in my head ;o}

    Thanks again. ??

    My RMFM does not include swear word… I use “Freaking” instead of the F bomb. ?? haha

    and Second M is “My” lol
    AKA: Read MY Freaking Message. haha ?? was just playing around with you. I take no offense when people use RTFM.

    Hah, nice joke! 10x! I tough you mistyped… ??

    And no offence at all, this is just a slang. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is there a way to locate all members with a specific custom field?’ is closed to new replies.