[3.2][3.3][RC] Privacy Policy

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
lombven
Registered User
Posts: 3
Joined: Thu Apr 02, 2020 9:05 am

Re: [3.2][3.3][RC] Privacy Policy

Post by lombven »

Yes, I Purged the cache.

David,
I installed the Disable all extensions.

But when I click enable from the extension manager I receive this message:

AJAX error
Something went wrong when processing your request.

lombven
Registered User
Posts: 3
Joined: Thu Apr 02, 2020 9:05 am

Re: [3.2][3.3][RC] Privacy Policy

Post by lombven »

ps
From phpadmin running
SELECT * FROM `phpbb_ext`

the result is empty.

User avatar
david63
Registered User
Posts: 17776
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by david63 »

I don't suppose that you created a backup before manually editing the database (which is always recommended) did you? If so restore the database.
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
TheRealShadowHunter
Registered User
Posts: 10
Joined: Tue Mar 31, 2020 9:03 pm
Location: Belgium
Name: ShadowHunter
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by TheRealShadowHunter »

Got it work, after learning some Twig's basics :D

Just added the script to: david63/privacypolicy/styles/all/template/event/overall_header_head_append.html:

Code: Select all

{% if S_COOKIE_ENABLED or S_SHOW_COOKIE_POLICY  %}
	{% INCLUDECSS '@' ~ PP_NAMESPACE ~ '/cookie.css' %}
	<script>(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=1;</script>
{% endif %}
And

david63/privacypolicy/styles/all/template/event/overall_footer_after.html:

Code: Select all

{% if S_COOKIE_ENABLED and not S_SHOW_COOKIE_ACCEPT %}
	<!-- Don't want to stop Bots (with permissions) from indexing the board -->
	{% if S_COOKIE_BLOCK_LINKS and not S_IS_BOT %}
		<script>
			var cookieLinks = '{{ lang('COOKIE_BLOCK') | escape('js') }}';
		</script>

		{% INCLUDEJS '@' ~ PP_NAMESPACE ~ '/remove_url.js' %}
	{% endif %}

	<script>
		var acceptText			= '{{ lang('COOKIE_ACCEPT') | escape('js') }}';
		var cookieBoxBdColour	= '{{ COOKIE_BOX_BD_COLOUR | escape('js') }}';
		var cookieBoxBdWidth	= '{{ COOKIE_BOX_BD_WIDTH | escape('js') }}';
		var cookieBoxBgColour	= '{{ COOKIE_BOX_BG_COLOUR | escape('js') }}';
		var cookieBoxHrefColour	= '{{ COOKIE_BOX_HREF_COLOUR | escape('js') }}';
		var cookieBoxTop		= '{{ COOKIE_BOX_TOP | escape('js') }}';
		var cookieBoxTxtColour	= '{{ COOKIE_BOX_TXT_COLOUR | escape('js') }}';
		var cookieDomain		= '{{ COOKIE_DOMAIN | escape('js') }}';
		var cookieExpires		= '{{ COOKIE_EXPIRES | escape('js') }}';
		var cookieLink			= '{{ lang('COOKIE_POLICY') | escape('js') }}';
		var cookiePath			= '{{ COOKIE_PATH | escape('js') }}';
		var cookieText			= '{{ lang('COOKIE_ACCEPT_TEXT') | escape('js') }}';
		var cookiePage			= '{{ U_COOKIE_PAGE | escape('js') }}';
		var cookieSecure		= '{{ COOKIE_SECURE | escape('js') }}';
		var phpbbCookieName		= '{{ COOKIE_NAME | escape('js') }}';
	</script>
	
	{% INCLUDEJS '@' ~ PP_NAMESPACE ~ '/cookie_fn.js' %}
	
{% else %}
	<script>(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=0;</script>
{% endif %}
Now no ads will be shown nor ad cookies will be set as long as the cookie consent was not agreed (or revoked) as demanded by GDPR

Should there be a better solution, please let me know...

I hope it can help other users as well ;)

With best regards,

ShadowHunter

User avatar
TheRealShadowHunter
Registered User
Posts: 10
Joined: Tue Mar 31, 2020 9:03 pm
Location: Belgium
Name: ShadowHunter
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by TheRealShadowHunter »

Hello David63,

It seems that the policy editor drop down "privacy_lang_description" is filled with descriptions from all lanuagues, not only for the selected language. Maybe it was designed like this to allow opening a starting document? However this can become quite confusing as one adds several languages.

1. Selected language "Nederlands (informeel)"
2. Selected cookie text from the files drop down
3. Editor opened and showed English cookie text
4. Edited the English text
5. Saved the changes

2020-04-06_21-23-56.png

Hope you consider fixing it (should it be simple, please share the mod) ;)

As a work around I now add for each description the language like "Cookie policy (NL)", "Cookie policy (FR)",...

Looking forward to your feedback.

Thank you for your great support.

With best regards,

ShadowHunter
Gratis elektrische AREI-symbolen | Formes RGIE électricité gratuits | Free electrical drawing shapes: https://www.shadowhunter.co.uk

User avatar
david63
Registered User
Posts: 17776
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by david63 »

That is the intended behaviour. The logic being that it is giving you a base document that can be translated, or deleted and your own text added. If you only have one language which is not EN then the drop down is fine, if you have multiple languages then saving them the way you are doing is correct.
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
TheRealShadowHunter
Registered User
Posts: 10
Joined: Tue Mar 31, 2020 9:03 pm
Location: Belgium
Name: ShadowHunter
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by TheRealShadowHunter »

Hello David63,

Thank you for confirming it is indeed by design.

I understand your logic behind it...

