ajoranger

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • ajoranger
    Participant

    This reply is private.

    ajoranger
    Participant

    This reply is private.

    ajoranger
    Participant

    Hello 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!

    in reply to: Tribe Bar – remove queries when changing views #1499060
    ajoranger
    Participant

    Hello 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

    ajoranger
    Participant

    Resolved.

    ajoranger
    Participant

    Hello Jaime,

    Just wanted you to know I fixed the problem. Thank you for your troubleshooting advice!

    Madeline

    ajoranger
    Participant

    Here 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.

    in reply to: Tribe Bar – remove queries when changing views #1496388
    ajoranger
    Participant

    Hello 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

    ajoranger
    Participant

    Hello 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

    ajoranger
    Participant

    Hello Jaime,

    Updated everything and still having this issue. Please let me know what else I can try.

    Madeline

    in reply to: Tribe Bar – remove queries when changing views #1495381
    ajoranger
    Participant

    Hello 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!

Viewing 11 posts - 1 through 11 (of 11 total)