Problem with Borlabs Cookie Plugin Compatibility

Hello,

I am having a problem with compatibility with the plugin: Borlabs Cookie.

I have already been in contact with Borlabs Cookie support about this, and they have referred me to the theme developer.

The issue is that content such as Google Maps or YouTube is not/cannot be blocked by the plugin on "post pages / news pages". On "normal pages", these can be blocked by the plugin.

They said: "There are no hooks available for us to work with."

However, it works on normal pages. Could it be that you still need to adjust something on the post pages / news pages for this to work?

You can see here that the content is blocked (normal page):

https://metal-check.group/schulung-ausbildung/

Here, however, the content is not blocked (news page):

https://metal-check.group/erste-kurse/

In both pages, the videos are inserted the same way, with the video module from BeBuilder.

Could you please take a look at this?

Best regards,

Christoph

Comments

  • Hi,

    We do not support this plugin. However, please ask the plugin support what hooks are needed, and we will check if we can add them.


    Thanks

  • thanks, I will ask the plugin developer about what exactly is needed.

    Any GDPR that you recommend with your theme?

  • We have a built-in GDPR feature in Theme options.

    https://support.muffingroup.com/video-tutorials/gdpr-2-0/


    Best regards

  • This is the reaction of the plugin support

    It’s best to filter the content of a page (HTML) through the_content or a custom filter.

    "Am besten sie filtern den Inhalt einer Seite (HTML) durch the_content oder einen eigenen Filter."

  • Putting BeBuilder content in the the_content filter is impossible because it is a JS object.


    Best regards

  • ok, can you implement it the way it's done on "normal pages"?

    Because the plugin woks on normal pages but only woorks not on news pages

  • Regular pages are built the same way as posts. We do not know how this plugin works, and from our point of view, we do not see any difference, so we have no idea why it works for pages and not for posts.

    With such lack of details, we are not able to help, unfortunately.


    Best regards

  • i just got Info from plugin, developer:


    For a seamless integration to detect iframes, we suggest you provide a filter function for your rendered content.

    It seems that all your template files render the actual content via the Mfn_Builder_Front class in method show(). It would be beneficial if you could provide a filter before outputting the html.This could be done by using an output buffer, e.g. start the buffer at the beginning of the function show() and stop it at the end of said function the output buffer, provide a filter and echo it. Other than that there would not be any required changes. It could look something like this:

    public function show($items = false, $vbtoolsoff = false) {
      ob_start();
      // all existing code
      $content = ob_get_contents();
      ob_end_clean();
      echo apply_filters('your/plugin/filter/name', $content);
    }
    

    To clarify why it works for pages but not for posts: For pages you offer two actions in your page template, mfn_before_content and mfn_after_content, on which we start and end an output buffer, to search for iframes. For other content types, there is no such hook available. A filter on your side would lead to much cleaner code than when an start/end action. After you have provided the new filter, we would also adapt our existing integration for pages.

  • I have passed it on to the dev team.

    As soon as I hear back from them, I will let you know.


    Best regards

  • Thank you!

  • Turning on the buffer for the whole content might have a negative impact on other plugins' functionality, but we will add the action same action mfn_before_content / after as for the pages.

    We will add this action in the upcoming updates.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.