Forum Replies Created

Viewing 15 replies - 1 through 15 (of 48 total)
  • Thread Starter holgee

    (@holgee)

    Hi,
    a very big thanks for your reply!
    I´ve changed the $provider name in lowercase – but it still doesn´t show the link. Therefore I´ve also tried to retrieve the link – but same. No data policy link is shown.

    <?php if ( class_exists( 'epiphyt\Embed_Privacy\Embed_Privacy' ) ) {
      $args = ['regex' => '/spotify\.com/',];
      $embed_provider = 'Spotify';
      $provider = 'spotify';
      $privacy_policy = get_post_meta( $embed_post->ID, 'privacy_policy_url', true );
     $url = '<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" width="100%" height="350" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>';
    
    $content = epiphyt\Embed_Privacy\Embed_Privacy::get_instance()->get_single_overlay( $url,$embed_provider,$provider,$privacy_policy ,'Playlist', 'playlist', $args );
    							}
    echo $content;

    But to be honest … I guess we both had spend enough time on this 🙂 For me the current solution is absolutely ok. And most of the visitors won´t see this „little difference”
    Therefore – a very big thanks for all your help!

    Thread Starter holgee

    (@holgee)

    Hi,
    many thanks!!! I nearly come to and end, thanks to your help.
    I´ve integrated the code in the template part like this:

    <?php if ( class_exists( 'epiphyt\Embed_Privacy\Embed_Privacy' ) ) {
    $args = ['regex' => '/spotify\.com/',];
    $embed_provider = 'Spotify';
    $provider = 'Spotify';
    $url = '<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" width="100%" height="350" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>';
    							$content = epiphyt\Embed_Privacy\Embed_Privacy::get_instance()->get_single_overlay( $url,$embed_provider,$provider,'Playlist', 'playlist', $args );		}
    echo $content;						 ?>	

    and it (nearly) works fine.

    The only thing missing is the url to the privacy policy from Spotify.
    I´ve searched all the documentation, but can´t find anyhing regarding this.

    Compared to the other parts of the homepage, where the plugin is working completely correct

    It´s only the sentence “Erfahre mehr in den Datenschutzbestimmungen von Spotify” – or “Lern more in Spotify´s privacy policy” in EN and the link wich is not working / shown.

    It would be really nice, if you could give me a hint, how to integrate this last part via the code.
    Many thanks in advance!

    Thread Starter holgee

    (@holgee)

    Hi,
    you´re right it would be better if the user needs to give a consent (also for the playlist). Therefore a very big thanks for your suggestion to process the content “manually”!

    In this case, I only would have one question. In your documentation it´s statet “See the method Embed_Privacy::get_single_overlay() for a full list of possible arguments.” But – there´s no link to the “get_single_overlay()” arguments. So I guess this would be the shown filter posibilities underneaththis part? Or I misundertand something …

    I´ve tried this in my corresponding templatepart:

    <?php if ( class_exists( 'epiphyt\Embed_Privacy\Embed_Privacy' ) ) {
         $args = ['regex' => '/spotify\.com/',];
         $embed_provider = 'spotify';
         $logo = 'https://herroppermann.de/wp-content/plugins/embed-privacy/assets/images/embed-spotify.png?v=1.8.1';
         $content = '<iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" width="100%" height="450" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe>';
    $content = epiphyt\Embed_Privacy\Embed_Privacy::get_instance()->get_single_overlay( $content,$logo,$embed_provider, 'My Example', 'my-example', $args );
                            ?> 

    When using this the playlist is not shown, but also nothing else (like Logo, text, or opt-in link).

    So if you would be so kind and give me hand on this, or a link to the mentioned possible arguments – I would be VERY happy.

    A very big thanks in advance!
    Best
    Holger

    Thread Starter holgee

    (@holgee)

    Hi,
    many thanks for your reply!
    Ok – i´ve misunderstood the “HTML Block” as i thought you´ve meant a block in the HTML source code of the corresponding page. I´ve also tried your suggestion in a “test page” and it worked perfectly. But the Startpage (where the Playlist is integrated) is not a “standard” WP Page but is loading different template files. So I would need to edit the source code of the corresponding file. I´ve compared the both source codes (test page and template part) and can´t find any big differences.

    However – the playlist is not storing a cookie (which is also a funny thing). So i wouldn´t do a “deep dive” to fix the problem – i guess it´s (as usual) only a very small part of one of a contained HTML block elements in one of the template files.

    The plugin works perfectly and therefore everything is fine for me.

    Once again – a very big thanks for your kind help and time – AND the plugin!

    Best
    Holger

    Thread Starter holgee

    (@holgee)

    Hi,
    a very big thanks for your testing and your feedback!!
    Now I´m curious:) Well, yes it would be ok if the playlist ist not covered by the plugin – but on the other hand it would be also nice, if every “Spotify content” would look the same 🙂

    So where exactly you have placed the HTML block in the “initial” code? I have tried the following – but (unfortunately) nothing changed. (class “spotifyplayer” is the new added one).

    <div class="spotifyplayer">
    <iframe data-lazyloaded="1" src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" style="border-radius:12px" data-src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" width="100%" height="450" frameborder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy" data-ll-status="loaded" class="entered litespeed-loaded"></iframe><noscript><iframe style="border-radius:12px" src="https://open.spotify.com/embed/playlist/6SnZl0xM5jIQwk6Q2bQSX3" width="100%" height="450" frameBorder="0" allowfullscreen="" allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy">
    </iframe></noscript>
    </div>

    Really looking forward for your reply ….
    Many thanks in advance!
    Best
    Holger

    Thread Starter holgee

    (@holgee)

    Hi Matthias,
    very big thanks for your fast reply!!
    I´ve also already used the “regex” test services like the one you had mentioned. Without them I would be lost :). I´ve tried it with the one you´ve provided … but – the playlist is persistent and still displayed.

    How ever – as the Spotify Players above in the website are not displayed and based on this no Spotify cookie is stored – everything would be fine for me!!

    Once again – many thanks for your help and also for providing this nice plugin!

    Best
    Holger

    Thread Starter holgee

    (@holgee)

    Hi @qtwrk
    big thanks for your kind and patient support! The problem doesn´t occur any longer after I have added the Filter Function into the functions.php. After clearing all LS and Browser Caches, the Banner now appears on all Pages!

    Really nice! I will therefore mark the topic as solved.

    Thread Starter holgee

    (@holgee)

    @qtwrk
    Big thanks for your kind help and support!
    Unfortunately, there is no direct “pattern” – when the caching is activated, the banner is not loaded on some pages – for example the “contact” Page, or the “about me” Page. Even when I had cleared all caches, the banner then was loaded on the “contact” and “about me” Page, but not in the “privacy policies” Page. But I have re-activated the LS Cache now and I´m pretty sure, that the “problem” will occur timely. So I would suggest, that I would then send you a corresponding link, where the banner is not loaded. And yes, it only occurs after a short time, not directly after activating the LS Cache or clearing the entire cache. I have also tried to load the page with different Browsers (all Browser Caches was cleared formerly) – but there is no difference regarding the “problem”.

    Thread Starter holgee

    (@holgee)

    @qtwrk
    yes that´s the one 😉

    Thread Starter holgee

    (@holgee)

    @chenhanqiongdemaiya
    Thanks for your reply and suggestion! But the Banner is placed on the Bottom 😉

    Thread Starter holgee

    (@holgee)

    Hi,
    many thanks for your help – but unfortunately, the problem still exists. I have placed the Rewrite Rule on top of the .htaccess file like this:

    # Exception for LSC
    <IfModule LiteSpeed>
    RewriteEngine On
    RewriteRule .* - [E=Cache-Vary:cookie_notice_accepted]
    </IfModule>
    # BEGIN LSCACHE
    ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule \.object-cache\.ini - [F,L]
    
    ### marker NOCACHE COOKIES start ###
    RewriteCond %{HTTP_COOKIE} cookie_notice_accepted
    RewriteRule .* - [E=Cache-Control:no-cache]
    ### marker NOCACHE COOKIES end ###
    
    ### marker CACHE RESOURCE start ###
    RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]
    ### marker CACHE RESOURCE end ###
    
    ### marker FAVICON start ###
    RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]
    ### marker FAVICON end ###
    
    ### marker DROPQS start ###
    CacheKeyModify -qs:fbclid
    CacheKeyModify -qs:gclid
    CacheKeyModify -qs:utm*
    CacheKeyModify -qs:_ga
    ### marker DROPQS end ###
    </IfModule>

    Afterwards, all caches has been cleared and additionally the Toolbox => Clear entire cache function was used. But, after a short period of time the cookie banner is not loaded on some pages. I have turned of the cache function now and sent you a report. The ID is: HYUXACXF

    If there could be a kind of “workaround” or help, I would be very happy.

    Many thanks in advance.

    Thread Starter holgee

    (@holgee)

    Hi,
    many thanks for your reply!
    I have changed the ReWrite Rule back to your mentioned one and cleared all caches via Toolbox => Emptiy entire cache. I will keep watching the site for a few days and give an update here afterwards.

    Thread Starter holgee

    (@holgee)

    Hi,
    unfortunately, the problem still exists. I have added the mentioned ReWrite Rule to the top of the .htaccess file, but after a few days, the Cookie Banner was still not loaded on some pages. I also tried to change the ReWrite Rule to the following:

    <IfModule LiteSpeed>
    RewriteEngine On
    RewriteRule .* - [E=Cache-Vary:cookie-notice-front-js]
    </IfModule>

    as “cookie-notice-front-js” is the ID of the script. But also this had no effect.
    Furthermore, I have tried to clear the entire cache via Toolbox => Empty Entire Cache. Maybe this will help. As mentioned, the problem occurs oddly enough after a few days – so I will keep watching the site but I guess, the problem won´t disappear …

    I have also send a Report to you – the corresponding Number is BSQWTNKT.

    Many thanks in advance for your help!

    • This reply was modified 5 years ago by holgee.
    Thread Starter holgee

    (@holgee)

    Hi,
    oh – ok! Many thanks for the detailed info!
    I´ll put it on the very top instead then.

    Many thanks for your help! I´ll post a feedback regarding this in the next days …

    Thread Starter holgee

    (@holgee)

    Hi @qtwrk
    Hi @tenkstars

    many thanks for your replies and your help!
    I´ve added the mentioned Rewrite Rule in the .htaccess file, re-anabled the cache and all Page Optimization settings in the LSCache WP Plugin. The .htaccess file now has the following entries:

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .* - [E=Cache-Vary:cookie_notice_accepted]
    RewriteRule \.object-cache\.ini - [F,L]
    [...]

    As mentioned, the “error” occurs after some days, so I’ll keep watching the site and give a corresponding feedback here.

    • This reply was modified 5 years ago by holgee.
Viewing 15 replies - 1 through 15 (of 48 total)