• Resolved swingjac

    (@swingjac)


    Hi lovely people from complianz,

    first of all thank you so much for this great plugin. It is the first Cookie-Consent plugin that actually works for me. So thank you for that.

    I just have a small issue here. I’m using the ACF-OEmbed field show YouTube-Videos and Soundcloudtracks on my site. The YouTube-Videos are getting blocked when the visitor does not accept the cookies. So no problem here.
    But the Soundcloudtracks are getting loaded even though the visitor did not accept the marketing cookies.

    Could you have a look into that please? That would be great.

    Page with Videos:

    https://kammerphilharmonie-frankfurt.de/news/musikalischesmiteinander/

    Page with Soundcloud:

    https://kammerphilharmonie-frankfurt.de/projekte/musiklieferdienst/

    Thank you so much for your help.

    Cheers

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @swingjac,

    I need to look at the specific ACF embed for Soundcloud and create a specific integration. I will post it here as soon as possible.

    regards Aert

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @swingjac,

    This is a default implementation, could you share me your HTML, and template changes? https://s-qr8j672matffl.eu1.wpsandbox.org/hello-world/

    Please check if soundcloud is enabled as service under Integrations as well.

    regards Aert

    Thread Starter swingjac

    (@swingjac)

    Hi Aert,

    thank you for taking care of that. I know it works with the default implementation and I never had problems using it with a widget. But using the ACF suggested code, your plugin does not recognize soundcloud. It works with YouTube though.

    Here is the code I’m using:

    <?php
    	$audios = get_field('projekte_audio');
    
    	if($audios) {
        	foreach($audios as $audio) {
              
              $iframe = $audio['audio_link_url'];
              
              preg_match('/src="(.+?)"/', $iframe, $matches);
    		  $src = $matches[1];
              
              $params = array(
                'visual' => 'false',
              	'show_playcount' => 'false',
                'show_comments' => 'false',
                'color' => '3FBDD3'
              );
              
              $new_src = add_query_arg($params, $src);
    			$iframe = str_replace($src, $new_src, $iframe);
              
              
              ?>
    			<div class="audio-wrapper">
            		<?php echo $iframe; ?>
    			</div>
               <?php
            };
        };
    ?>

    Let me know if you need anything else.

    Cheers

    Plugin Contributor jarnovos

    (@jarnovos)

    Hello @swingjac,

    Thank you for the detailed response. Quick update: we are going to look into this issue, so I hope to be able to provide more information soon.

    Kind regards,
    Jarno

    Plugin Author Aert Hulsebos

    (@aahulsebos)

    Hi @swingjac,

    We are looking for a custom ACF Oembed integrations, specifically to Soundcloud, as I can’t seem to make it work.

    You can either disable Soundcloud as an integration under Complianz – Integrations, or use a standard embed, instead of an ACF Oembed. This seems to work,

    the integration should be in the next update,

    regards Aert

    Thread Starter swingjac

    (@swingjac)

    Hi @jarnovos and @aahulsebos ,

    thank you for your support and sorry for the late reply. I’m looking forward for the update.

    If you need any further assistance from me then just let me know.

    Cheers

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Soundcloud ACF-OEmbed not recognized by plugin’ is closed to new replies.