Home › Forums › Calendar Products › Community Events › Email Alert Customization
- This topic has 14 replies, 2 voices, and was last updated 12 years, 11 months ago by
Barry.
-
AuthorPosts
-
April 22, 2013 at 11:26 am #46553
Ethan
ParticipantEmail alerts are great when an event is added. Is there is a way add more info to the email that the admin or even the submitter receives? Like the venue address, phone, web? Changing the text of the subject line?
April 23, 2013 at 7:53 am #46627Barry
MemberHi Ethan,
This is basically similar to this topic – the problem is that, right now, the email alerts are not easy to customize.
If you’re feeling adventurous you could set up a wp_mail filter and customize things that way, but I wouldn’t really recommend that unless this customization is essential.
What I have done however is log this for our dev team as an area needing attention and you can definitely suggest making the emails more customizable over on our UserVoice pages, too, if you want – that way other users can also show their support for this and we can gauge how much of a priority it is.
Thanks!
April 23, 2013 at 11:22 am #46664Ethan
ParticipantOk. I’ve put in a suggestion. In the meantime, can you please let me know where in the plugin the Email Alert portion is coded so that I can take a look?
April 24, 2013 at 9:48 am #46752Barry
MemberSure – if you see my reply in this thread there is a note of just that.
Please do note however that we don’t generally recommend modifications be made directly to core plugin code and can’t offer support for any problems that arise from doing so.
April 24, 2013 at 11:34 am #46778Ethan
ParticipantOk, thank you very much. Thanks for your word of warning on modifying the plugin. I have taken precautions and have backed up original files.
I was able to go in and add a couple of things to the email. Namely, Organizer Phone and Email. However, I’m having trouble getting the Organizer Website to show up. I know the get function for the website is tribe_get_organizer_link, but it seems to be coded slightly different than the phone and email.Any help would be appreciated.
April 25, 2013 at 10:28 am #46849Barry
MemberCan you share your code (don’t paste directly in the forum, though, please use Pastebin, Gist or another similar service) – thanks!
April 30, 2013 at 5:53 am #47240Ethan
ParticipantThanks for the response. Here is the link to the code: http://pastebin.com/rVQmtf2J
I’m specifically looking for help with the section indicated by: /* Does not work 🙁 */
Thanks
April 30, 2013 at 2:21 pm #47283Barry
MemberOK, so you are basically echoing out text instead of returning it – so it is never included in the string. Try changing:
tribe_get_organizer_link( tribe_get_event_meta( $post->ID, '_EventOrganizerID', true ) )To:
tribe_get_organizer_link( tribe_get_event_meta( $post->ID, '_EventOrganizerID', true ), true, false )May 2, 2013 at 6:26 am #47445Ethan
ParticipantThanks, Barry. That get’s me one step closer. It is now adding the link to the email. However, rather than just displaying a linked text like, “http://website.com”, it displays the user’s name, which is linked and will go to the site the user entered.
Any way to make it display the website’s name rather than the user’s name?
Many thanks.
May 2, 2013 at 6:29 am #47446Ethan
ParticipantJust to clarify, I would like for it to display the actual website “link” that the user typed in. (Not the website’s “name”, as specified above.)
May 2, 2013 at 6:54 am #47452Barry
MemberHow about something like this?
esc_url(tribe_get_event_meta( tribe_get_event_meta( $post->ID, '_EventOrganizerID', true ), '_OrganizerWebsite', true ));May 2, 2013 at 11:50 am #47509Ethan
ParticipantThis is great, Barry! It works perfectly. Thanks!
I’ve got one more thing I’d like to add to the email – the full venue address. I was looking around in the code and there seems to be a get function for the full address (i.e. tribe_get_full_address). But I’m not able to get it to output the address to the email.
Many thanks.
May 6, 2013 at 1:38 pm #47716Barry
MemberCan you share your code for that?
May 10, 2013 at 9:10 am #48183Barry
MemberHi Ethan – do you need any further help here?
May 14, 2013 at 12:55 am #48428Barry
MemberI’ll close this thread since I’m guessing you’re all good here.
-
AuthorPosts
- The topic ‘Email Alert Customization’ is closed to new replies.
