[ABD] phpBB Initial Avatars (Lite)

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] phpBB Initial Avatars (Lite)

Post by 3Di »

Yes. I coded a full working version but I am not really satisfied of the way is coded.
I mean it is not elegant but a bit ugly coded, despite it does its job as it should.

I will see if in the next days would it be possible for me to get some spare time and inspiration to code it better. I have had a lot to do with other extensions of mine in the meanwhile.

Stay tuned though. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][DEV] phpBB Initial Avatars (Lite)

Post by jackennils »

Will do. :)
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][DEV] phpBB Initial Avatars (Lite)

Post by 3Di »

jackennils wrote: Tue Oct 31, 2017 11:18 pm Will do. :)
I am on the piece the right way.
We should expect a release very soon. :geek: ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][DEV] phpBB Initial Avatars (Lite)

Post by jackennils »

Great! :o
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

Releasing PIA v1.0.1-beta. See first posts.

Changes Log since v1.0.0-dev (internal)
  • Code re written
  • Raise version to 1.0.1-beta
  • Housekeeping

Please keep in mind this is experimental/bleeding edge code, therefore you MUST perform a DB backup prior to use it. Still the advice to do not use extensions in development on production boards applies.

The extension will automatically backup on a separate custom DB table all of the user's avatars in order to prevent any possible issue, emergency tools have been coded in order to rescue those data if necessary. Such custom Table will be NOT deleted in case of extension's disable/delete data, that's an extra layer of security for now.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

Okay, so I gave it another try, but again nothing really works.
  • After activation only 1 single avatar was created for a user without avatar. All other avatar-less users still have no avatar.
  • Changing settings afterwards does not have any effect on the output. (example: had size at 0.3 and changed it to 0.5 but the link to ui-avatars.com still shows 0.3, deleted the cache multiple times...)
  • setting "use initial avatars" to No still shows the single avatar that has been created
  • after disabling the whole extension the generated avatar is still displayed
Sorry, but you really need to test this yourself before publishing a so-called beta that does not work at all. Disappointing. :(
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

jackennils wrote: Wed Nov 08, 2017 7:42 pm After activation only 1 single avatar was created for a user without avatar. All other avatar-less users still have no avatar.
Which didn't happen in my prer-release tests. Anyway I coded something which should avoid this to happen again.
jackennils wrote: Wed Nov 08, 2017 7:42 pm Changing settings afterwards does not have any effect on the output. (example: had size at 0.3 and changed it to 0.5 but the link to ui-avatars.com still shows 0.3, deleted the cache multiple times...)
Yes, that's a bug I fixed now in my local environment as well.
jackennils wrote: Wed Nov 08, 2017 7:42 pm setting "use initial avatars" to No still shows the single avatar that has been created
after disabling the whole extension the generated avatar is still displayed
The ACP states:
Store in the USERS TABLE the link to the PIA Avatar where the user is avatarless.
Users can chose to avoid it via UCP (default is allowed for all).
Selecting NO in the future will only affects new users.
PIA Avatars can be removed then if the users selects a custom avatar.
To add, if you administrate an user you can delete the avatar like every avatar.
The user could also do that or select a new avatar or select to not have a PIA avatar, I coded the UCP.

Both of those are related, I will see in the future to code some sort of switch, I consider this a feature request.
Having not yet stated which features will be implemented you shouldn't expect I read a crystal-ball to know the future in advance, thanks for pointing that out though. :)

A new release will be here shortly I think.

Last bit, I know that's a hard life to be a beta tester, if you are willing to volunteer I do appreciate it.
Else if your criticism goes beyond the common sense with considerations which I didn't appreciate, like..

you really need to test this yourself before publishing a so-called beta that does not work at all.

.. then I do prefer you to avoid to test/use this extension to begin with and search elsewhere.
I am not here providing free software just to get blamed on my way like that. Thanks.

Let's go on now.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

-
Releasing PIA v1.0.2-beta. See first posts.

Changes Log since v1.0.1-beta
  • FIX - After activation only 1 single avatar was created. (?¿)
  • FIX - Changing ACP settings does not have any effect on the output.
  • FEATURE - Delete PIA avatars on use denied and go in a dormant status.
  • TASK - Raise version to 1.0.2-beta
  • TASK - Housekeeping
Update Extension: disable / delete files / upload new files / re-enable
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

Apologies, I did not have the intention to be rude. For me as a non-developer it created a feeling of "nothing works, there can't have been any kind of testing prior to the release of the beta". But yes let's move on and of course I want to help an do further tests. Will check out the new version tomorrow and report back.

Regarding the possible switch: Yes, please! Removing avatars by hand for potentially thousands of users would be a pain in the ... :)
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

