cookies notification phpbb3.2.1

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
Nienke1973
Registered User
Posts: 18
Joined: Sat Feb 17, 2018 2:39 pm

cookies notification phpbb3.2.1

Post by Nienke1973 » Mon May 28, 2018 8:49 am

Hello everyone,

I want to edit the cookies notification below the screen, in the backend there are no things i can edit, also the file what does this job i cant find.
I want to replace the tekst and cookies page link.. now it's linking to www.cookiesandyou.com and should be a page at my own domain.
Do you have any suggestions how i can solve this prob?

thanks in advance.

-Nienke

User avatar
GanstaZ
Registered User
Posts: 403
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: cookies notification phpbb3.2.1

Post by GanstaZ » Mon May 28, 2018 12:00 pm

A hint Assets directory, there is a folder/file/s you are looking for.
"When answer lies in the question,.. question becomes redundant!"

janus_zonstraal
Registered User
Posts: 2610
Joined: Sat Aug 30, 2014 1:30 pm

Re: cookies notification phpbb3.2.1

Post by janus_zonstraal » Mon May 28, 2018 2:33 pm

I want to replace the tekst and cookies page link.. now it's linking to www.cookiesandyou.com and should be a page at my own domain.
Do you have any suggestions how i can solve this prob?
Look into the language/yourlanguage/common.php

Code: Select all

'COOKIE_CONSENT_HREF'
Sorry! My English is bat ;) !!!

Nienke1973
Registered User
Posts: 18
Joined: Sat Feb 17, 2018 2:39 pm

Re: cookies notification phpbb3.2.1

Post by Nienke1973 » Mon May 28, 2018 3:01 pm

janus_zonstraal wrote:
Mon May 28, 2018 2:33 pm
I want to replace the tekst and cookies page link.. now it's linking to www.cookiesandyou.com and should be a page at my own domain.
Do you have any suggestions how i can solve this prob?
Look into the language/yourlanguage/common.php

Code: Select all

'COOKIE_CONSENT_HREF'
Thanks for your advice, that did the trick !!! I've been searching for day's.

best regards Nienke

JimsBeerKit
Registered User
Posts: 11
Joined: Mon May 28, 2018 7:40 am

Re: cookies notification phpbb3.2.1

Post by JimsBeerKit » Tue May 29, 2018 9:19 am

I'm resurrecting this topic to ask a related question.

I wanted to do the same thing as the OP, and followed the instructions above, changing the cookie_consent_href value to the url of my website privacy policy page.

So I purged the cache and tried it out; the cookie consent popup is still pointing to cookiesandyou.com.

Am I missing something?

I'm running phpbb 3.2.1 on php 7.1.17 and have custom style sheet based on prosilver.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19969
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: cookies notification phpbb3.2.1

Post by Mick » Tue May 29, 2018 9:37 am

You should always start your own topics unless you have something relevant to say in assisting the OP. If you’re looking to modify the phpBB code (not recommended) you need to post in phpBB Custom Coding otherwise you can make an extension request if there isn’t already something in the extensions dB.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

JimsBeerKit
Registered User
Posts: 11
Joined: Mon May 28, 2018 7:40 am

Re: cookies notification phpbb3.2.1

Post by JimsBeerKit » Tue May 29, 2018 9:59 am

Mick wrote:
Tue May 29, 2018 9:37 am
You should always start your own topics unless you have something relevant to say in assisting the OP. If you’re looking to modify the phpBB code (not recommended) you need to post in phpBB Custom Coding otherwise you can make an extension request if there isn’t already something in the extensions dB.
Sorry Mick. Please delete my posts on this thread.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 19969
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: cookies notification phpbb3.2.1

Post by Mick » Tue May 29, 2018 10:06 am

No, we don’t do that normally, all I’m trying to do is point out the way it works, or should. I wasn’t having a go.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

JimsBeerKit
Registered User
Posts: 11
Joined: Mon May 28, 2018 7:40 am

Re: cookies notification phpbb3.2.1

Post by JimsBeerKit » Tue May 29, 2018 11:22 am

Mick wrote:
Tue May 29, 2018 10:06 am
No, we don’t do that normally, all I’m trying to do is point out the way it works, or should. I wasn’t having a go.
Mick, I appreciate it. I didn't think you were having a go at all - I'm new here, there are rules, I'll do my best to follow them.

JimsBeerKit
Registered User
Posts: 11
Joined: Mon May 28, 2018 7:40 am

Re: cookies notification phpbb3.2.1

Post by JimsBeerKit » Tue May 29, 2018 3:34 pm

I've continued to look at this issue and just in case anyone else has the same problem this is what I've discovered:-

I eventually tracked down the cookiesandyou.com URL hard-coded into the js file 'cookieconsent.min.js' in the assets directory. As soon as I edited that file the url of the 'Learn More' link changed to what I wanted.

I think this is probably more of a workaround than a solution though. Surely it should read the string set in the language files?

User avatar
GanstaZ
Registered User
Posts: 403
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: cookies notification phpbb3.2.1

Post by GanstaZ » Tue May 29, 2018 4:56 pm

Well.. for that to work as you want without any code editing, it needs a field in config/config_text db, so it would be possible to change it in acp. This smells like core request & should be easy to implement it.
"When answer lies in the question,.. question becomes redundant!"

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 11 guests

cron