websherpa

Forum Replies Created

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

    Thank you, that information is helpful. I conduct some additional testing to see if I can isolate a cause and report back here when I do.

    websherpa
    Participant

    LOL, funny enough Kevin chimed in and helped me find the “tribe_geosearch” call (You guys at TEC AND Kevin at PP have been AMAZING!). My resolution for the conflict between PP and TEX Ajax calls now references all of the available TEC views (I think). Depositing it here for future reference:
    (put in theme’s functions.php file)
    /* TEC Calendar – Temporary fix for Press Permit month/day/list AJAX link issue */

    function define_tec_ajax( $ajax_read_actions ) {
    $ajax_read_actions = array_merge( $ajax_read_actions, array( ‘tribe_calendar’, ‘tribe_list’, ‘tribe_event_day’,’tribe_event_week’,’tribe_geosearch’,’tribe_photo’ ) );
    return $ajax_read_actions;
    }
    add_filter( ‘pp_ajax_read_actions’, ‘define_tec_ajax’ );

    Thank you again TEC!

    Wayne

    in reply to: jQuery conflict reloaded #366212
    websherpa
    Participant

    But I think the issue might come because both my theme and TEC call two different versions of jquery-ui. So eliminating my call resolves the conflict.

    http://www.campwaterdown.com/wp-content/plugins/the-events-calendar/vendor/jquery/smoothness/jquery-ui-1.8.23.custom.css?ver=3.9.1’

    http://www.campwaterdown.com/wp-content/themes/peekaboo/js/jquery-ui-1.8.13.custom.min.js?ver=3.9.1’

    Since I am in learning mode (and thank you for inspiring me to learn how to use Chrome’s Developer Tools to debug what’s going on), in general terms, is there anything one might normally do in programming includes to avoid this kind of collision? (You don’t have to teach me, but I thought it would be interesting to know if there is a standard method.)

    in reply to: jQuery conflict reloaded #366179
    websherpa
    Participant

    (I forgot to mention that I was making updates on a dev version of the site, so I did remove the issue by removing the call to query-ui as an interim measure.)
    Further to what you found above, I am by no means a javascript programmer at all ; but is it just me or is there something wrong with the syntax of the code in the referenced file (/plugins/the-events-calendar/resources/tribe-events.min.js?ver=3.6.1) at line 12 where the second “undefined”!==typeof is embedded. To me it seems to be missing a conditional statement.:

    c(this).addClass(“tribe-events-loading”).css(“opacity”,0.25)};
    if(“undefined”!==typeof c.fn.datepicker)
    {var b=c.fn.datepicker.noConflict();c.fn.bootstrapDatepicker=b}”undefined”!==typeof tribe_bootstrap_datepicker_strings&&null!=tribe_bootstrap_datepicker_strings.dates&&(c.fn.bootstrapDatepicker.dates.en=tribe_bootstrap_datepicker_strings.dates)})(jQuery);

    in reply to: jQuery conflict reloaded #361912
    websherpa
    Participant

    Thank you for the assistance. I’ve updated the theme so that it detects whether or not the <script></script> tags are present in the Google Analytics call and adjusts accordingly.

    We hit upon the jQuery version idea at the same time (I had already tried and switched to the WordPress bundled version), but that was inconsequential (site works fine with it, but doesn’t solve the original issue). The problem boils down to some conflict between TEC jQuery and the jQuery-ui include. I’m not entirely certain if I actually need to use jQuery-ui (I didn’t write the original theme) but it appears unneeded for the “supersize” function that is the one being affected:
    [quote][code]
    &lt;script type="text/javascript"&gt;
    jQuery(function($){
    $.supersized({
    slides : [ { image : ‘http://dev.campwaterdown.com/wp-content/uploads/2012/04/campwaterdown_background.png&#8217; } ]
    });
    });
    &lt;/script&gt;
    [/code][/quote]

    If jquery-ui (any version) is included, then in the Single Event view of TEC, the jQuery supersize function gets interrupted and can’t complete.

    Unless you can think of another obvious potential source for the issue, I am pretty certain I can live without jquery-ui as a way around the conflict.
    Thank you again for your attention and help!
    Wayne

    websherpa
    Participant

    I appreciate this. Yes, I do need Press Permit to filter and restrict events based on Role or Group Membership (which Press Permit facilitates).

    I have a feeling I will be stalemated going via Press Permit, although I am trying, because they will say “It works correctly and filters correctly when first loading a page, so the fault may lie in the method that TEC Pro uses to link to a Prev/Next Month view.”

    I have a temporary work-around, I am forcing a browser refresh each time the Prev / Next month links are pressed. Unfortunately this takes double the loading time.

    websherpa
    Participant

    Thank you for all the time on this.
    Don’t I want Press Permit to filter it’s queries? (Isn’t that the point of Press Permit, to filter Posts and Custom Post Types by User / Group Filters?) or am I misunderstanding the use of terms (sorry I am not a hardcore WP coder, only glancingly familiar with the mechanics of it).

    websherpa
    Participant

    ok, never mind, the forum filters the link HTML.

    essentially I am adding onclick=”location.reload();” to the $html=

    websherpa
    Participant

    Oops, my guess at the forum’s code tag didn’t work properly or it’s filtered, here’s the code again untagged:
    /**
    * Display an html link to the previous month. Used in the month navigation.
    *
    * @return void
    * @author Jessica Yazbek
    * @uses tribe_get_previous_month_text()
    * @since 3.0
    **/
    function tribe_events_the_previous_month_link() {
    $url = tribe_get_previous_month_link();
    $date = TribeEvents::instance()->previousMonth( tribe_get_month_view_date() );
    $text = tribe_get_previous_month_text();
    $html = ‘<span>«</span> ‘. $text .’ ‘;
    echo apply_filters(‘tribe_events_the_previous_month_link’, $html);
    }

    /**
    * Display an html link to the next month. Used in the month navigation.
    *
    * @return void
    * @author Jessica Yazbek
    * @uses tribe_get_next_month_text()
    * @since 3.0
    **/
    function tribe_events_the_next_month_link() {
    $url = tribe_get_next_month_link();
    try {
    $date = TribeEvents::instance()->nextMonth( tribe_get_month_view_date() );
    $text = tribe_get_next_month_text();
    $html = ‘‘. $text .’ <span>»</span>‘;
    } catch ( OverflowException $e ) {
    $html = ”;
    }
    echo apply_filters(‘tribe_events_the_next_month_link’, $html);
    }

    websherpa
    Participant

    Seems a little silly to do, but modifying the Plugin code like this with Javascript onclick function to force a page reload does fix the problem for me (but takes twice as long to load a calendar, of course):

    File: the-events-calendar/public/template-tags/month.php
    Starting at Line241
    /**
    * Display an html link to the previous month. Used in the month navigation.
    *
    * @return void
    * @author Jessica Yazbek
    * @uses tribe_get_previous_month_text()
    * @since 3.0
    **/
    function tribe_events_the_previous_month_link() {
    $url = tribe_get_previous_month_link();
    $date = TribeEvents::instance()->previousMonth( tribe_get_month_view_date() );
    $text = tribe_get_previous_month_text();
    $html = '<span>«</span> '. $text .' ';
    echo apply_filters('tribe_events_the_previous_month_link', $html);
    }

    /**
    * Display an html link to the next month. Used in the month navigation.
    *
    * @return void
    * @author Jessica Yazbek
    * @uses tribe_get_next_month_text()
    * @since 3.0
    **/
    function tribe_events_the_next_month_link() {
    $url = tribe_get_next_month_link();
    try {
    $date = TribeEvents::instance()->nextMonth( tribe_get_month_view_date() );
    $text = tribe_get_next_month_text();
    $html = ''. $text .' <span>»</span>';
    } catch ( OverflowException $e ) {
    $html = '';
    }
    echo apply_filters('tribe_events_the_next_month_link', $html);
    }

    I realize that modifying the parent code isn’t a good idea, but I throw this out there because it illustrates my issue (and a relative solution).

    websherpa
    Participant

    Unfortunately that didn’t work for me (no change in behaviour that I can detect).

    The only thing I can think of, off-hand, is forcing a page refresh when clicking those next/prev month links. If you Open As New Tab the next/prev month links, then it will force a refresh and the filtered events appear.

    Unfortunately I don’t know how to modify the code for the links to make that happen.

    websherpa
    Participant

    This reply is private.

    websherpa
    Participant

    This reply is private.

    websherpa
    Participant

    (Keep in mind that the two work cooperatively together and do the CORRECT filtering in all cases EXCEPT when you use the “Previous Month” “Next Month” links in the Calendar view. Something about the way the data is reloaded during that process is different than during an original page load or refresh.)

    I am happy to provide FTP access to a development version of the site in question so you can access the code directly, or if you would like me to forward a copy of the plugin, just provide me with an email address.

    in reply to: Conflict with Press Permit Resolved #236378
    websherpa
    Participant

    Problem is (and I am just going to post a report about this problem), you NEED to have Events as Filtered Post Types in Press Permit IF you want to be able to filter Calendar Event output by Press Permit Group Permissions. I get mixed results with different Web Browsers on the Mac, Chrome being the main culprit.

    (I will post my details in a separate thread.)

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