Forum Replies Created
-
AuthorPosts
-
April 24, 2018 at 6:46 pm in reply to: First event in recurring event series redirecting to /all #1515442
ajoranger
ParticipantThis reply is private.
April 23, 2018 at 1:48 pm in reply to: First event in recurring event series redirecting to /all #1514118ajoranger
ParticipantThis reply is private.
April 20, 2018 at 12:29 pm in reply to: First event in recurring event series redirecting to /all #1512608ajoranger
ParticipantHello Jaime,
Here’s a capture of the admin page for one of the events that was doing this.
If you need, I can probably get the issue up on our staging site so you can look at it in action.
Thanks!
ajoranger
ParticipantHello Jaime,
Just wanted to let you know I pretty much figured this out. For anyone else looking for an answer:
I used the following in my functions file:
add_filter( ‘tribe_get_month_view_date’, ‘revert_to_default’ );function revert_to_default($date){
if ( ! $wp_query = tribe_get_global_query_object() ) {
return;
}$today = date_i18n( Tribe__Date_Utils::DBDATEFORMAT, strtotime( date( ‘Y-m-01’, current_time( ‘timestamp’ ) ) ) );
$date = $today;if ( isset( $_REQUEST[‘eventDate’] ) && $_REQUEST[‘eventDate’] ) {
$date = $_REQUEST[‘eventDate’] . ‘-01’;
} else {
if ( ! empty( $wp_query->query_vars[‘eventDate’] ) ) {
$date = $wp_query->query_vars[‘eventDate’] . ‘-01’;
}
}// Confirm the date is valid (who knows what was passed in through $_REQUEST) and revert to today if necessary
return $date;
}This removes the “tribe bar date” as a factor for choosing the month that shows when switching from list to month view. I still couldn’t figure out how to clear out the tribe bar itself, but we realized that we didn’t need the date filter on month view for our purposes.
In order to force the event query to reset on switching views, I did a bunch of additional custom conditionals based on matching strings of $_SERVER[‘HTTP_REFERER’]; and $request = $_SERVER[‘REQUEST_URI’]; to determine if view was being swapped. We also wanted events to not show that are further than six weeks out, so this custom code might not be applicable to anyone else because of this additional parameter.
Anyway, I’m going to close the thread, thanks!
Madeline
April 4, 2018 at 2:14 pm in reply to: Events with a "Different" time rule in Recurrence showing Wrong Timezone #1496909ajoranger
ParticipantResolved.
April 4, 2018 at 2:14 pm in reply to: Events with a "Different" time rule in Recurrence showing Wrong Timezone #1496908ajoranger
ParticipantHello Jaime,
Just wanted you to know I fixed the problem. Thank you for your troubleshooting advice!
Madeline
April 4, 2018 at 11:09 am in reply to: Events with a "Different" time rule in Recurrence showing Wrong Timezone #1496706ajoranger
ParticipantHere is the admin page – screen shot attached. It’s any event where there is a recurrence and then a second recurrence rule with a different time.
I will try some of your suggestions in my local environment.
ajoranger
ParticipantHello Jaime,
I AM the hired developer and so developer level pointers are appreciated! 🙂
I have already read the Tribe Bar article you linked and the Themer’s guide and have made significant customizations already. As far as I can tell, documented resources are very focused on display and templating rather than functionality. I totally understand you needing to focus on customers who need help with default functionality. I would love to be added to a queue for further assistance, though.
I’d really appreciate any pointers on these two specific items:
1. How to clear the tribe bar date without deleting all HTML formatting.
2. How to hook in and change the default month that is displayed when going from month view to list view. Specifically, when it seems the month that first displays relies on the tribe bar date vs on the event query.I don’t want to edit plugin code, so if hooks and functions don’t exist to do these things just let me know. I didn’t find anything on these in the documentation.
Thank you for any further assistance, I’d still like to be added to a queue even if there is a long wait time!
Madeline
April 4, 2018 at 8:37 am in reply to: Events with a "Different" time rule in Recurrence showing Wrong Timezone #1496360ajoranger
ParticipantHello Jaime,
Yeah, I was flipping these settings back and forth trying every setting :-).
I added Chicago back as timezone in General settings. I changed the timezone mode to use the local times for each event. Then I created a new event. It is still behaving as I mentioned. The events using the first time I enter are correct, the “Different” time is showing as 5 hours later than it should. You can check this out at http://teenartspass.urbangateways.org/events/ The event is called Test – there should be Wednesday events at 8am and Tuesday events at 2pm, but instead it is Wednesdays at 8am and Tuesdays at 7pm.
I’ve also attached a screenshot of my general settings as mentioned – it shows UTC as my time and Local as 5 hours later than it should be. When I uninstall The Events Calendar, this is fixed.
Madeline
April 3, 2018 at 9:17 am in reply to: Events with a "Different" time rule in Recurrence showing Wrong Timezone #1495401ajoranger
ParticipantHello Jaime,
Updated everything and still having this issue. Please let me know what else I can try.
Madeline
ajoranger
ParticipantHello Jaime,
Yes I am seeing what you are seeing, but it’s the opposite of what I want. I’d like some pointers on how to customize so that when switching views the filter is NOT retained. So far here is where I’m at:
-When someone chooses a date in Tribe Bar, it filters appropriately.
-When they switch views, it reverts to our desired default query (from today to six weeks out) rather than referring to the date in the Tribe Bar.2 issues remain –
First, when someone switches from List view to Month view, even though it QUERIES from today to six weeks out, the month that first appears is based on the Tribe Bar date entry. So if they choose a June date in List view and switch to Month view it shows an empty June calendar. How can I make the month refer to the query rather than the tribe bar date?
Second, I can’t figure out how to clear out the Tribe Bar date, ideally I could empty it when someone switches views. I have found “unset tribe bar” via a filter, but that removes all of the html and ruins the formatting rather than just removing the value that has been set.This is custom stuff, I don’t want the calendar to follow default behavior if at all possible.
Thanks!
-
AuthorPosts
