Matt

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Matt
    Participant

    Fixed, thank you.

    in reply to: Remove deleted events? #1404730
    Matt
    Participant

    Seems like there is more than one feature idea for the same functionality. For example, take a look at this feature idea, the poster is asking for events to be updated, so that “users calendars are updated automatically with new events, changes to events and so forth”.

    in reply to: iCal `End Date` not importing #1200685
    Matt
    Participant

    Thanks Cliff, understood.

    in reply to: Tooltips not showing, custom theme #1163589
    Matt
    Participant

    body_class() needed to be added to the <body> in header.php, my theme had wp generated classes on the <html> only.

    Hope this helps someone else.

    Consider adding $(‘html’) to tribe-events.js ?

    in reply to: Tooltips not showing, custom theme #1162865
    Matt
    Participant

    http://brand-new-wp-install.com/events/

    define(‘WP_DEBUG’, true);
    define(‘SCRIPT_DEBUG’, true);

    No child / root theme here.

    in reply to: Tooltips not showing, custom theme #1162283
    Matt
    Participant

    Hmm.. not exactly. But my JSON seems valid, no parsing issues. When I try the single-event.php data-attribute JSON parsing code in the console, it returns all my event listings just fine:

    
    /* Plain javascript to loop over all events in grid view, get the json string, convert to object and log event title: */
    (function (window, document) {
    
      var events = document.querySelectorAll('.tribe_events');
    
      for (var i=0; i < events.length; i++) {
    
        var event = events[i],
          data = event.getAttribute('data-tribejson'),
          obj = JSON.parse(data);
    
        console.log('Event title is: ' + obj.title);
      }
    
    })(window, document);
    

    Console:

    
    VM7097:1 Event title is: My Event Title
    VM7097:1 Event title is: My Other Event Title
    ...
    

    Same thing with the jQuery snippet.

    So.. where is the hangup? What else might prevent tribe-events-pro.js from doing it’s thing?

    in reply to: Tooltips not showing, custom theme #1161760
    Matt
    Participant

    I ran into the following thread, seems like closing tags need to be escaped in the tooltip <script type=”text/html” id=”tribe_tmpl_tooltip”> tags – what hook / function outputs that? Maybe I have some parsing conflict there.

    https://wordpress.org/support/topic/latest-release-breaks-the-events-calendar-by-tribe/

    Re-tested, all plugins disabled except the following required for testing:

    • advanced-custom-fields-pro
    • events-calendar-pro
    • the-events-calendar
    • the-events-calendar-importer-ical

    Renamed twentysixteen to twentysixteen-testing.

    Confirmed, using wp-admin > Events > Settings > Display tab > Events template > “Default Events Template” option

    My theme, (no tooltips, Continue Reading missing):

    
    {
      "i18n": {
        "find_out_more" : "Find out more \u00bb",
        "for_date"      : "Events for"
      },
      "eventId"         : 5167,
      "title"           : "Sample Event Title",
      "permalink"       : "http:\/\/wi-2016.test\/event\/sample-event-title\/",
      "imageSrc"        : "",
      "dateDisplay"     : "September 8 @ 8:00 am - 5:00 pm",
      "imageTooltipSrc" : "",
      "excerpt"         : "<p>Sample event description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tincidunt venenatis diam, ut dictum nunc rutrum at. Morbi eleifend auctor convallis. Duis porta pulvinar risus a hendrerit. Pellentesque condimentum, turpis vel hendrerit porta, neque ipsum faucibus nibh, eu bibendum libero lorem bibendum ipsum. Nunc luctus, ligula vel pulvinar vehicula, justo ante dignissim <\/p>",
      "categoryClasses" : "tribe-events-category- post-5167 tribe_events type-tribe_events status-publish hentry tribe-events-last",
      "startTime"       : "September 8 @ 8:00 am",
      "endTime"         : "September 8 @ 5:00 pm"
    }
    

    Twenty Sixteen (yes tooltips, Continue Reading shows up):

    
    {
      "i18n": {
        "find_out_more" : "Find out more \u00bb",
        "for_date"      : "Events for"
      },
      "eventId"         : 5167,
      "title"           : "Sample Event Title",
      "permalink"       : "http:\/\/wi-2016.test\/event\/sample-event-title\/",
      "imageSrc"        : "",
      "dateDisplay"     : "September 8 @ 8:00 am - 5:00 pm",
      "imageTooltipSrc" : "",
      "excerpt"         : "<p>Sample event description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus tincidunt venenatis diam, ut dictum nunc rutrum at. Morbi eleifend auctor convallis. Duis porta pulvinar risus a hendrerit. Pellentesque condimentum, turpis vel hendrerit porta, neque ipsum faucibus nibh, eu bibendum libero lorem bibendum ipsum. Nunc luctus, ligula vel pulvinar vehicula, justo ante dignissim &hellip; <a href=\"http:\/\/wi-2016.test\/event\/sample-event-title\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"Sample Event Title\"<\/span><\/a><\/p>",
      "categoryClasses" : "tribe-events-category- post-5167 tribe_events type-tribe_events status-publish hentry tribe-events-last",
      "startTime"       : "September 8 @ 8:00 am",
      "endTime"         : "September 8 @ 5:00 pm"
    }
    

    Also, twentysixteen-testing throws a console warning (last line):

    
    JQMIGRATE: Migrate is installed, version 1.4.1
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: Tribe Events JS init, Init Timer started from tribe-events.js."]
    tribe-events.min.js?ver=4.2.6:1 TEC Debug: Browser and events settings information:
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-pro.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-bar.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-ajax-maps.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-ajax-calendar.js successfully loaded, Tribe Events Init finished"]
    tribe-events.min.js?ver=4.2.6:1 Tribe JS Init Timer: 45.896ms
    tribe_tmpl_tooltip:1 '//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.
    

    My theme doesn’t:

    
    JQMIGRATE: Migrate is installed, version 1.4.1
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: Tribe Events JS init, Init Timer started from tribe-events.js."]
    tribe-events.min.js?ver=4.2.6:1 TEC Debug: Browser and events settings information:
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-pro.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-bar.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-ajax-maps.js successfully loaded"]
    tribe-events.min.js?ver=4.2.6:1 ["TEC Debug: tribe-events-ajax-calendar.js successfully loaded, Tribe Events Init finished"]
    tribe-events.min.js?ver=4.2.6:1 Tribe JS Init Timer: 32.484ms
    
    • This reply was modified 9 years, 7 months ago by Matt. Reason: remove from console warning
Viewing 7 posts - 1 through 7 (of 7 total)