kimdebling
Forum Replies Created
-
I’ve modified the last section of em-emails.php to the following:
} elseif (!current_user_can('manage_options')) { if ($EM_Event->is_published() && !$EM_Event->get_previous_status()) { $subject = $EM_Event->output(get_option('dbem_event_published_email_subject'), 'raw'); $body = $EM_Event->output(get_option('dbem_event_approved_email_body'), $output_type); $EM_Event->email_send($subject, $body, $EM_Event->get_contact()->user_email); $admin_emails = explode(',', str_replace(' ', '', get_option('dbem_event_submitted_email_admin'))); //admin emails are in an array, single or multiple if (empty($admin_emails)) return true; $subject = $EM_Event->output(get_option('dbem_event_published_email_subject'), 'raw'); $body = $EM_Event->output(get_option('dbem_event_published_email_body'), $output_type); $EM_Event->email_send($subject, $body, $admin_emails); } } } return $result; } add_filter('em_event_save', 'em_event_submission_emails', 10, 2);
-This only really suits the setup of this particular site but it seems to work. Can anyone see any glaring issues with this? Please let me know if so and if I don’t hear I’ll mark this as resolved.
I’ve narrowed it down a little bit – in events-manager/em-emails.php it is skipping everything and going straight to
} elseif (!current_user_can('manage_options')) {
This makes sense because all users (including anonymous users) can submit an event, which immediately gets approved. Right now the code only sends admins an email at that point, rather than to the anonymous submitter.
Hi, sorry for the late response – I thought I’d turned on email notifications for this thread.
Yes, I’m using the latest EM, and have checked my spam. The comment notifications are going to the email associated with the ‘guest submitter’ account rather than the email address of the submitter.
I’ve checked wp-mail works, and have set it to use smtp with no change to this problem!
Sorry, I just managed to answer my own question. For anyone looking…
Add a new blank page with title along the lines of ‘Edit your events’
Go to Events Manager > Settings > Pages > Other Pages
Select your new page from the drop down next to ‘Edit events page’.
Now this page shows events that the logged in user has submitted, and takes them to the front-end form to edit – so anyone who has any sort of account with the site can edit/delete/copy their own events.
Hi, yes I noticed that – I changed it and it still didn’t work. I even tried using it as-is and adding a ‘teacher’ field and it still didn’t work. I’m now trying a different search plugin!
Yes, the form uses a dropdown so the events had associated locations with the country explicitly listed. I’m trying to use a different search form plugin now as I couldn’t make the custom fields show in the search despite following the tutorials!