jackennils wrote: Wed Nov 08, 2017 11:44 pm Regarding the possible switch: Yes, please! Removing avatars by hand for potentially thousands of users would be a pain in the .
Has been implemented already in the present 1.0.2-beta. ;)

FEATURE - Delete PIA avatars on use denied and go in a dormant status.
Please read the new description in ACP.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

Okay, so here is what I found out:
  • The new switch is working as intended. :)
  • The fix for not applying settings changed after activation is working. :)
  • Still only one single avatar is created. :(
Check out the last post here: https://mafia-daily.net/forum/viewtopic ... &start=405

It has been generated for user LeonFrank12, but not for user Cabrio (first post of this page). It's still showing the no-avatar image I put in the template as a fallback solution (the silhouette image).
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

Thanks for feedback.
jackennils wrote: Thu Nov 09, 2017 6:37 pm Still only one single avatar is created.

Check out the last post here: https://mafia-daily.net/forum/viewtopic ... &start=405

It has been generated for user LeonFrank12, but not for user Cabrio (first post of this page). It's still showing the no-avatar image I put in the template as a fallback solution (the silhouette image).
That's very strange, as you can see in the screenshots I posted in the second/third posts of this topic all of the avatarless users are correctly populated. Let's see where the issue lies then, I need your help since I don't have access to your DB.

The Cabrio's user_id is 4794 - please look at your USERS_TABLE (usually phpbb_users) to the following fields and report exactly the content of each of those for the user in question:

- user_avatar
- user_avatar_type
- user_type
- pia_avatar_ucp

That's the first very step to try and solve once and for all this situation.
As I said, it doesn't happen and never happened here in my local environment.

Thanks.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

Here you go:

user_avatar = empty
user_avatar_type = 0
user_type = 0
pia_avatar_ucp = 1


Edit: I found something!

It's not only 1 avatar that has been created, but 11. These are all users who have registered after I did the update to phpbb 3.2. Then the next "users" are the new bots that came with phpbb 3.1 or 3.2 (don't know since I skipped 3.1). The rest is old users from phpbb 3.0.x and they do not have any pia-avatars.

I was at 3.0.x then jumped straight to 3.2 and lastly to 3.2.1.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

jackennils wrote: Thu Nov 09, 2017 11:20 pm Here you go:

user_avatar = empty
user_avatar_type = 0
user_type = 0
pia_avatar_ucp = 1


Edit: I found something!

It's not only 1 avatar that has been created, but 11. These are all users who have registered after I did the update to phpbb 3.2. Then the next "users" are the new bots that came with phpbb 3.1 or 3.2 (don't know since I skipped 3.1). The rest is old users from phpbb 3.0.x and they do not have any pia-avatars.
In fact. The user_avatar_type should be empty and not 0 as for 3.2 :ugeek:
That field is checked for its emptyness and only if empty will be filled.
BOTS and ANONYMOUS are simply skipped instead.

Let's go to the second step, the final one I think-..

Please have a look at the user LeonFrank12 now, please report those 4 fields again. Thx. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [3.2][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

Okay, here's Leon:

user_avatar = https://ui-avatars.com/api/?name=LeonFr ... case=false
user_avatar_type = avatar.driver.remote
user_type = 0
pia_avatar_ucp = 1
Locked

Return to “Abandoned Extensions”