This board is the new home for david63's extensions.

All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.


Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.

[3.3.1] Privacy Policy

Fully working extensions
User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

[3.3.1] Privacy Policy

#1

Post by devspace »

Privacy Policy:

Adds options for the user to accept the use of cookies, under EU Cookie Directive (2012), and/or GDPR (2018) on the board.

Compatibility:

Image Image

Image

Notes:
  • If you are using any other version of this extension then it must be Disabled /Delete data and the original files deleted before installing this version - you will loose all settings.
  • This extension requires that the Auto Groups Extension is installed prior to installation of this extension.
  • This extension is incompatible with Tapatalk.


Features:
  • Cookie
    • Block most links from being accessed until the Cookie Policy has been accepted.
    • Prevents log-in/registration until the Cookie Policy has been accepted.
    • Attempts to only show the cookie/privacy acceptance for users with an EU IP address.
    • Show the cookie acceptance box on either the index page or all pages.
    • Show the Cookie/Privacy Policy page link in the bottom nav bar.
    • Customise the cookie acceptance box to suit your board colour scheme.
    • Customise the Cookie Policy page colours.
  • Privacy
    • Will add a privacy agreement to the Registration agreement for new members.
    • Can force all members to accept the Privacy Policy.
    • The date/time of the acceptance is logged in the database.
    • Can rest the acceptance so that the policy has to be re-accepted.
    • Users can see in their UCP > Privacy Data the personal data that is stored.
    • Admin option to list who has accepted.
    • Admin option to view any member's personal data.
    • There are events in this extension so that other extensions can add any other personal data.
    • Policy text editor added for multiple languages.
    • Ability to select which cpf appear on the User page.
    • CSV download link.
    • Link to request removal of account.
    • Compatible with the Auto Groups extension.
    • Ability to accept/unaccept a user's Privacy Policy from the ACP (Privacy data).
    • Anonymise user IP addresses on posts, polls & PMs.
    • Tapatalk detection and when found display a banner in the ACP.
Language(s):
  • en
Version:
  • 3.3.1
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/devspace/privacypolicy and enable it in the ACP
Configuration:
  • ACP
  • Extensions
  • Privacy policy
  • Privacy policy settings
  • Set required options
Extension Download:

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

[3.3.1] Privacy Policy

#2

Post by devspace »

Announcements:
[15/11/2022] Updated to 3.3.1 to fix install bug - now requires Auto Groups extension to be installed

HiFi Kabin
Member
Member
Posts: 21
Joined: October 2022

Re: [3.3.0] Privacy Policy

#3

Post by HiFi Kabin »

Code: Select all


phpBB encountered an error building the container due to an installed extension. For this reason, all extensions have been temporarily disabled. Please try purging your forum cache. All extensions will automatically be re-enabled once the container error is resolved. If this error continues, please visit phpBB.com for support.

Exception: Invalid service "devspace.privacypolicy.autogroups.type.ppaccept": class "phpbb\autogroups\conditions\type\base" not found while loading "devspace\privacypolicy\conditions\type\ppaccept".

#0 C:\wamp64\www\quickinstall\boards\devspace\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php(60): Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue(Object(Symfony\Component\DependencyInjection\Definition), true)
#1 C:\wamp64\www\quickinstall\boards\devspace\vendor\symfony\dependency-injection\Compiler\DefinitionErrorExceptionPass.php(30): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->processValue(Array, true)
#2 C:\wamp64\www\quickinstall\boards\devspace\vendor\symfony\dependency-injection\Compiler\AbstractRecursivePass.php(39): Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->processValue(Array, true)
#3 C:\wamp64\www\quickinstall\boards\devspace\vendor\symfony\dependency-injection\Compiler\Compiler.php(140): Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#4 C:\wamp64\www\quickinstall\boards\devspace\vendor\symfony\dependency-injection\ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#5 C:\wamp64\www\quickinstall\boards\devspace\phpbb\di\container_builder.php(223): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#6 C:\wamp64\www\quickinstall\boards\devspace\common.php(117): phpbb\di\container_builder->get_container()
#7 C:\wamp64\www\quickinstall\boards\devspace\adm\index.php(23): require('C:\\wamp64\\www\\q...')
#8 {main}

Wampserver/Quickinstall

phpBB 3.3.8

php 7.2.10 and 8.1.9

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.0] Privacy Policy

#4

Post by devspace »

At what point are you getting this error as I cannot reproduce it on a clean 3.3.8 board

HiFi Kabin
Member
Member
Posts: 21
Joined: October 2022

Re: [3.3.0] Privacy Policy

#5

Post by HiFi Kabin »

Enable > Return to Extension List > Error shows

I'll try on my online test board to see if its different

EDIT:-

Nope, same error on 3.8.8. 8.1.11

No other extensions enabled

Image

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#6

Post by devspace »

Install problem fixed - see above

HiFi Kabin
Member
Member
Posts: 21
Joined: October 2022

Re: [3.3.1] Privacy Policy

#7

Post by HiFi Kabin »

Thanks, works perfectly

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#8

Post by mdkdio »

Hi David and thanks again for this extension!

I am running into some odd errors here after an upgrade of this extension.
[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/privacypolicy/core/privacypolicy.php on line 478: Trying to access array offset on value of type bool
This is what I get when I click on Privacy Data in UCP

So far I've reinstalled the extension a couple of times, of course after removing everything from the database rel to this extension AND the old installation (older version already installed before I updated to this).

From the file in question (privacypolicy.php line 478):
$profile_field = $this->type_collection[$profile_data['field_type']];

Any suggestion on what to try next, would be much appreciated!
Thanks in advance!

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#9

Post by devspace »

I will take a look later

phpBB version?
PHP version?

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#10

Post by mdkdio »

Sorry, should've included that info

phpbb 3.3.10
privacy policy 3.3.1

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#11

Post by devspace »

mdkdio wrote: 10 Mar 2023, 11:36
Sorry, should've included that info

phpbb 3.3.10
privacy policy 3.3.1
And PHP version?

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#12

Post by mdkdio »

Sorry! 8.1.16

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#13

Post by mdkdio »

I just noticed that I'm also getting this error when I go by (in ACP):
Users/Groups -> User Utilities -> Privacy data

Type in or search a member of the board, hit Submit/Send (button is translated from English to Swedish...)

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#14

Post by mdkdio »

Not sure if this is 100% correct, but I think I've solved the "problem"...

In database, phpbb_profile_fields
field_id 1 was missing (yes, I had it removed during my upgrade process...)
It had some odd field_name (kontroll - that is not English nor does it have phpbb_ in the name, like the other field_name, it's why I removed it)

In my DB, the complete data for that field_id was (from backup):
(1, 'kontroll', 'profilefields.type.int', 'kontroll', '1', '5', '5', '0', '0', '', 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, '', '', 1),

I have no idea on where that came from, could well be something from an old installation of phpbb (this board has been online since 2005)

David, if possible. Could you (or someone else) please confirm that this field should be there.
Thanks again for this great extension!!!

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#15

Post by devspace »

That CPF field is certainly not a default field name in phpBB - CPF id1 would normally be "phpbb_location"

No idea where that has come from and it would almost certainly have been input manually.

That probably explains why I could not replicate the error, but having said that it should not happen so will need to be fixed.

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#16

Post by mdkdio »

Thanks!

I've just compared the default/standard schema (schema_data.sql) with the database in use. And yes, there's somethin very odd there...

My main question is, what happens if I'll have it removed, and of course, the field in phpbb_profile_fields_data table (pf_kontroll).

Guess, digging up some old backup from before I took over the forum is the next step to take (try track down from where this entry came)

Thanks again for the extension and your time! Much appreciated!

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#17

Post by mdkdio »

One more question...

The privacy policy/data tab in controlpanel, where is it getting the language data from?

Reason why asking, is that there's a few "items" not being translated:
Website
Occupation
Location
Interests

Everything else is correctly translated (in this case, to Swedish).
I had this problem with the older versions of this extension as well...

Any and all suggestions on where to look are much appreciated.

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#18

Post by devspace »

Have you created the language translations for the CPFs?

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#19

Post by mdkdio »

I made a copy of the en folder -> sv, translated where needed
In ACP I've translated the
cookie policy
Privacy acceptance
Privacy policy
Terms of use

mdkdio
Member
Member
Posts: 9
Joined: March 2023

Re: [3.3.1] Privacy Policy

#20

Post by mdkdio »

Problem solved!
Even if I don't know where the "bug" is, I eventually changed the data in the database manually.
phpbb_profile_lang

Normally I should've had lang_id 1 and 2, but I have 1 and 4 (I didn't reset the 3 to 0, which is default when I reinstalled the language package).

Sorry for all the noise! :)

parcs
New Member
New Member
Posts: 1
Joined: March 2023

Re: [3.3.1] Privacy Policy

#21

Post by parcs »

Hi, I have an issue with Metro template by PixelGoose. If I set to show cookie policy acceptance box only on index, the box is showing correctly, but if I set to show it on all pages something weird happens: on every board page the box is shown correctly except on index page, where the box covers almost all page. See attached screenshots.

On prosilver this is not happening, and though I know you can't give support on the theme I'm using, do you have any idea or could you point me in any direction to solve the issue?
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#22

Post by devspace »

Sorry but I do not know that style. I would guess that there is a conflict with something in the style but I have no idea where to start looking.

Gingko
Member
Member
Posts: 3
Joined: April 2023

Re: [3.3.1] Privacy Policy

#23

Post by Gingko »

Hello.

I just tried to install the extension on a 3.3.10 forum.

After that, I made some tests by activating it with some options inside the ACP.
I don't clearly remember which ones, but at least, there was one requiring to accept cookies before being able to click any link.

Now I get a GDPR page with the choice to accept or not the policy.

If I accept it, I get another page with a “You must accept the Cookie first”.

I can't see any way to accept cookies.

Whatever I do, I can only see one of the two pages quoted above.

I even no longer have access to the ACP, my forum is completely locked.

How can I reconfigure or disable your extension without any access to the ACP?

(fortunately, I didn't do that on the actual forum, I made a test copy of it on a home test server for doing it)
Gingko

User avatar
devspace
Owner
Owner
Posts: 279
Joined: October 2022

Re: [3.3.1] Privacy Policy

#24

Post by devspace »

Not sure what you mean. Do you have a link to the board?

Gingko
Member
Member
Posts: 3
Joined: April 2023

Re: [3.3.1] Privacy Policy

#25

Post by Gingko »

devspace wrote: 04 Apr 2023, 21:10
Not sure what you mean. Do you have a link to the board?
No.
It is on a test server running on my Intranet, not accessible from outside.

I can give screenshots.
This is all the screens I can have now.
Any link (except to external sites) or buttons on which I click on these screens brings me to one or another of these three states.
The “I accept this policy” button only accepts the GDPR, not the Cookie Policy.
Where on these screens can I accept the “Cookie Policy”?

privpol1.gif
privpol2.gif
privpol3.gif
You do not have the required permissions to view the files attached to this post.
Gingko