• Resolved Kovas

    (@zerocore)


    Hello,

    I have a video popup button on every event in the list view.
    While it works on initial page load, once I load a different event date/page it doesn’t work anymore. It’s probably because the popup script of not aware of new buttons that are loaded with ajax(?).

    What can I do about it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @zerocore, thanks for reaching back to us.

    I’m curious, it seems like this is a customization for the button since we do not have a popup button for videos on events. Regardless I’d like to help you and see what I can do. But I would need to see the page first. Could you provide us with the direct URL to the page you’re having issues with?

    I want to note here that as per our Support Policy, we cannot provide full support for Customization or third-party integrations, even if we have a guide on our Knowledge base. It is still up to you as the end-user to implement this. https://theeventscalendar.com/knowledgebase/k/what-support-is-provided-for-license-holders/

    Looking forward to helping you with this one.

    Best,
    Abz

    Thread Starter Kovas

    (@zerocore)

    Thank you, here’s the page.
    The button is Stackable Video Popup Block which is linked to ACF field.

    And there are two issues:
    1. If we go back to past events, popups do not work anymore.
    2. If we load past events directly or refresh the page, popups do work, but all the posts except first one pull dynamic data from the last post. Native The Events Calendar data is fine, but ACF fields or even dynamic page title is the same on all posts but the first one.

    Thread Starter Kovas

    (@zerocore)

    Actually, it has something to do with how Stackable handles dynamic content. When I remove all their blocks with dynamic content — ACF fields work just fine.

    I’ll try to contact them and see what’s up ??

    • This reply was modified 2 years, 9 months ago by Kovas.
    Thread Starter Kovas

    (@zerocore)

    I tried Stackable’s Dynamic Content on regular post archive and it works as intended.
    So now I’m not sure who to blame ??

    It look like the loop is different when pages are loaded/refreshed (dynamic content is overriden with the latest) from when it’s accessed via calendar navigation (correct behavior).

    Plugin Support Abz

    (@abzlevelup)

    Hi @zerocore, appreciate you taking the time to investigate further of this issue. We would also definitely take note of this and the findings you provided here.

    At this time, we cannot provide a direct solution since this is customization as per our support policy. So if you need outside Development help, you can also look at our partners over at Codeable: https://theeventscalendar.com/knowledgebase/k/custom-development/.

    Appreciate your patience. Have a great day.

    Best,
    Abz

    Thread Starter Kovas

    (@zerocore)

    Hello,

    I wouldn’t call this a customization. It’s 2022 and so many good themes are offering some sort of solution to build content with blocks (and dynamic fields) and attach it via hooks. Which doesn’t play very well with The Events Calendar ant it feels like it’s lagging behind…

    Anyway, all I needed was:

    var popup = {};
    
    (function ($, obj) {
      "use strict";
      var $document = $(document);
    
      obj.ready = function () {
        $document.on("afterAjaxSuccess.tribeEvents", function () {
          window.stackableVideoPopup.init();
        });
      };
    
      $document.ready(obj.ready);
    })(jQuery, popup);
    

    Sure, window.stackableVideoPopup.init(); depends on my block plugin, but the rest I had to dig out my self…

    • This reply was modified 2 years, 8 months ago by Kovas.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Pagination (ajax?) and Popup script issue’ is closed to new replies.