Ben
Forum Replies Created
-
Forum: Plugins
In reply to: [Tidio – Live Chat & AI Chatbots] Script Output too lateHi Olek,
Thank you very much for your quick help in resolving this issue.
Best regards,
BenForum: Plugins
In reply to: [Tidio – Live Chat & AI Chatbots] Script Output too lateHi Olek,
A priority of 1000 would make it work out of the box, and the extra filter is a nice way for other systems to tweak the priority for their own compatibility needs.
There is no defined standard for priorities. I would recommend using the default priority of 10 for your script, as it does not rely on any third party JavaScript. I do not see a reason to change the priority in the first place.
Thanks a lot for the quick fix!
Best regads,
BenForum: Plugins
In reply to: [Tidio – Live Chat & AI Chatbots] Script Output too lateHi Olek,
Thanks for responding.
- Are you attempting to modify the script via the script_loader_tag filter?
No. We use a buffer to capture the website content so we can detect and block scripts that require consent. Depending on the WordPress version and the active theme, we either use our own buffering system or the one introduced with WordPress 6.9. - Is the problem specifically with Borlabs Cookie, or does it affect other consent tools as well?
This likely affects other consent tools and caching plugins too, since many of them rely on thewp_footer()hook. - Are you trying to block execution until consent is granted, or only to rewrite the <script> tag?
We need to rewrite the tag. - Are you relying on WordPress’ script enqueue system, or expecting interception of a raw <script> tag?
No. Your plugin is actually a good example of why relying on this method is not reliable. - Would hooking earlier in wp_footer (e.g., priority 20 or 100) resolve your issue, or do you require full control over the tag output?
If you could change it to 20 or 100, that would be great.
Best regards,
Ben from BorlabsThe issue has been resolved.
Hi Mehmet, feel free to reach out to us at https://borlabs.io/support/ and we’ll happily provide you with a license for testing. Cheers, Ben from Borlabs.
- This reply was modified 10 months, 4 weeks ago by Ben.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieWe are currently testing an upcoming update that includes a small adjustment to improve compatibility with Preferred Languages. Once all major multilingual plugins have been successfully tested, the change will be included in update 3.3.11, scheduled for release in early June 2025.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieWe don’t do weird stuff…we simply make our plugin compatible to the most used multilingual plugins WPML, Polylang and TranslatePress.
Why is this problem still not fixed? We have to switch between several multilingual plugins during testing (WPML, Polylang, TranslatePress) and Falang keeps causing this issue. Please fix your plugin. Your plugin should not crash because another plugin has added data to WordPress.
We will remove support for Falang if this is still an issue in the next months.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieI dug a little deeper and I think your plugin is not removing the
WPLANGvalue of the option, but is still responsible for removing it. I think it’s somehow related to the replaced<select>field on the WordPress settings page.Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieScreenshot A: https://share.cleanshot.com/bG6b0LyV WordPress settings BEFORE installing your plugin.
Screenshot B: https://share.cleanshot.com/lGCSbkWG Value of
WPLANGin theoptions-table.Screenshot C: https://share.cleanshot.com/CxGpCZtN After your plugin has been installed, and the languages have been added and saved.
Screenshot D: https://share.cleanshot.com/2LHD7Qg2 The value of
WPLANGis removed by your plugin.You can contact me at https://borlabs.io/support/ to receive a coupon for a license key.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieIn your
functions.phpin line 385 and 413 you callupdate_option( 'WPLANG', '' ); which deletes the original value and in your entire code you will never restore this value. But this option value is used by WordPress’sget_locale()function.- This reply was modified 1 year, 9 months ago by Ben.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieYou can create a support request and we can look into it.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieIf your website is set to German, our plugin (Borlabs Cookie) should be able to recognize German as a language. Please ensure you are using the latest version of Borlabs Cookie 3.x and check in our dashboard which language has been recognized by our plugin.
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieWhat is your goal that you would like to achieve with “Preferred languages”?
What language is the content of your website in?
Forum: Plugins
In reply to: [Preferred Languages] Issues w/ Borlabs CookieSince WordPress has not native multi language support, we have to do it this way to be compatible with the mentioned plugins. I also think that m0n0mind has not configured their website correctly, because for our plugin the language is determined by the websites content and not the user’s language.
- Are you attempting to modify the script via the script_loader_tag filter?