[3.3][DEV] Username History

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!
Anti-Spam Guide
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)
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

[3.3][DEV] Username History

Post by Anișor »

Extension Name: Username History
Author: Anișor

Extension Description: Once enabled, all username changes will be stored and displayed for each user on their profile. :!: The extension will not display previous username changes that were made before the installation of this extension.
The extension doesn't rely on log entries.
Extension Version: 1.0.0-dev

Requirements: PHP >=7.1.3, phpBB >=3.3.0,<4.0.0@dev

Features:
  • Saves previous usernames
  • Displays previous usernames
Screenshots:
Screenshot at Jan 11 13-44-25.png
Screenshot at Jan 11 13-45-03.png

Demo URL: -
Demo Username: -
Demo Password: -

Extension Download: https://github.com/criminus/unamehistory
You do not have the required permissions to view the files attached to this post.
Last edited by Anișor on Sat Jan 11, 2025 11:45 am, edited 2 times in total.
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

//reserved

Before the dev version, I will make the following adjustments:
  1. The field will be displayed only if the user has changed their username at least once.
  2. A counter will be displayed: Previous Usernames (x).
  3. Only the last username will be displayed - the rest of them will be visible by clicking the [+] button next to the field to expand the rest of the usernames.
  4. A question icon will be displayed before the username and when hovered it will show the date of the change.
  5. Admins & Mods will be able to see how the username got changed in the tooltip: ACP or UCP.
User avatar
SpIdErPiGgY
Registered User
Posts: 328
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: [3.3][DEV] Username History

Post by SpIdErPiGgY »

Anișor wrote: Fri Jan 10, 2025 10:11 pm [*] Admins & Mods will be able to see how the username got changed in the tooltip: ACP or UCP.
And if chanced via ACP, maybe add the name of the admin who made the change
Image
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

SpIdErPiGgY wrote: Fri Jan 10, 2025 10:41 pm
Anișor wrote: Fri Jan 10, 2025 10:11 pm [*] Admins & Mods will be able to see how the username got changed in the tooltip: ACP or UCP.
And if chanced via ACP, maybe add the name of the admin who made the change
For this I would have two options: Either save the username and in case the admin in cause will change their name it will show older names in the tooltip instead of their most recent one or save their user_id and get the username based on that which will require an additional query.
It is possible. I will see which method works best.
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 684
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][DEV] Username History

Post by danieltj »

Are you going to include php events and template events for this extension?
MY EXTENSIONS:
Verified Profiles | API | Awesome Payments

Available for paid extension work.
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

danieltj wrote: Sat Jan 11, 2025 11:47 am Are you going to include php events and template events for this extension?
Could do, yes.

EDIT:
Added the following events:
  • anix.unamehistory.get_previous_usernames - This event allows data manipulation for the previous usernames list.
  • anix.unamehistory.get_latest_username - This event allows data manipulation for the latest username record.
  • anix.unamehistory.get_change_counter - This event allows data manipulation for the user's change counter
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 684
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][DEV] Username History

Post by danieltj »

I like it. Not enough extensions use events and it's nice to create add-ons for extensions.
MY EXTENSIONS:
Verified Profiles | API | Awesome Payments

Available for paid extension work.
User avatar
eunaumtenhoid
Registered User
Posts: 1141
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.3][DEV] Username History

Post by eunaumtenhoid »

excellent work
could have a complete listing of the history of changes in the ACP
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

eunaumtenhoid wrote: Mon Jan 20, 2025 7:32 am excellent work
could have a complete listing of the history of changes in the ACP
Thanks.
About your suggestion - I don't know how much sense it makes since the history is already present on the user's profile.
It can be done sure but I don't see the reason.
An admin can see the username change already in the Feedback page.

The purpose of the extension is to keep a record of the username changes without relying on the native logs which could be purged and the records are lost.
User avatar
eunaumtenhoid
Registered User
Posts: 1141
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [3.3][DEV] Username History

Post by eunaumtenhoid »

Anișor wrote: Mon Jan 20, 2025 8:37 am
eunaumtenhoid wrote: Mon Jan 20, 2025 7:32 am excellent work
could have a complete listing of the history of changes in the ACP
Thanks.
About your suggestion - I don't know how much sense it makes since the history is already present on the user's profile.
It can be done sure but I don't see the reason.
An admin can see the username change already in the Feedback page.

