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] Registration Age

Fully working extensions for phpBB 3.3.x
User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

[3.3.1] Registration Age

Post by devspace »

Registration Age:

Adds an option to enter a birthdate upon registration and to check that the date is equal to, or greater, than a minimum age.

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.

Features:
  • Minimum age selectable.
  • Log failed attempts.
  • Ban the IP address for failed attempts (time limit selectable).
  • Store the registration birthdate in the database.
  • Auto copy the registration birthdate to the user's profile birthdate.
  • ACP report comparing actual and registered birthdates.
  • Option to display age in mini profile.
Language(s):
  • en
Version:
  • 3.3.1
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/devspace/registrationage and enable it in the ACP
Configuration:
  • ACP
  • Extensions
  • Registration Age
  • Manage registration age
Useage:
  • ACP
  • Users and groups
  • User utilities
  • Registration age
Extension Download:

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

[3.3.1] Registration Age

Post by devspace »

Announcements:
[16/11/2022] Updated to 3.3.1 - error in migration file fixed.

Niek
Member
Member
Posts: 2
Joined: January 2023
Location: Netherlands

Re: [3.3.1] Registration Age

Post by Niek »

Hello,

I made the Dutch translation for this extension.
You do not have the required permissions to view the files attached to this post.

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

Re: [3.3.1] Registration Age

Post by devspace »

Niek wrote: 09 Jan 2023 19:35
I made the Dutch translation for this extension.
Thanks

wads24
Donor
Donor
Posts: 7
Joined: January 2023

Re: [3.3.1] Registration Age

Post by wads24 »

I just upgraded to this news version deleted the old version that you no longer support and still got the error message when I clicked on registration age under user utilities

Code: Select all

General Error
SQL ERROR [ mysqli ]

Unknown column 'username_clean' in 'field list' [1054]

SQL

SELECT user_id, username, username_clean, user_birthday, user_colour, user_registration_birthdate FROM phpbb_ailabs_users WHERE user_type <> 2 ORDER BY username_clean ASC LIMIT 25

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 1031
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 202
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/mysql_base.php
LINE: 45
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 296
CALL: phpbb\db\driver\mysql_base->_sql_query_limit()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 345
CALL: phpbb\db\driver\driver->sql_query_limit()

FILE: [ROOT]/ext/devspace/registrationage/controller/data_controller.php
LINE: 147
CALL: phpbb\db\driver\factory->sql_query_limit()

FILE: [ROOT]/ext/devspace/registrationage/acp/registrationage_data_module.php
LINE: 29
CALL: devspace\registrationage\controller\data_controller->display_output()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: devspace\registrationage\acp\registrationage_data_module->main()

FILE: [ROOT]/adm/index.php
LINE: 81
CALL: p_master->load_active()

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

Re: [3.3.1] Registration Age

Post by devspace »

That error does not make any sense - can you check that you have that column in the users table as that is a phpBB default column.

wads24
Donor
Donor
Posts: 7
Joined: January 2023

Re: [3.3.1] Registration Age

Post by wads24 »

I didn't understand the error either, but I did figure out that it was the AI labs extension that was causing it. So, I disabled that, and it resolved the error.

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

Re: [3.3.1] Registration Age

Post by devspace »

wads24 wrote: 03 Feb 2024 15:39
it was the AI labs extension that was causing it.
I don't know that extension but it seems a bit strange that it would affect a db column - I wonder what else it does?

wads24
Donor
Donor
Posts: 7
Joined: January 2023

Re: [3.3.1] Registration Age

Post by wads24 »

@devspace

Would it be possible to change this from a text field to a dropdown for the date of birth?

I have noticed that users are able to enter numbers that are in an invalid format for the date of birth, and so if I copy the registration date of birth to a user's date of birth, the value isn't the same.

---

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

when i click the settings link under extensions it doesn't load the page to change any of the settings im on 3.3.15

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

Re: [3.3.1] Registration Age

Post by devspace »

kushcat420 wrote: 10 Apr 2025 22:56
when i click the settings link under extensions it doesn't load the page to change any of the settings im on 3.3.15
I am not seeing that problem.

Sounds as if it may not have installed correctly - try disabling, delete data, uninstall and then reinstall.

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

thanks i deleted reinstalled and it works

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

what does the verbose message setting do

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

Re: [3.3.1] Registration Age

Post by devspace »

kushcat420 wrote: 11 Apr 2025 23:33
what does the verbose message setting do
It will display a detailed message if there is an error or not display any message. For example it will give an error message saying that the minimum age is, say, 18 which would then inform whoever is trying to register what to change their date of birth to or it displays nothing leaving them to keep guessing

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

What is the point of store in database setting? I just enabled copy to birthday setting doesn't that still copy to database?

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

Re: [3.3.1] Registration Age

Post by devspace »

kushcat420 wrote: 12 Apr 2025 15:57
What is the point of store in database setting?
It will store in the database the dob that the user entered here upon registration.
kushcat420 wrote: 12 Apr 2025 15:57
I just enabled copy to birthday setting doesn't that still copy to database?
Yes but that will copy the dob to the "user_birthday" field in the "users" table which the user can, vis the UCP, change any time they wish.

The reason is twofold - firstly depending on your country's privacy laws storing the dob without permission may not be allowed and secondly the ACP comparison report will show both dobs, if present, to enable checking that the user does not try to circumvent age restrictions.

The recommended settings would be to store in the database but not to copy to the birthday setting.

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

what about date format

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

Re: [3.3.1] Registration Age

Post by devspace »

kushcat420 wrote: 14 Apr 2025 00:33
what about date format
What about it?

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

whats the difference betwen user and db

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

Re: [3.3.1] Registration Age

Post by devspace »

kushcat420 wrote: 15 Apr 2025 21:44
whats the difference betwen user and db
User is the member. db is the database

kushcat420
Member
Member
Posts: 7
Joined: April 2025

Re: [3.3.1] Registration Age

Post by kushcat420 »

i changed to user, and went to register an account and it still asked the birthdate in the same format as the other setting did