Home › Forums › Calendar Products › Community Events › Link in the admin’s notification email
- This topic has 14 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
September 30, 2013 at 12:34 pm #68401
Rafael
ParticipantHello support
When users submit a community event the admin is notified. In the notification email to the admin there’s a link to the submitted event. This link leads to the “front-end” editor of the event (the same interface as the user had who submitted the event).Wouldn’t it make much more sense to have the link lead directly to the “back-end” of the event, that is to the WordPress editor?
So instead of:
http://www.mywebsite.com/events/submit/edit/event/postid/
have the link lead to:
http://www.mywebsite.com/wp-admin/post.php?post=postid&action=editThat’s what I’d like to do. Can you help me with it?
September 30, 2013 at 1:35 pm #68414Casey
ParticipantThanks for stopping by, and I’ll see if I can help you out. I’ve submitted this request to one of developers to take a look at, so please stand by while I wait to hear back their response.
Thanks!
September 30, 2013 at 1:43 pm #68417Casey
ParticipantJust got a response. It looks like we don’t have a convenient filter to allow you to easily change the link. However, you should be able to write some code to filter on ‘wp_mail’ to modify the link that is sent.
I know that’s not an ideal solution, but if you’re looking for an easier built-in way to do this, please suggest a feature on our UserVoice page here: http://tribe.uservoice.com
I hope that helps. Thanks!
October 1, 2013 at 1:03 am #68491Rafael
ParticipantThanks for your prompt response.
How would I go about writing such code to filer on ‘wp_mail’? Is there some sample code?October 1, 2013 at 8:00 am #68541Casey
ParticipantUnfortunately I don’t have a code sample for something like this, but you can read the documentation (which has a few basic filter examples) for wp_mail here: http://codex.wordpress.org/Function_Reference/wp_mail
Hope that helps. Good luck!
October 1, 2013 at 10:01 am #68584Rafael
ParticipantI’ve found another solution. It’s a hack, but it works. Here’s what I did in case someone is interested.
I found the code for the link in the file:
the-events-calendar-community-events/lib/tribe-community-events.class.php
on line 1279. I changed that line from:$message .= ” . $this->getEditButton( $post, __( ‘Review Event’, ‘tribe-events-community’ ) );
to:
$message .= ” . ‘‘ . __( ‘Review Event’, ‘tribe-events-community’ ) . ‘‘;
Of course this change is lost when the plugin gets updated. But for the moment this works for me. Maybe it helps someone else with the same issue.
October 1, 2013 at 10:04 am #68586Rafael
ParticipantOoops, the code I entered above doesn’t get displayed correctly. How can I show code in the comment?
October 1, 2013 at 11:07 am #68600Casey
ParticipantGreat! Glad to hear you were able to get this done.
Try using a site like http://pastebin.com/ to paste your code into the thread.October 5, 2013 at 5:05 am #69461Rafael
ParticipantI’ve found another solution. It’s a hack, but it works. Here’s what I did in case someone is interested.
I found the code for the link in the file:
the-events-calendar-community-events/lib/tribe-community-events.class.php
on line 1279. I changed that line from:to:
Of course this change is lost when the plugin gets updated. But for the moment this works for me. Maybe it helps someone else with the same issue.
October 5, 2013 at 5:07 am #69462Rafael
ParticipantI’ve found another solution. It’s a hack, but it works. Here’s what I did in case someone is interested.
I found the code for the link in the file:
the-events-calendar-community-events/lib/tribe-community-events.class.php
on line 1279. I changed that line from:to:
Of course this change is lost when the plugin gets updated. But for the moment this works for me. Maybe it helps someone else with the same issue.
October 5, 2013 at 5:11 am #69463Rafael
ParticipantMy last two comments above are attempts to embed code from pastebin.com (the first one using javascript, the second using iframe), but it does not seem to work.
Am I doing something wrong or is it simply not possible to show/embed code into this thread?October 5, 2013 at 6:51 am #69469Casey
ParticipantSwissvegan,
SO sorry about that! We’re working on fixing code formatting in our forum and should be updating that soon. In the mean time, just paste the URL to the pastebin code that you saved so users can go directly to pastebin to view it. Thanks!October 5, 2013 at 7:12 am #69473Rafael
ParticipantThanks Casey for your prompt response. Ok, so here’s the solution that worked for me.
In the file:
the-events-calendar-community-events/lib/tribe-community-events.class.php
on line 1279. I changed that line from the code at:
http://pastebin.com/gNqQdNG6
to the code at:
http://pastebin.com/fGmtAYUgMaybe this solutions helps someone.
October 5, 2013 at 7:14 am #69474Casey
ParticipantAwesome! Since you’ve gotten sorted this out, I’m going to mark this thread “Answered” and close it out.
We really appreciate your support and please let us know if you need anything else in the future. If you find yourself with a few minutes and would be so kind as to give us a “Works” rating or a positive star voting on the WordPress.org repo (http://wordpress.org/extend/plugins/the-events-calendar/), or even a shoutout to your followers on Facebook or Twitter, it would mean a lot to us. Thanks again for using the plugin.
July 7, 2015 at 6:28 am #981314Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Link in the admin’s notification email’ is closed to new replies.
