Support Forum Support Forum GDPR Cookie Compliance How to use HOOK custom Advanced-Party script by php for Footer

Topic Resolution: Resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Premium
    AvatarEva Szanto
    July 09, 2020 @ 8:01 am

    Hi,
    I would like to put a snippet arount the google maps so it is first deaktivated.
    The map is pasted into the website via functions.php

    // Google Maps im Pre-Footer einbinden – hier Google Maps löschen //ESZ
    function insert_gm_prefooter()
    {
    echo(do_shortcode(‘[put_wpgm id=”1″][/put_wpgm]’));
    }
    add_action( ‘g1_prefooter_begin’, ‘insert_gm_prefooter’ );

    Since I am not good in PHP at all, I think, it would be neccessary to use your code:

    add_action(‘moove_gdpr_advanced_cookies_footer_assets’,’moove_gdpr_advanced_cookies_footer_assets’);
    function moove_gdpr_advanced_cookies_footer_assets( $scripts ) {
    $scripts .= ‘<script>console.log(“advanced-footer”);</script>’;
    return $scripts;
    }

    SOMEHOW. But I do not know how to mix both that the Google maps is first deactivated.
    Could please help me through this?
    Or perhaps there is another solution for this?

    Thank you in advance.
    Eva

    Premium
    AvatarEva Szanto
    July 14, 2020 @ 5:23 am

    Hi,
    5 days ago I asked the question above. Please could you have a look at this? My client is waiting ….. thank you very much and greetings to London!
    Eva

    Moove AgencyMoove Agency
    July 15, 2020 @ 5:53 am

    Hi Eva,

    Thanks for your patience on this.

    We’re going to check the problem and come back to you soon.

    Hope this helps.
    Thanks

    Premium
    AvatarEva Szanto
    July 21, 2020 @ 6:50 am

    Hi
    could you check the problem?
    I am now waiting since some days.
    Thank you
    Eva

    Premium
    AvatarEva Szanto
    July 27, 2020 @ 9:18 am

    Hi,
    what about my question? Please could someone have a look at this?
    Thank you,
    Eva

    Moove AgencyMoove Agency
    July 27, 2020 @ 9:31 am

    Hi Eva,

    Thanks for your patience.

    We’re going to come back to you by the end of the week at the latest.

    Hope this helps.
    Thanks

    Moove AgencyMoove Agency
    July 28, 2020 @ 7:54 am

    Hi Eva,

    Thanks for your patience on this.
    You can use the PHP functions from our Help section to check if the cookies are accepted.

    We prepared the code snippet for you:
    Note: This is connected to “advanced” cookies. You can change the : gdpr_cookie_is_accepted( 'advanced' ) to gdpr_cookie_is_accepted( 'thirdparty' ) if you would like to show the map if the Third Party cookies are accepted

    // Google Maps im Pre-Footer einbinden – hier Google Maps löschen //ESZ
    function insert_gm_prefooter() {
    	if ( function_exists( 'gdpr_cookie_is_accepted' ) ) {
    		/* supported types: 'strict', 'thirdparty', 'advanced' */
    		if ( gdpr_cookie_is_accepted( 'advanced' ) ) {
    			// Showing map only if "Advanced" scripts are accepted
    			echo do_shortcode('[put_wpgm id="1"][/put_wpgm]');
    		}
    	} else {
    		// Fallback if GDPR plugin is not installed / activated
    		echo do_shortcode('[put_wpgm id="1"][/put_wpgm]');
    	}
    }
    add_action( 'g1_prefooter_begin', 'insert_gm_prefooter' );
    add_action( 'gdpr_force_reload', '__return_true' );

    Hope this helps.

    Premium
    AvatarEva Szanto
    August 04, 2020 @ 7:28 am

    Hi,
    thank you for the code!
    It took a while for me to implement and test it.
    It seems to work, the google map is only shown when the thirdparty cookies are accepted.
    BUT:
    Right now befor accepting there is NOTHING, a white place instead of the note that you should accept thirdparty cookies.
    –> https://snipboard.io/yI3rW7.jpg
    Above, the YouTube Video is blocked correcly:

    –> https://snipboard.io/BXQhPO.jpg

    Here is the Website: https://www.schuon.com/

    Can you help me with showing the content which allows the users to click the “allow” or the “Einstellungen” / “Settings” buttons at he place ot the google map?

    It would be great if I do not have to wait again so long to get this finished :). Thank you1
    Greetings to London from Stuttgart
    Eva

Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic.