Viewing 15 replies - 16 through 30 (of 32 total)
  • Plugin Author Mike Walsh

    (@mpwalsh8)

    While I am looking at another issue today, I am looking at whether or not I can add this at the same time.

    Do you think the filter should supersede the standard settings for Mass Email and Post/Page Notifications or should it be another Send Option completely? I am inclined to make it a new Send option so you would have “Send to User(s)”, “Send to Group(s)” and a new item “Send to Custom List” (or something similar) that would only appear if the filter was defined.

    Thoughts?

    Thread Starter Andy Fragen

    (@afragen)

    I agree with making it another send option that is only visible if the custom user meta is defined.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I have posted a beta release that has this requested functionality. Please check it out and let me know if it allows you to do what you want to do.

    Thread Starter Andy Fragen

    (@afragen)

    Hey Mike, this new beta does work but I was expecting something that would work more like ‘Send to Groups’ rather than ‘Send to Users’.

    I guess I wanted something more along the lines of

    mailusers_register_custom_meta_filter($label, $meta_filter);

    This would then return a page similar to ‘Send to Groups’ where I would select the ‘$label – $meta_value’ from the list. The $meta_value would be returned automatically based upon all the returned values for $meta_filter.

    In my case something like the following

    mailusers_register_custom_meta_filter(‘Department’, ‘drmc_department’);

    I would want this to return the array of values to select from in a group like

    Department – Medicine
    Department – Surgery
    Department – Pediatrics
    etc

    This would work the same way selecting a Role works.

    That way I could make only a single add_action for each $meta_filter. If I wanted to keep the more fine grained search as currently exists then what you’ve got works.

    Does that make sense?

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Yes, what you’ve outlined makes sense. Let me see what I can do. I’ll probably break it up into two things – Custom User Filter and Custom Group Filter. Looks like I was 0-2 on your issues!

    Thread Starter Andy Fragen

    (@afragen)

    Credit where credit is due. As a dev your looking at my issues and feature requests. 😉

    Maybe 0.5 – 2, after all I can now send to groups based upon meta values, just not how I was thinking. If you want I can set up some data on my dev site, get you some admin credentials and you can test there if you want.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I have released another beta candidate that I think will address the use model you are looking for. Let me know what you think.

    Thread Starter Andy Fragen

    (@afragen)

    Mike, this isn’t substantially different. It’s just in this version with groups I can’t see to whom the email is addressed, not that it matters. I still have to individually add each $meta_filter and $meta_value to the function.

    What I was envisioning, and what the code I made does, is to enable the user to just list the $meta_filter and have the code return an array of all the $meta_values for that $meta_filter. The code would place something like ‘Filter – $label – $meta_value[$i]’ for the whole list of meta_values that correspond to the listed meta_filter.

    The function would only have 2 parameters ($label, $meta_filter) as the $meta_values would be discovered.

    Thread Starter Andy Fragen

    (@afragen)

    If you want to put this up on Github I’d be happy to help.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    I had some time work on this on my flight to Phoenix this week and have just uploaded a new beta version which I think is closer to what you are looking for. Details are here.

    Thread Starter Andy Fragen

    (@afragen)

    Brilliant! Works exactly as I expected.

    Plugin Author Mike Walsh

    (@mpwalsh8)

    Excellent news. I will try and get an update out in the next day or so.

    Andrew,
    I too am trying to implement this and am grateful to Mike for working hard to add this function.
    I wonder how you got this too work with Cimy User Extra Users fields. I can’t see how to address the actual field, which in my case is called DIOCESE within Cimy.

    Grateful for any clues
    thank you

    Thread Starter Andy Fragen

    (@afragen)

    Graham, I couldn’t use Cimy User Extra as it doesn’t create real user meta fields. You’ll need to create real user meta fields from other code or another plugin.

    Just as I suspected, but thanks for the confirmation

    So another re-build looks line it is on the cards?!?! ARRH!

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Email to user meta field’ is closed to new replies.