Changing this (for example: selecting a template and saving language in the editor screen rather than in the previous step) would take additional interface elements and might add complexity. The trouble might not be worth it given most users will only use this part of of the interface once and for a limited amount of languages.

However, it would polish the complete experience of the extension should one day you feel like changing it ;)

I'll proceed using the work arround.

Again, thank you for your feedback and for this great extension.

With best regards,

ShadowHunter
Gratis elektrische AREI-symbolen | Formes RGIE électricité gratuits | Free electrical drawing shapes: https://www.shadowhunter.co.uk

User avatar
TheRealShadowHunter
Registered User
Posts: 10
Joined: Tue Mar 31, 2020 9:03 pm
Location: Belgium
Name: ShadowHunter
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by TheRealShadowHunter »

Hello David63,

Maybe a backdoor to access and post without cookie consent given?

1. Have a working forum account (bug: log in > revoke cookie consent > logout > cannot logout untill cookie accepted again)
2. Revoke cookie consent
3. Go to Forum overview
4. Click newest member
5. Login with working forum account
6. In the profil overview click on that user's messages
7. All topics for that users are shown
8. Via the breadcrum go to forum overview
9. Your in and can now post messages without cookie consent

2020-04-07_14-24-13.jpg
With best regards,

ShadowHunter
Gratis elektrische AREI-symbolen | Formes RGIE électricité gratuits | Free electrical drawing shapes: https://www.shadowhunter.co.uk

User avatar
david63
Registered User
Posts: 17776
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by david63 »

TheRealShadowHunter wrote:
Tue Apr 07, 2020 12:33 pm
Hello David63,

Maybe a backdoor to access and post without cookie consent given?

1. Have a working forum account (bug: log in > revoke cookie consent > logout > cannot logout untill cookie accepted again)
2. Revoke cookie consent
3. Go to Forum overview
4. Click newest member
5. Login with working forum account
6. In the profil overview click on that user's messages
7. All topics for that users are shown
8. Via the breadcrum go to forum overview
9. Your in and can now post messages without cookie consent


2020-04-07_14-24-13.jpg

With best regards,

ShadowHunter
This extension should blosk that loophole - https://www.phpbb.com/customise/db/exte ... ewest_user
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
TheRealShadowHunter
Registered User
Posts: 10
Joined: Tue Mar 31, 2020 9:03 pm
Location: Belgium
Name: ShadowHunter
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by TheRealShadowHunter »

Hello David63,

Thank you so much for your feedback and pointer to the additional extension.

This extension indeed patches the problem for now :) (too bad also the statistics are also hidden but I can live with that) ;)

Alternatively I might edit the template but am reluctant to do so as it complicates future updates.

In any case, for now the problem fixed but I do hope that you can solve this in a future release of your extension.

Again thank you and have a nice day.

With best regards,

ShadowHunter
Gratis elektrische AREI-symbolen | Formes RGIE électricité gratuits | Free electrical drawing shapes: https://www.shadowhunter.co.uk

User avatar
apollodriver
Registered User
Posts: 106
Joined: Tue Jan 21, 2020 11:35 am

user sometimes while login get blank page & www.mysite.net/privacypolicy

Post by apollodriver »

hi there

after install and customizing i am more than happy with the phpBB - but some times a user gets - while attempting to log in funny things back:

the user sometimes while login gets a blank page & www.mysite.net/privacypolicy

what s going on here?!


Look forward to hear from you

see the image:

]https://imgur.com/a/D0DUZYj[

<blockquote class="imgur-embed-pub" lang="en" data-id="a/D0DUZYj"><a href="//imgur.com/a/D0DUZYj"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>


hmmm why i am not able to post a image here..!!??
for Wordpress-development - i use the Toolset: http://wpgear.org/

User avatar
david63
Registered User
Posts: 17776
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by david63 »

apollodriver wrote:
Sat Apr 25, 2020 1:46 am
the user sometimes while login gets a blank page & www.mysite.net/privacypolicy
If you were to post a genuine link then I could look at it.

If you are getting a blank page then that is commonly a suppressed PHP error - what do your server error reports say?
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
apollodriver
Registered User
Posts: 106
Joined: Tue Jan 21, 2020 11:35 am

Re: [3.2][3.3][RC] Privacy Policy

Post by apollodriver »

good day dear David,

many thanks for the quick reply - glad to hear from you.


see the page: https://www.wp-forum.net

note: we run php 7.2.4 ... i guess

look forward to hear again from you

regards
for Wordpress-development - i use the Toolset: http://wpgear.org/

User avatar
david63
Registered User
Posts: 17776
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by david63 »

david63 wrote:
Sat Apr 25, 2020 7:19 am
If you are getting a blank page then that is commonly a suppressed PHP error - what do your server error reports say?
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
Cowboy of Bottrop
Registered User
Posts: 2
Joined: Wed Apr 29, 2020 3:19 pm
Location: Bottrop, DE
Contact:

Re: [3.2][3.3][RC] Privacy Policy

Post by Cowboy of Bottrop »

Hello, first of all: great work!

Is it possible to insert an iframe into the policies? I need this for users to opt-out from tracking with Matomo, formally known as Piwik. It looks like this:

Code: Select all

<iframe style="border: 0; height: 200px; width: 600px;" src="https://my.domain.tld/matomo/index.php?module=CoreAdminHome&action=optOut&language=&backgroundColor=&fontColor=&fontSize=&fontFamily="></iframe>
If it is not possible it would be great if you could implant that. Maybe with the option to parse HTML, like it is possible in the Pages extension.

Keep it Country,
Cowboy

Post Reply

Return to “Extensions in Development”