Opt-In Cookie Manager

Questions and help on editing scripts manually - Opt-In Cookie Manager

Questions and help on editing scripts manually

by Chris1278 » Wed Aug 24, 2022 7:42 pm

Here you can ask if you have problems with the scripts that have to be adjusted manually.
User avatar
Chris1278
Jr. Extension Validator
Posts: 493
Joined: Thu Mar 14, 2019 6:07 pm

Re: Questions and help on editing scripts manually

by sir.chris » Fri Dec 30, 2022 2:07 pm

First of all: thanks for the ext. Looks and works great! But next please allow me the following questions: I'd like to use your extension for Google AdSense and Webfonts. How do I integrate what scripts? I'd be happy for any hint, thx ;-)
sir.chris
Registered User
Posts: 11
Joined: Sun Feb 13, 2022 10:46 am

Re: Questions and help on editing scripts manually

by Chris1278 » Fri Dec 30, 2022 3:14 pm

Yes is no Problem fpr webfonts look here:

https://www.phpbb.com/customise/db/exte ... 51#p843751

Here I explained how to embed scripts. For this it is necessary to edit the style files yourself. Since this is not intended by phpbb itself. This must always be taken into account when updating the style.

This affects the google webfont history. Other scripts like google adsense can change them in the same format as google fonts. You can then specify the switch name that you address in the ACP.

In the one topic I explained how to adapt the scripts so that they can also be controlled by the klaro script.

You can then put the script code for Adsense that you get from google in one of the files that I have attached to the extension:

/ext/chris1278/styles/all/template/own_scipts_header.html

or

/forum/ext/chris1278/styles/all/template/own_scipts_footer.html

depending on whether the code has to be loaded at the very beginning or at the end.

If you have problems with the integration then you are welcome to write and send me the adsense code from google (also via PM since there is probably confidential data in there) and I can then adapt your code and tell you where you have to use it.
User avatar
Chris1278
Jr. Extension Validator
Posts: 493
Joined: Thu Mar 14, 2019 6:07 pm

Re: Questions and help on editing scripts manually

by sir.chris » Mon Jan 02, 2023 8:13 am

Thanks, Chris1278, I'll try my luck! If things won't work out as expected I'll get in touch with you :-)
sir.chris
Registered User
Posts: 11
Joined: Sun Feb 13, 2022 10:46 am

Re: Questions and help on editing scripts manually

by Sylvi » Sun Aug 06, 2023 6:12 pm

Hey Chris, is it possible to explain to me how I integrate consent for a Meta Pixel cookie from a third party in your extension?
Sylvi
Registered User
Posts: 37
Joined: Thu May 18, 2017 7:03 pm

Re: Questions and help on editing scripts manually

by Chris1278 » Sun Aug 06, 2023 7:20 pm

If you can send me the script I can install a switch for it in the next version.

Meta is facebook right?

You can also PM me the script code if you don't want to post it publicly.
User avatar
Chris1278
Jr. Extension Validator
Posts: 493
Joined: Thu Mar 14, 2019 6:07 pm