The purpose of the extension is to keep a record of the username changes without relying on the native logs which could be purged and the records are lost.
Thinking about it that way, my words don't make sense at all, lol, thanks!
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
leschek
Registered User
Posts: 861
Joined: Tue Jul 18, 2006 12:49 pm

Re: [3.3][DEV] Username History

Post by leschek »

Interesting extension. I did some testing and found some issues (well, maybe they are not issues, but features):
1. If you planing to add admin settings, it would be nice to have there note saying if username changes is allowed on forum or not (on my test forum it wasn't allowed, but I didn't remembered it, so it took me while to figure it out).
2. I did have problem with changing my username in UCP, because phpBB wrote me, that I have to change password too (maybe this is bug in phpBB), so I made a few unsuccessful attempt to rename myself - it seems that those attempts were recorded and listed by extension, even if my username wasn't changed.

Image

3. There is not listed last username change into actual username. I know, that this extension shows previous usernames, but for me it would be nicer if it shows last username changes.
4. I know I can change it in language file myself, but I think it would be clearer if Changed via: Profile would change to something like Changed via: User's profile
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

leschek wrote: Tue Jan 21, 2025 2:00 pm Interesting extension. I did some testing and found some issues (well, maybe they are not issues, but features):
1. If you planing to add admin settings, it would be nice to have there note saying if username changes is allowed on forum or not (on my test forum it wasn't allowed, but I didn't remembered it, so it took me while to figure it out).
I think this is a setting you should know about when enabling it. Natively, phpBB doesn't notice you in any way that the setting is turned on or off for a certain user group.
2. I did have problem with changing my username in UCP, because phpBB wrote me, that I have to change password too (maybe this is bug in phpBB), so I made a few unsuccessful attempt to rename myself - it seems that those attempts were recorded and listed by extension, even if my username wasn't changed.
Image
Oops, I was hooking into the wrong event. Now it should be fine. Thank you for testing it.
There is not listed last username change into actual username. I know, that this extension shows previous usernames, but for me it would be nicer if it shows last username changes.
I don't understand this? It looks like you've made some changes in the template. The extension is showing the last username the user had first in that list and then the rest of them which were previously used and changed. Or are you talking about the colours of the usernames also? I am confused.

4. - Changed.

Please also note the extension has a cache time of 5 minutes and the changes are not shown until 5 minutes have passed. They will show however if you purge the cache.
leschek
Registered User
Posts: 861
Joined: Tue Jul 18, 2006 12:49 pm

Re: [3.3][DEV] Username History

Post by leschek »

Anișor wrote: Tue Jan 21, 2025 4:13 pm
leschek wrote: Tue Jan 21, 2025 2:00 pm 1. If you planing to add admin settings, it would be nice to have there note saying if username changes is allowed on forum or not (on my test forum it wasn't allowed, but I didn't remembered it, so it took me while to figure it out).
I think this is a setting you should know about when enabling it. Natively, phpBB doesn't notice you in any way that the setting is turned on or off for a certain user group.
Now I know, where to look to see if I allowed it or not, so it is fine.
Anișor wrote: Tue Jan 21, 2025 4:13 pm
leschek wrote: Tue Jan 21, 2025 2:00 pm There is not listed last username change into actual username. I know, that this extension shows previous usernames, but for me it would be nicer if it shows last username changes.
I don't understand this? It looks like you've made some changes in the template. The extension is showing the last username the user had first in that list and then the rest of them which were previously used and changed. Or are you talking about the colours of the usernames also? I am confused.
If you look on picture I sent, you can see, that my current username is "test", but last "previous username" is "test21". It means there is not visible last username change from "test21" into "test" (if anyone is interested in who and when changed it). But to be fair it can be because of a cache time you mentioned.
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: [3.3][DEV] Username History

Post by Anișor »

When viewing the Test profile is obvious that the current name is Test.
In the Previous: is stated the latest username Test user had.
In the Usernames: is a list of all previous usernames Test had ordered by date.
leschek
Registered User
Posts: 861
Joined: Tue Jul 18, 2006 12:49 pm

Re: [3.3][DEV] Username History

Post by leschek »

Anișor wrote: Wed Jan 22, 2025 9:08 am When viewing the Test profile is obvious that the current name is Test.
In the Previous: is stated the latest username Test user had.
In the Usernames: is a list of all previous usernames Test had ordered by date.
Thank you. It was my misunderstanding of how the username changes work (probably because I did too many changes). I thought that when I hover over the question mark, it shows me when the username was changed to username I'm on in the list, but it shows when username was changed into a new one (when it was used last time).

Return to “Extensions in Development”