• Resolved docmenios

    (@greggrig)


    Hello,

    I installed your plugin and it works perfectly on blocking google maps, but I also have a plugin, named OOTB (Out of the Block: OpenStreetMap) which adds a custom Gutenberg block that displays an OpenStreetMap map. I am trying to get it to work there too, but all I see is blank. Is there any way I could fix it so that it displays a placeholder instead of being broken?

    Thanks in advance for your answer ??

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter docmenios

    (@greggrig)

    I also tried to custom block it via “Block Script, iframe or plugin” using its div class. It worked visually, but in the background, the requests are still made to OpenStreetMap. I tried to block the leaflet.js that comes inside the aforementioned plugin, it blocked OpenStreetMap but didn’t get enabled after accepting (pressing “Agree” on the placeholder). I will try more to find the correct script and come back. Until then thanks in advance and enjoy the rest of King’s Day ??

    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios. Reason: new info
    Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @greggrig,

    I think we need an integration for the plugin. What you mentioned sounds like a dependency issue, which you can solve in the Script Center as well.

    This is a guess; https://snipboard.io/yPTWLj.jpg

    (To get the dependencies I just realised you need to save the integration with a save + reload, which is a save button on the block above, I’ll fix this soon.).

    If it doesn’t work, let me know I’ll download the plugin and see if I can create an integration directly in the plugin.

    regards Aert

    Thread Starter docmenios

    (@greggrig)

    Hi, and thanks for the answer. Yeah, you are right in the way you added the dependencies. I did it like in the photo you shared, here is the complete photo from my side, and it worked ??

    I also informed the ootb support page about my case, and how it got solved.

    Thank you ??

    (Btw, the site is a live-stage, so I am gonna block access)

    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    Thread Starter docmenios

    (@greggrig)

    Hi again, I have a final question. I don’t have any cookie other than the one set when accepting the OSM. Is there any way to revoke consent per service instead of using the global one? The revoke button in [cmplz-revoke-link text=”Revoke your settings!”] is grayed out, and the only way to revoke is to press Deny on the manage cookie consent pop-up.

    For now I added this:

    <button class="cmplz-btn cmplz-deny">Αν?κληση OpenStreetMap</button>

    Since my only cookie is basically the one to remember what the user did with the OSM, but sth more concrete would be welcome ??

    Thank you

    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    Thread Starter docmenios

    (@greggrig)

    Hi, i tried to solve it by using the code below (in my case I had to change it to the Gutenberg block I am using, but yeah), which seems to work. Let me know if this is the correct way to do it. No, this still unblocks everything, and not OSM specifically (I’m testing this with a google maps iframe). Also, apologies for replying again, but I can’t edit the previous one anymore.

    <button class="cmplz-btn cmplz-deny" data-service-name="OpenStreetMap">Revoke OpenStreetMap Use</button>
    

    Thank you ??

    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @greggrig,

    With Consent per Service enabled, clicking the “Accept” button in the OpenStreetMaps placeholder would only accept that service. Revoking per service can be done on the Cookie Policy.

    I can’t visit the attached website any more to see the behavior, so I’m not sure whether I fully understand what currently occurs.

    Kind regards, Jarno

    Thread Starter docmenios

    (@greggrig)

    Hi @jarnovos,

    I have added my openstreetmap as a custom integration (see discussion above) because the default openstreetmap service (I have it unchecked) doesn’t work on my website because of the plugin I use. I am using my own cookie policy since the cmplz_consented_services is the only cookie, and which is set after allowing my custom integration. I also let complianz create one (cookie policy) for me, but I didn’t see any mention of OSM there.

    So, what I am asking is if there is a specific button class, or way to add the custom integration to the cookie policy (as seen in Installation guide -> Consent -> Services) or implementation which would allow me to specifically block/unblock my custom integration. With the current setting it also revokes access to a google maps iframe I use for testing.

    (The website is again available now btw, and yes, consent per service is enabled :))

    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    • This reply was modified 1 year, 6 months ago by docmenios.
    Thread Starter docmenios

    (@greggrig)

    Ok, I played around a bit and I was able to get the Google maps to appear on the Cookie Policy generated by Complianz (OSM too, but..). Toggling the button there indeed revoked the permission. So, my problem appears indeed to be that I can’t make the OpenStreetMap service to show up on my Cookie Policy because I am using a custom integration under script center. What would be better? Something custom to connect a custom created service on Cookie Policy with the custom script on Integrations tab or writing a mu which would allow the plugin I use to work with the default Complianz openstreetmap service?

    • This reply was modified 1 year, 6 months ago by docmenios. Reason: new info
    • This reply was modified 1 year, 6 months ago by docmenios.
    Thread Starter docmenios

    (@greggrig)

    Hi @jarnovos && @aahulsebos,

    Apparently I had messed up something, and I found one of your Documentation guides where you went over dependencies. I found the script creating the problem (ootb-openstreetmap.js), and I did a slight change, this time with OpenStreetMap enabled, which now made it work for me. Specifically, not load tiles until consent, and load map and tiles once button is pressed. Only problem now is that it doesn’t show up in my cookie policy no matter what I do, but I guess I will wait a bit to see.

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @greggrig,

    Thank you for sharing your solution, glad to hear you’ve already gotten the Map to work correctly after consent.

    Regarding the service being displayed on your Cookie Policy, this isn’t dependent on whether it’s a custom or ‘default’ integration; but by whether this service sets cookies.

    If no OpenStreetMap cookie(s) are being set as a result of using the service, and therefore none could be detected during the Cookie Scan, the OpenStreetMap service doesn’t appear on the Cookie Policy either.

    Kind regards, Jarno

    Thread Starter docmenios

    (@greggrig)

    Hi @jarnovos,

    Yeah, I saw that Google maps for instance sets a specific cookie while OpenStreetMap just “uses” consented_services to remember what the user chose, so, yeah, it makes sense.

    Thank you for your answer

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘OOTB plugin problem’ is closed to new replies.