[ad_1]
Hi @peopleinside,
The same function is used in the MU plugin. Probably an integration now shipped with Complianz. If you can remove it, or rename the mu-plugin to .txt you should be able to activate Complianz.
I believe this should be it:
New: Content Views Plugin integration to allow for ajax loaded content
regards Aert
@aahulsebos thanks for the update but why the new update broke everything?
I the MU plugin I have the code you give to me to fix your plugin compatibility issue.
The content is:
function cmplz_my_custom_youtube_placeholder ($url) {
return 'https://www.domain.ext/wp/wp-content/uploads/2022/09/video_player_placeholder.gif';
}
add_filter( 'cmplz_placeholder_youtube', 'cmplz_my_custom_youtube_placeholder', 20, 2 );
function cmplz_my_custom_vimeo_placeholder ($url) {
return 'https://www.domain.ext/wp/wp-content/uploads/2022/09/video_player_placeholder.gif';
}
add_filter( 'cmplz_placeholder_vimeo', 'cmplz_my_custom_vimeo_placeholder', 20, 2 );
/**
Codice per attivare il consenso cookie anche nella pagina video anche se Ajax è attivo.
**/
function cmplz_content_views_cookieblocker($html){
return COMPLIANZ::$cookie_blocker->replace_tags($html);
}
add_filter( 'pt_cv_view_html', 'cmplz_content_views_cookieblocker' );
?>I need to downgrade the plugin at 6.3.3 and for avoid auto-update that I have active I need set version number to be 6.3.4
Now I need understand what you changed in the new version and how avoid future issue with future versions because latest plugin version is not working for me.
I cannot deactivate MU plugin because inside there is code suggested by you to resolve issues. If I avoid that code I have issues with your plugin.
You gived to me the code to put inside MU plugin:
and now with your latest plugin version is broke my full website.
I need to find a solution from you.
Thank you
Hi @peopleinside,
Declaring the same function twice will throw an error, that’s why we prefix everything, in our case ‘cmplz_’
Unfortunately the code below has the same prefix as shipped in the latest Complianz update.
You can remove:
/**
Codice per attivare il consenso cookie anche nella pagina video anche se Ajax è attivo.
**/
function cmplz_content_views_cookieblocker($html){
return COMPLIANZ::$cookie_blocker->replace_tags($html);
}
add_filter( 'pt_cv_view_html', 'cmplz_content_views_cookieblocker' );You can now activate Complianz and find the integration under Integrations as: ‘Content Views Plugin’.
In the future we will make sure we always share custom snippets with a prefix as shown in the vimeo code ‘cmplz_my_custom’. Even if we ship it directly, the prefixes are different and won’t throw an error.
regards Aert
@aahulsebos Now I understood, you added the fix in the core of the plugin as option so now I can remove the code you suggested to add in the MU plugin.
Thank you!
