Home › Forums › Calendar Products › Community Events › Deleting an Event Results in a small glitch that could be improved on
- This topic has 2 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
April 11, 2015 at 11:45 pm #954846
stephenschildbach
ParticipantMy client wants a smooth UX that the Events Calendar usually accomplishes GREAT. But, in a couple of instances improvements could be made:
When deleting an event you are taken to a sparse interim page. The back button on this page is javascript which takes you back to the list still containing the deleted event. We as developers know to refresh the page and that ghost of an event will be gone, but regular users are going to be thinking the event didn’t get deleted. I fixed this by replacing the “back” link in javascript with the link to the user’s list. I temporarily hacked this in the plugin. I’m wondering if it is possible to overwrite the file found in: the-events-calendar-community-events/tribe-community-events/tribe-community-events.php as similarly done with the files in the view folder? I do understand where to put the files from the view folder, but this file is outside of that, so I’m not sure where to put it?
Back to the interim page (that says “Trashed Event #1234” and other impersonal tech terms that the user won’t understand, when you hit the delete button): Why have this page? How about forwarding you right back to the event list? This also occurs when submitting and updating an event. This action should take you back to the list or take you to the event view. The interim page is not needed. I found the file that these actions are located, but don’t understand the code. Is there a way to rewrite the code to bypass this interim page?
More important that is an actual glitch that needs to be
April 12, 2015 at 7:44 am #954877George
ParticipantHey Stephen,
Events are deleted in a way that isn’t specific to The Events Calendar – events are just a WordPress post type, and so deleting them simply uses the default WordPress deletion and trash mechanisms.
In regards to your other question:
I’m wondering if it is possible to overwrite the file found in: the-events-calendar-community-events/tribe-community-events/tribe-community-events.php as similarly done with the files in the view folder?
No, it’s not possible to drop a version of this file into your theme and have it be used instead – this file, and in fact basically all the files outside of the /views folder, are essential plugin files. You can definitely go ahead and rewrite them, rewrite the plugin, etc., but it nullifies our ability to offer support for that installation of the modified plugin, and could make updating to new versions a massive pain and/or something that would break the site. So, since Views are much less likely to cause problems like this, and basically are just display-related template files, these are very easy to customize and make versions of in your theme. Core plugin files are not – much like how WordPress themes themselves sit on top of WordPress, but the WordPress Core runs underneath and is not something you should ever modify unless you’re actively aware in what that would mean for the future of your site.
Is there a way to rewrite the code to bypass this interim page?
Earlier, it seemed like you were talking about the functionality of events in the Admin – with your questions towards the end of your post here, are you instead talking about Community Events on the front-end? If so, can you take screenshots of the specific areas you’re referring to, just so we can be certain we’re on the same page?
Let us know – thanks!
GeorgeJuly 7, 2015 at 6:31 am #984003Support 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 ‘Deleting an Event Results in a small glitch that could be improved on’ is closed to new replies.
