ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Cookie Agreement Popup dont work with php
person icon
wolfgang
Registered User
Quote
2025-11-10 14:58:40

Hello,
Just to remind you, I am not a programmer.
For my paraglider website http://www.fly-msp.de
I need help with the ‘Cookie Agreement Popup’. This does not work if the page is named *.php. The popup works with *.html.

1) Is there a way to fix this?
2) Can it always be displayed when the page is called up, not just the first time?

Thanks for your help.
Wolfgang

person icon
niko
Moderator
Quote
2025-11-10 19:15:53

In order to let it show everytime (although this is a bit contrary to what it is supposed to do), just create a JavaScript code element somewhere on the top of your page - before the overlay - and enter this code in there:
localStorage.setItem("cookieOverlay", "show");	

Uncheck the "create div around code" option.

Then it is shown every time.

Using it inside of PHP: It should work also on PHP pages - nothing unusual there. Maybe something else is going on there? Do you get an error message in your browser console?

person icon
wolfgang
Registered User
Quote
2025-11-10 20:04:51

Thank you very much.
It does not work in the browser preview.
There is no error message otherwise.

person icon
niko
Moderator
Quote
2025-11-11 07:24:32

Difficult to say without seeing it - maybe you could send me the file and I'll have a look

person icon
wolfgang
Registered User
Quote
2025-11-11 17:36:25

For your information, there is unfortunately some confusion.
The cookie agreement pop-up works. Apparently, a cookie is also set in the preview browser and the pop-up no longer appears. So there is no problem with php/html as I wrote.

The short JavaScript works, but now the pop-up appears every time the page is accessed via the menu within a session. My idea was that this pop-up would appear once every time the website was visited.

Best regards, Wolfgang



Translated with DeepL.com (free version)

person icon
niko
Moderator
Quote
2025-11-12 09:58:39

Ah, ok, so everything is fine now? Nice. emoji icon_grin

person icon
wolfgang
Registered User
Quote
2025-11-12 11:49:20

Not really nice.
The banner should appear every time the website is visited. But not every time you click on the navigation menu to go to a page via the menu. Perhaps a solution can be found for this.
emoji icon_look

person icon
niko
Moderator
Quote
2025-11-12 16:09:49

Uh - that's strange - what is the use case for this?

person icon
wolfgang
Registered User
Quote
2025-11-13 08:08:44

Thank you for your attention. I will reconsider my plans,


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |