• Hi, I’d love to get your thoughts on this.

    I have some embeds on my site like YouTube and Google Maps that leave cookies on the browser.

    I was thinking of using PHP to access the cookie settings chosen by the user on page load to either display them or show a message asking for the user to change their settings to see them. This would necessitate a page refresh if user’s cookie options were changed.

    But it looks like this plugin is mainly dealing with javascript. I would have to create custom functions to trigger either the display of the YouTube embed or display the user message after page load, then also change these embeds once an option had been changed.

    Can you enlighten me on your strategy to deal with this?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kingofmycastle

    (@kingofmycastle)

    Hi, looking into this further it seems the best solution would be for me to handle all of this in JS and use the iframeManager library: https://github.com/orestbida/iframemanager

    I noticed that you already have the integration of this into Pressidium as a feature request for the next 1.8.0 release on GitHub: https://github.com/pressidium/pressidium-cookie-consent/issues/38

    I know I may be asking the unanswerable (sorry) but I don’t have a close deadline to implement this, as long as I add it in place by the early summer my client will be happy. So could you let me know, even as a vague guess, that yes, it should be part of a new release over the next few months, or no, we’ll get to it but maybe not until much later in the year. The answer could potential save me days of unnecessary work.

    Thanks!

    Plugin Contributor overengineer

    (@overengineer)

    Hey, @kingofmycastle!

    Apologies for the delay in getting back to you.

    As you mentioned, this is already on our radar, and it currently sits at a somewhat “medium” priority. It will be addressed after we resolve some issues with a higher priority or a smaller scope—we typically focus on resolving bugs before adding new features.

    It’s on our roadmap for a future release, but we can’t guarantee it will be ready in time for your deadline. It’s more likely to roll out later in the year.

    Thread Starter kingofmycastle

    (@kingofmycastle)

    Hi @overengineer thanks for getting back to me. I’ve managed to integrate iframeManager into Pressidium / WP for my use case (YouTube & Google Maps embeds).

    I’ve left a comment on the existing PCC GitHub issue (#38) as well as the fuller code on the iframeManager GitHub discussions board.

    The gist of it is mainly some custom PHP functions that convert standard iframes and oEmbeds into the format needed by iframemanager (e.g. <div data-service=”youtube” data-id=”<video-id>”></div>) using existing WP and ACF filters during the page draw. The admin WYSIWYG and database is left untouched.

    So when you get around to it feel free to look at that code and take what you need if it’s helpful.

    Plugin Contributor overengineer

    (@overengineer)

    That’s great! Thanks for taking the time to share your insights—we truly appreciate it. We’ll definitely take a closer look at how we can incorporate what you’ve already implemented.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.