[SOLVED]Cookie info JS on phpBB - which file to edit?

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
ivanc
Registered User
Posts: 74
Joined: Thu Nov 06, 2008 12:11 pm

[SOLVED]Cookie info JS on phpBB - which file to edit?

Post by ivanc » Wed May 30, 2018 5:10 pm

I want to set my 'JavaScript Cookies' at the end of each phpBB forum page (ver 3.2.2).
So I need to put JS before the final </ BODY> tag.
Which files i need to edit,

On each page of the forum should a 'popup' info window appear with the Cookies notification?
I have JavaScript code.
Last edited by ivanc on Wed May 30, 2018 7:45 pm, edited 1 time in total.

User avatar
david63
Jr. Extension Validator
Posts: 14653
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Cookie info JS on phpBB - which file to edit?

Post by david63 » Wed May 30, 2018 5:50 pm

ivanc wrote:
Wed May 30, 2018 5:10 pm
Which files i need to edit,
Have you tried overall_footer?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Lumpy Burgertushie
Registered User
Posts: 64880
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Cookie info JS on phpBB - which file to edit?

Post by Lumpy Burgertushie » Wed May 30, 2018 5:53 pm

not sure why you are trying to do this. there is already cookie consent popup that is part of phpbb. you can turn it on or off in the admin panel.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

ivanc
Registered User
Posts: 74
Joined: Thu Nov 06, 2008 12:11 pm

[SOLVED]Re: Cookie info JS on phpBB - which file to edit?

Post by ivanc » Wed May 30, 2018 7:45 pm

@david63
I tried, but I did not do the "Purge cache". :)
Now everything is OK.

@Robert
That's not what I want. I want this popup

Thanks for comment.

User avatar
tojag
Registered User
Posts: 336
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: [SOLVED]Cookie info JS on phpBB - which file to edit?

Post by tojag » Wed May 30, 2018 10:24 pm

You have similar solution as me. But my info is not modal, user can use links on the page.

Warning - you have google ads on your page and these are personalized ads.
You should not display personalized ads before user give you consent. This is the AdSense rule. Google may block your account if you violate the rules.
First you should display non-personalized ads, and after user click Accept (Prihvacam ??) you can display personalized ads.

For non-personalized you can use this
(adsbygoogle=window.adsbygoogle || []).requestNonPersonalizedAds=1;
before method push ads.
For personalized you can use this
(adsbygoogle=window.adsbygoogle || []).requestNonPersonalizedAds=0;

ivanc
Registered User
Posts: 74
Joined: Thu Nov 06, 2008 12:11 pm

Re: [SOLVED]Cookie info JS on phpBB - which file to edit?

Post by ivanc » Thu May 31, 2018 6:20 am

Hi @tojag
Thank you for your warning and advice. (i appreciate it).
In my forum, AdSense is dimmed until a visitor clicks on one of the buttons.
Since I am not an expert in administering AdSense, can you give me step-by-step instructions please?
What, where and how?

User avatar
tojag
Registered User
Posts: 336
Joined: Thu Aug 07, 2014 8:00 am
Location: Warsaw, Poland, EU
Name: Gregory

Re: [SOLVED]Cookie info JS on phpBB - which file to edit?

Post by tojag » Thu May 31, 2018 8:10 am

Some time ago I asked about it, also creators of extensions to advertisements, but I had to finally do it myself.

Since this is not about phpBB but Google ads, please write here.
viewtopic.php?f=6&t=2470911
I will try to help.

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 3 guests