Home › Forums › Calendar Products › Events Calendar PRO › Change the Name of Events Calendar
- This topic has 5 replies, 2 voices, and was last updated 12 years, 3 months ago by
Brook.
-
AuthorPosts
-
January 16, 2014 at 4:07 pm #93746
Anthony D’Arco
ParticipantSo, I’m trying to change the name entirely for the Events Calendar. I found that the events calendar is exactly how a school want to display their homework. I was able make all of the changes to that I needed for The Events Calendar, however, when I try to activate Pro, I can’t get the recurring events to appear (or any Pro’s functionality).
I am nearly certain it has to do with that I changed the name of the folder to the-homework-calendar. (the reason for this is I need both regular event calendar as well as the homework calendar…i.e. the same plugin essentially installed twice). Put I need the pro features to work with the homework install (its actually not important that it works with the default plugin).
Does that make sense?
January 17, 2014 at 8:11 am #94019Brook
ParticipantHowdy anthony,
That does make sense. It is easily one of the most interesting use cases I have ever seen. The activation error message pro is undoubtedly coming from here. If you have renamed the class TribeEvents then you are in for a bit of a dilemma. That is referenced at least 100 times in Pro’s code.
That is far from the only dilemma you are facing. Such an intense modification to the code would likely require new post types, query strings, taxonomies, the list goes on and on. Without these things trying to run your plugin side-by-side with another one means they will be pulling from the same data, and stepping all over each other’s toes. A recipe for disaster, and I doubt it will behave how you want. Then if you ever want to update the plugins, you will have the joy of doing this work all over again.
Can what you need be accomplished by having one plugin with separate categories for the different stuff? Furthermore you could even hide some categories from the public view, and only show them to logged in users or those with a certain user role (even a custom one like ‘student’). If you are quite familiar with the WP API, then our API will provide you with all the tools you would need to hide and show events to select user roles. If you are not thoroughly familiar with the WP API, then I would strongly recommend you avoid two plugins. User role modifications like those above are a lot easier than trying to rewrite a couple of plugins.
– Brook
January 17, 2014 at 3:06 pm #94178Anthony D’Arco
ParticipantBrook,
I suppose I wasn’t actually through enough in my description of what I’m trying to do. Here are a couple of additional details that may help you advise me. I am running a multi-site. This particular install does not use the Event Calendar or Pro at all. However, the rest of the sites within the multi-site do.So, that is why I need two installs of the plugin. However, I’m not actually worried about the plugins stepping on each other toes because the install is only ever running one or the other, but never both.
Fortunately, I did not change the TribeEvents class, in-fact, all of my modifications are simply superficial (except changing the folder/plugin name). I’m just changing the labels from Events to Assignments. Unfortunately, I was already aware that every time I upgrade, I get to do this all over again, but tis the life I lead…
One last note, I’m not actually getting an error message when I activate Pro, it simply isn’t adding the Pro functionality to my faux plugin. Does that make sense? I think it has to do with my folder/plugin name change because I tested just changing those two elements, and Pro doesn’t work. So, there must be some reference in Pro to either the folder name or the plugin name, right?
Let me know if this helps at all.
Thank you,
AnthonyJanuary 20, 2014 at 5:13 pm #94931Brook
ParticipantHowdy Anthony,
I am actually able to rename /the-events-calendar/ and activate it along with pro in my local test installation. Pro features activated fine with the renamed plugin.
I am not sure why yours is not working equally well. However, since this is a pretty significant customization it is not something I can provide much support for, especially since I can not duplicate the problem locally. From what I am seeing so far in our code nothing should really prevent this, especially when it does for me. Thus there is no way for me to really point you in the right direction for this customization. It is evidently something unique to your install or server.
I hope you can get it sorted though. If the folder rename is the actual source of the problem, perhaps its not necessary? It does not really show up anywhere publicly except in the source code.
– Brook
January 21, 2014 at 12:51 pm #95269Anthony D’Arco
ParticipantBrook,
I tell you sometimes I feel like a total idiot, I copied an old version of the event calendar plugin. When I updated it, sure enough, it worked. Thank you for you help. Turns out this was actually pretty easy, just a boneheaded move on my part.Thank you,
AnthonyJanuary 21, 2014 at 5:22 pm #95463Brook
ParticipantNo worries! I am glad you got it fixed. Every one has those moments.
– Brook
-
AuthorPosts
- The topic ‘Change the Name of Events Calendar’ is closed to new replies.
