Home › Forums › Calendar Products › Community Events › New event: add name/mail of creator to "new event" notice mail
- This topic has 7 replies, 3 voices, and was last updated 10 years, 7 months ago by
George.
-
AuthorPosts
-
September 4, 2015 at 9:04 am #1002147
Oliver
ParticipantHi,
when a new event is typed in the event submission form a mail can be sent to get someone informed.
Is it possible to integrate in this mail the name and e-mail-address of the creator? (maybe adding a filter or just add it in the relevant php-file -> which file?)Background: it often happens that the event data is obviously wrong (time, etc.), so it would be very easy in this way to contact the creator of the event and ask relevant questions.
Best regards,
OliverSeptember 4, 2015 at 3:47 pm #1002316George
ParticipantHey Oliver,
You can totally customize the Community Events notifications emails by making a custom version of the following template file:
views/community/email-template.php
To make a custom version of template files, you basically just need to follow the steps outlined in this guide here → https://theeventscalendar.com/knowledgebase/themers-guide/
As for getting author info and other data, all of these things are possible with WordPress functions – you can search for functions related to getting specific data on http://codex.wordpress.org
I hope all this information helps!
Best of luck with your customizations,
GeorgeSeptember 9, 2015 at 2:48 pm #1003510Oliver
ParticipantThanks George! That sounds like a good solution.
I will try that the next days.Please leave the ticket open until then.
Regards,
OliverSeptember 10, 2015 at 8:54 am #1003747George
ParticipantHey Oliver,
I’m glad that it sounds promising! I will indeed leave this ticket open, but there are two things worth noting before I do so:
First is that we don’t offer support for code customizations here. I’m happy to help if I can! I just wanted to set the expectation so that if you post more in this thread for more specific code-level questions about your email template customizations, I’ll do my best to help but might not be able to provide code support. If you have problems getting the template to even load or something, for example, then of course I’m here to help! 🙂 Just wanted to put out that disclaimer about more specific code-level questions if they arise.
The second thing is that we have an automatic Forum bot who closes threads after 15 days of inactivity – so if you see a “Support Droid” comes along and closes this thread, it’s nothing personal! Just a bot closing the thread automatically – if this happens, no worries, just open a new thread any time and include a link in it back to this thread for context, we can pick up right where we left off.
Cheers!
GeorgeSeptember 10, 2015 at 1:09 pm #1003872Lucion
ParticipantTo dove-tail onto this ticket, is there a filter or action related to the Meta area of the Edit Event page on the admin dashboard, particularly related to the Author?
The purpose of adding additional information there would be to add a simple email hyperlink, so that an admin to send a question or response to the community event submission (without having to go to Dashboard / Users and look up that user’s information).
September 11, 2015 at 8:30 am #1004274George
ParticipantHey Lucion,
I’m not 100% certain about what you’re looking for, to be honest, but if you want to customize things in the edit screen related to either the Author or to custom Meta fields, these are general WordPress things and not things generated specifically by our plugin. So you might find it helpful to look for general WordPress resources on this matter.
For example, here’s a list of admin-facing actions → https://codex.wordpress.org/Plugin_API/Action_Reference#Administrative_Actions
Cheers,
GeorgeSeptember 21, 2015 at 1:22 pm #1007219Oliver
ParticipantThanks George! Your hints have been very helpful!
I was able to change the mail-template! 🙂Regards,
OliverSeptember 21, 2015 at 1:53 pm #1007234George
ParticipantAwesome! Thanks for the update Oliver. Keep good back-ups of your custom templates and best of luck with your site 🙂
Cheers,
George -
AuthorPosts
- The topic ‘New event: add name/mail of creator to "new event" notice mail’ is closed to new replies.
