bytefight
Forum Replies Created
-
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreHi @rogierlankhorst,
I can supply you with a copy of the Avada Theme, if this helps you! I’am using the standard Google Maps element of Avada in JS API Mode (as seen in the screenshot). Avada is pretty widespread so it may be good for you to support it in your plugin …
Screenshot: https://ibb.co/PmwfRJp
Kind regards,
JonasForum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps The Events Calendar ErrorForum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps The Events Calendar ErrorHi @aahulsebos,
Although we’re using a custom theme the maps dependency is handled by the plugin “The Events Calendar” (https://theeventscalendar.com/products/wordpress-events-calendar/). So I think this is not the same problem as I described it in my other thread. We have no possibility to make changes to their code. Is there a way to make this work?
Thanks in advance!
JonasForum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps Javascript ErrorHi @aahulsebos,
I’ve changed the integration to the Maps Embed API and it works great! Thanks for your advice!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreHi @rogierlankhorst,
due to the capabilities of the Avada Fusion Builder this is not possible for me. Any other ideas on how to get this fixed?
Thanks in advance!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreThank You! I would love to stick to your Plugin!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreHey @rogierlankhorst.
the snippet has no effect. I changed the strings but it didn’t change anything.
Here’s my current functions.php snippet:
/** * Add a placeholder to a div with class "my-maps-class" * @param $tags * * @return mixed */ function cmplz_fusionmaps_placeholder( $tags ) { $tags['google-maps'][] = "fusion-google-map"; return $tags; } add_filter( 'cmplz_placeholder_markers', 'cmplz_fusionmaps_placeholder' ); // Whitelisting inline script for Complianz add_filter ( 'cmplz_script_class', function( $class, $total_match, $found ) { if ( $found && false !== strpos( $total_match, 'google-maps-api-js' ) ) { $class = 'cmplz-native'; // add cmplz-script for Marketing and cmplz-stats for Statistics } return $class; }, 10 , 3); /** * Conditionally add the dependency * $deps['wait-for-this-script'] = 'script-that-should-wait'; */ function cmplz_custom_maps_dependencies( $tags ) { $tags['fusionMapNonce'] = 'infobox_packed.js'; return $tags; } add_filter( 'cmplz_dependencies', 'cmplz_custom_maps_dependencies' );
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreAlmost! Now the placeholder gets displayed but after clicking it the iframe doesn’t load. Only after I refresh the page again.
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreHi @aahulsebos
I did that but still no placeholder: When compliance is not given by the user, there’s just an empty space in the spot where the map normally appears. When compliance is given the map does not get displayed and the console throws errors (when the snippet is commented out). I will leave the snippet commented in the functions.php so you can test better.
Thanks!
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps not displaying anymoreHey @rogierlankhorst & @aahulsebos
I’ve integrated both of your proposals and it pretty much works as expected, although there is no placeholder that gets shown. So if there is no consent given the spot where the map is getting displayed normally is just white with no possible interaction. Is there a fix for this so that the typical google maps placeholder gets shown?
Thank You!
Works like a charm, thank you! Great explanation!
Can you notify me, when this enhancement is going live and i can update again?
Awsome, can you give me a bit more detail on how to install this branch?
It’s now activated, still nothing changed
Still loading normally
Hey @rogierlankhorst,
heres the link again: https://www.temporary-url.com/AE45B
Google maps integration and placeholder is active. Safe mode is disabled. Still not getting blocked. ACF integration is also checked, but I think my implementation has nothing to do with ACF.
Currently I am only using the Maps Embed API via a simple iFrame (you can see it in the screenshots I posted before).
Thanks in advance!