lipps199
Forum Replies Created
-
You can mark this as resolved. I was able to figure it out.
It’s not a custom error message that I need. I need to dynamically fill a dropdown in the registration form. Essentially, I’m querying the users and getting all the values from a custom field. From here I do an
array_diff
to spit out an array that does NOT include values that have already been used by a member.I was able to dynamically fill the dropdown in the registration field but now the member list is incorrect and giving me numbers that are off by 1… It’s really odd.
function custom_boat_numbers_dropdown() { //Getting all boat numbers from existing users and comparing that to a list of all boat numbers. //Then removing the boat numbers already in use and letting users choose from that list for their boat number. $all_boat_numbers = array(); for ($i = 1; $i < 1001; ++$i) { $all_boat_numbers[] = $i; } $current_boat_numbers = array(); $members = get_users( array( 'role' => 'um_member', )); $current_boat_numbers = array(); foreach($members as $member){ $member_data = get_user_meta( $member->ID ); $boat_number = $member_data['boat_number'][0]; $current_boat_numbers[] = intval($boat_number); } $current_boat_numbers = array_unique($current_boat_numbers); $boat_numbers = array_diff($all_boat_numbers, $current_boat_numbers); $boat_numbers = array_values(array_filter($boat_numbers)); return $boat_numbers; }
Having the same issue here. Instead of trying to goto where the resource is its trying to load it from the jetpack plugin folder.
Sure thing. Thanks for the suggestions, Kevin. You’re the man.
Ahhh. I just tested. Looks to be sending mail if you edit an existing page/post. However, what is a revisor makes a new page/post? Will this not trigger an email?
Thanks again for the stellar support.
Hi Kevin and thanks for the quick response.
The mail is not going to spam. It seems like the mail is inconsistently working. Meaning sometimes a notification comes through and sometimes it doesn’t. I have looked through our mailgun account as well and the unsuccessful emails are not even hitting mailgun.
Within the Revisionary settings “Always” is selected for both notification drop downs.
Also, the users are properly assigned roles are Administration or Editor. HOWEVER, the developer that built this used a plugin called “User Role Editor Pro”.
Lastly, ALL plugins and WP are up to date. We always keep everything on the latest versions.
Thanks for the help!
Forum: Plugins
In reply to: [Document Gallery] Is this still maintainedHi Dan,
Do you have any plans to look into the thumbnails not being generated?
Thanks
Forum: Plugins
In reply to: [Document Gallery] WordPress 5.0 CompatibilityI tried to make a document gallery with the classic editor and its still not creating the thumbnails correctly.