[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
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Thu Nov 09, 2017 11:53 pm

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 5:31 pm

Okay, that's what I did and still no more avatars have been generated. :cry:

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 8:59 pm

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?
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 9:35 pm

No, unfortunately not. :(

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 9:53 pm

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)?
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 9:57 pm

Inactive members were deleted regularly in the past. Not anymore since I updated to 3.2.

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 10:03 pm

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 10:10 pm

Image

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 10:20 pm

That's fine. Which DB you use? Type and version, pls.
Thanks for the feedback BTW, appreciated. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 10:22 pm

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
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 10:49 pm

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 10:56 pm

That's it my friend! Worked. All users except for bots now have PIAs! :lol:

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 11:01 pm

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. ;)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
jackennils
Registered User
Posts: 213
Joined: Mon Jun 01, 2009 7:48 pm

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

Post by jackennils » Fri Nov 10, 2017 11:05 pm

You're welcome! :D

User avatar
3Di
Former Team Member
Posts: 14346
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

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

Post by 3Di » Fri Nov 10, 2017 11:22 pm

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.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

Locked

Return to β€œAbandoned Extensions”