[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][BETA] phpBB Initial Avatars (Lite)

Post by 3Di »

Everything's clear now, the logic works as I coded it, just this glitch the upgrade made from 3.0 to 3.2.

Let's see to fix that then,

Disable PIA

OPEN ./ext/threedi/pia/lite/pia.php
Should be line 287 - function pia_main() - FIND and DELETE this line.
AND user_avatar_type ' . $this->db->sql_like_expression('') . '
SAVE and close that file.

Enable PIA.

Automatically at the first hit to the board the logic will (should)
populate all of the remaining avatarless users in one shot..


Pls report.

Edit: you should then hit submit in ACP to let it fill out those users.

The main logic called on a per board's hit only runs if there are logged-in new avatarless users.

The ACP instead forces that logic to run with no conditions, just the submit button.
🆓 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, that's what I did and still no more avatars have been generated. :cry:
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: Fri Nov 10, 2017 5:31 pm Okay, that's what I did and still no more avatars have been generated. :cry:
What happens if you manually empty (delete that zero) the user_avatar_type for the user Cabrio (user_id is 4794) and click submit in ACP thereafter?
Does the PIA avatar shows on him 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 »

No, unfortunately not. :(
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 »

All of this is very strange I can say. :?

What about your board which says you have 2968 users but the newest user_id is 4908 (Pex78)?
🆓 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 »

Inactive members were deleted regularly in the past. Not anymore since I updated to 3.2.
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 »

Makes sense. Could you please try to switch to prosilver style and test?

Please post the lines from 285 to 290 of the file you modified, 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 »

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 »

That's fine. Which DB you use? Type and version, pls.
Thanks for the feedback BTW, appreciated. :)
🆓 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 »

MySQL 5.6.37

No problem. ;)

Edit: I figured something out. It's not just the few last members that got a PIA. It's way more. But also more than 1300 are missing. Is it possible that the population of the database takes a lot of time because of some restrictions of the UI-Avatars API?

Sent you a PM with some more details not appropriate for public.
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 »

Got the PM, danke. ;)

The function works on populating 500 users per block, should automatically end when reaches the last user avatarless. My test board just have 501 users so I couldn't test it more.

You may try to submit (in ACP) multiple times?

I will ask the API provider if there are limits of course, I don't think so 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][BETA] phpBB Initial Avatars (Lite)

Post by jackennils »

That's it my friend! Worked. All users except for bots now have PIAs! :lol:
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: Fri Nov 10, 2017 10:56 pm That's it my friend! Worked. All users except for bots now have PIAs! :lol:
Phew... I was getting crazy this time! :lol: :geek:

Now I know I just have to tune the logic for the ACP to stop really at the very end on first population.
I can't tell an user to submit multiple times, holy crappy idea that would be, lol.

Thanks for you help here. ;)
🆓 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 »

You're welcome! :D
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: Fri Nov 10, 2017 11:05 pm You're welcome! :D
One last Q, in your DB there should be an extra table I coded (phpbb_pia) which should contain the original backup of ALL of your users avatars except for BOTs and ANONYMOUS. Created via migrations.

This table will be not deleted on extension's disable/delete data, I would like to know if has been FULLY populated as it should be, many 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
Locked

Return to “Abandoned Extensions”