Home › Forums › Calendar Products › Events Calendar PRO › Organizer Page Taking Over BuddyPress Profile Page
- This topic has 3 replies, 2 voices, and was last updated 7 years, 12 months ago by
jasonfant.
-
AuthorPosts
-
April 17, 2018 at 2:23 pm #1509692
jasonfant
ParticipantI’m having a problem with Events Calendar Pro and BuddyPress playing nicely together. When a user clicks on a BuddyPress member’s link in the members directory, if that member also happens to be an event organizer, The Events Calendar Pro intercepts the request and redirects the user to the Member’s Organizer page.
The slug for the profile is http://[websiteurl]/members-directory/%5Bmembers-name%5D and the redirect sends the user to http://[websiteurl]/organizers/%5Bmembers-name%5D
How can I stop this behavior? I can’t find any settings to control this. Thanks.
April 17, 2018 at 7:52 pm #1509807jasonfant
ParticipantSo I’ve traced the rewrite to the Tribe__Events__Rewrite code and commented out line 199 which specifies the ORGANIZER_POST_TYPE as a valid candidate for rewriting the URL. I’ve included a snippet below:
196: $supported_post_types = array(
197: Tribe__Events__Main::POSTTYPE,
198: Tribe__Events__Main::VENUE_POST_TYPE,
199: /*Tribe__Events__Main::ORGANIZER_POST_TYPE,*/
200: );Obviously this isn’t a long term solution because this will get overridden on an update and I’m not sure what else I’m breaking by doing this (though I haven’t found anything broken yet). What is the long term solution for this. Surely this isn’t intentional behavior.
Thanks in advance for your help. I figured I’d just give an update as to where I am currently.
Jason
April 18, 2018 at 7:29 pm #1510831jasonfant
ParticipantJust checking in. I haven’t heard anything about this ticket today. Thanks for your help.
April 19, 2018 at 6:22 am #1511128Jaime Marchwinski
KeymasterHi Jason,
Thanks so much for reaching out!
Glad that you were able to find the source of the issue.
Instead of editing our plugin code directly, I’d recommend following the steps outlined in our Themer’s Guide and copying and editing the code there.
Let me know if you have any other questions on this topic!
Thanks,
Jaime
May 11, 2018 at 9:35 am #1528338Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Organizer Page Taking Over BuddyPress Profile Page’ is closed to new replies.
