Josh

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • Josh
    Participant

    EDIT: The issue also appears a second time in the-events-calendar/src/Tribe/Template/Month.php on line 577

    in reply to: Detect Use of Deprecated Functions? #1107100
    Josh
    Participant

    That works, thanks!

    in reply to: Many Features w/ Hard Dependency on HTML localStorage #1037051
    Josh
    Participant

    Something like this:

    
    window.foo = 'bar';
    

    As opposed to:

    
    window.localStorage.foo = 'bar';
    

    And maybe check to see if localStorage is available before deciding whether or not to use it: http://stackoverflow.com/a/16427747

    in reply to: Many Features w/ Hard Dependency on HTML localStorage #1036635
    Josh
    Participant

    Since you’re asking for other thoughts – I haven’t looked at the code, but I can’t imagine that you’re storing that much. Why not just fall back to memory if local storage isn’t available?

    in reply to: Many Features w/ Hard Dependency on HTML localStorage #1035658
    Josh
    Participant

    Since this issue extends beyond Filter Bar and into core functionality of The Events Calendar, if there’s any way that I can fix at least some of these cases using an existing filter, that would be very much appreciated.

    Can you offer any suggestions? (Otherwise, if there’s nothing you can do, go ahead and close the ticket.)

    in reply to: Remove "None" Default from PRO Additional Fields #1018648
    Josh
    Participant

    The best solution for this was provided in this support topic. The Advanced Custom Fields plugin has absolutely everything I want out of custom fields including and especially the ability to apply the fields conditionally based on post type (so they only affect Event posts).

    Thanks! Feel free to close this ticket.

    in reply to: Feature Request: Description Text for Custom Fields #1017967
    Josh
    Participant

    Ok, I have posted a feature request: http://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/10376586-add-description-text-for-custom-fields

    I will also check out the Advanced Custom Fields plugin – thank you for the suggestion.

    Feel free to close the ticket.

    Thanks!

    in reply to: Show/Collapse Not Hiding Filters Correctly #1017938
    Josh
    Participant

    Ok, no worries. This is arguably a feature rather than a bug – if a user visits the site and opens the filters, maybe it is useful for the filters to be open when the user visit the site next.

    Feel free to close the ticket.

    in reply to: Show/Collapse Not Hiding Filters Correctly #1017637
    Josh
    Participant

    Most of the issue was fixed by fixing the body classes as described here: https://theeventscalendar.com/support/forums/topic/month-view-tooltip-not-working-2/#dl_post-1017636 (the CSS above was no longer necessary)

    Only one small quirk remains: When I open the calendar in a new browser tab, regardless of whether Filters Default State is set to opened or closed, the state is the same as was in the previous browser tab

    This is not affected by disabling the Month View Cache, which would be my only guess. Any thoughts?

    Thanks!

    in reply to: Month-View Tooltip Not Working #1017636
    Josh
    Participant

    I bet you guys love it when people solve their own problems 🙂

    The problem was that the Awake theme uses a custom function ( mysite_body_class() ) for setting body classes instead of the standard body_class(), so any classes added by placing filters on body_class were effectively ignored. The fix was to change the following in header.php:

    Before:

    // header.php
    <body class="<?php mysite_body_class(); ?>">

    After:

    // header.php
    <?
    ob_start();
    mysite_body_class();
    $awake_classes = explode( ' ', ob_get_contents() );
    ob_end_clean();
    ?>
    <body <?php body_class( $awake_classes ); ?>>
    in reply to: Show/Collapse Not Hiding Filters Correctly #1017622
    Josh
    Participant
    in reply to: Month-View Tooltip Not Working #1017620
    Josh
    Participant

    Also worth noting that I am experiencing some other JS oddities with this theme that do not produce any errors: https://theeventscalendar.com/support/forums/topic/showcollapse-not-hiding-filters-correctly/

    in reply to: Validate Presence & Aspect Ratio of Featured Image? #1017434
    Josh
    Participant

    Ah, ok, I didn’t realize Featured Image was a wordpress feature and not an ECP feature. That info is enough to get me started.

    Thanks!

    in reply to: Show Year on Event Page Even if Event in Current Year #1017231
    Josh
    Participant

    The reason I would prefer not to change the “Date without year” setting is because it affects a global value. I wouldn’t know what other templates refer to that value, and in some of those cases, maybe I would want not to show the year. I am effectively abusing that field, because I am putting a year value in the format described as “without year”.

    It’s true, I could just change the single event template – I forgot about that :-/

    I ended up changing the format, because I think it is likely that I want to show the year in all cases that the short format is used. However, it would be helpful to have a list of all templates that use the short form (i.e. without year if event is in current year). Can you provide such a list so I can spot-check them?

    Thank you!

    in reply to: Wrong Posts on List & Photo View #1016495
    Josh
    Participant

    I was able to trace it down to a conflict with the Awake 3.2 theme we are using. For the sake of anybody else reading this, the offending call trace follows:

    views/default-template.php was invoking get_header(); which was calling header.php of the theme. At the bottom of header.php is a call to mysite_before_page_content(); Then, in framework.php, there are several calls to add_action that add various hooks to the mysite_before_page_content function. One of those hooks is mysite_query_posts which preloads posts to be used in a sidebar, etc.

    I’m not sure exactly what the conflict is with that function, but my guess is that its use of global $wp_query conflicts with that same variable that is used in the nav of Events Calendar. The solution then was to avoid calling that function by putting the following line in views/default-template.php before the call to get_header():

    remove_action( 'mysite_before_page_content', 'mysite_query_posts' );

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