[3.1][3.2][RC] Default Avatar Extended

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!
Ideas Centre
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
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

[3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Sat Sep 02, 2017 2:15 am

Default Avatar Extended Extension for phpBB - © 2017 - 3Di
Special thanks go to javiexin.
Image
Avatars based on the hard work of deviantdark's DeviantArt

Author's notes:
  • I' decoupled and adapted the logic from our Steam Group Suite ext, so to provide a stand-alone extension for general use, not only for those users included in the Steam group. This version also provides the multi-styles Board an per user style basis automatic handling.
  • Provided avatars are 3:
    • dae_noavatar.png (32x32) - dae_noavatar_medium.png (64x64) - dae_noavatar_full.png (128x128)
      The above filename/extension and size in pixels can't be changed in case of img replacements.
  • Otherwise the extension goes in a dormant status till the issue has been fixed, a check-point has been provided.

Features;
  • "generic extensible solution for Gravatars not being overridable (3.1/3.2)" by javiexin. (core bug)
  • Use the provided default avatar(s) as user forum avatar.
  • The size of the default avatar used is adapted to be the biggest that fits in the forum maximum avatar dimensions.
  • Stored user avatars will be not overwritten, just overriden and visible only to users while logged in.
  • Works over all the Board.
  • Admin permission to give to those you see can administer the extension in ACP.
  • Users Groups permission
  • Compatible with controllers (ie.: Top Poster Of The Month, Ajax Chat)
  • Version checker.
Requirements:
  • phpBB >= 3.1.11 or >= 3.2.1
Version:1.1.0-rc1 2017-10-06
Codename: Get An Avatar
Download: Click here!

Upgrade extension: disable/DELETE DATA and FILES/upload new archive/re-enable

Want to say thank you?
Image

Screenshots and details: See second post.

Styles compatibility:
  • Is ready for every style, multi styles as well.
  • To use on another style that's not prosilver copy and rename the prosilver folder
  • No support is given here for paid styles (ask the author or PM me)
Languages supported:
  • English (Default)
  • I will not be accepting translations in Github. You might post a link to a downloadable archive in this topic.
Issues/Features Tracker:
Last edited by 3Di on Fri Oct 06, 2017 3:21 am, edited 15 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][DEV] Default Avatar Extended

Post by 3Di » Sat Sep 02, 2017 2:15 am

Image
.
Image
.
Image
.
Viewtopic's miniprofile
Image

ACP settings
Image
Last edited by 3Di on Wed Oct 11, 2017 6:14 pm, edited 2 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][DEV] Default Avatar Extended

Post by 3Di » Sat Sep 02, 2017 2:16 am

With Top Poster Of The Month phpBB ext (3Di)
Image
.
With AjAx Chat (spaceace) screenshot
Image
Last edited by 3Di on Thu Oct 05, 2017 10:40 pm, edited 4 times in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Sun Sep 03, 2017 2:44 am

Announcing the availability of the first public release: 1.0.0-RC1
I managed to add more code and a check-point against avatar filenames manipulation.

Feedback is very welcome, read FIRST the Topic starter and the second post before to ask, please. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

Re: [3.1][3.2][RC] Default Avatar Extended

Post by spiritatbay » Sun Sep 17, 2017 3:18 am

This might just be something staring me in the face, but having added/activated/granted permissions for the extension, I keep getting the following error message:
One or more of the Avatar filenames are wrong or totally missing. Check your relative extension/style Images folder.

Avatar filenames must be:
dae_noavatar.png (32x32) - dae_noavatar_medium.png (64x64) - dae_noavatar_full.png (128x128).

Extension is in dorman status, fix the issue and it will automatically wake-up on the next submit.
The Prosilver folder in /Styles has the images, so unless I'm supposed to load the replacements directly to the default avatar path for phpBB, not sure what I'm doing wrong.

For reference, my theme inherits from Prosilver. I'm on 3.2.1.

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Sun Sep 17, 2017 3:39 am

3Di wrote:
Sat Sep 02, 2017 2:15 am
To use on another style that's not prosilver copy and rename the prosilver folder
Your style inherits and that's ok, but the images are self-contained into the ext prosilver folder.

Just copy the provided prosilver folder
threedi/dae/styles/prosilver
and rename that copy to
threedi/dae/styles/your_style_name

Let me know if everything's all right then. Thx. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
david63
Jr. Extension Validator
Posts: 12844
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by david63 » Sun Sep 17, 2017 7:24 am

3Di wrote:
Sun Sep 17, 2017 3:39 am
the images are self-contained into the ext prosilver folder
Just a thought - would the images perhaps be better in the all folder rather than prosilver? That way they would be available for all styles and individual styles could have their own images that would overwrite the "all" folder.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email or as they will be ignored

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Sun Sep 17, 2017 9:45 pm

david63 wrote:
Sun Sep 17, 2017 7:24 am
3Di wrote:
Sun Sep 17, 2017 3:39 am
the images are self-contained into the ext prosilver folder
Just a thought - would the images perhaps be better in the all folder rather than prosilver? That way they would be available for all styles and individual styles could have their own images that would overwrite the "all" folder.
To use the mutli-style feature you always need to copy/rename the prosilver folder, the images have to be inside that new folder. This way an user can modify those to fit thier needs, simply the name/size of those must remain the same, the content can change. Tested with 4 styles/users simultaneously.

If I put the images in all/ that feature is broken. That's why there are check-points in act.
Also the instructions are clear IMO.

Or else simply copy the structure of the images folder with the style name, again you have to create a new folder, so that's not an option.
The compatibility with prosilver is related to the markup/css only.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

spiritatbay
Registered User
Posts: 51
Joined: Mon Feb 06, 2017 1:37 am

Re: [3.1][3.2][RC] Default Avatar Extended

Post by spiritatbay » Thu Sep 21, 2017 10:43 pm

3Di wrote:
Sun Sep 17, 2017 3:39 am
3Di wrote:
Sat Sep 02, 2017 2:15 am
To use on another style that's not prosilver copy and rename the prosilver folder
Your style inherits and that's ok, but the images are self-contained into the ext prosilver folder.

Just copy the provided prosilver folder
threedi/dae/styles/prosilver
and rename that copy to
threedi/dae/styles/your_style_name

Let me know if everything's all right then. Thx. :)
That solved it. Thanks for your help!

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Fri Sep 22, 2017 12:36 am

Great. :)

Now you could also replace those inages with yours, just follow the names/sizes that must match for the logic to work.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

asylum
Registered User
Posts: 16
Joined: Thu Sep 14, 2017 10:48 pm

Re: [3.1][3.2][RC] Default Avatar Extended

Post by asylum » Fri Sep 22, 2017 12:42 pm

My version-control say 1.1.0-RC1, but i can't download it anywhere??

EDIT: I also use AJAX chat, and you ext dont show the avatar on it, it use avatar of the theme of the forum...

Sorry for my english...

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Fri Sep 22, 2017 7:59 pm

asylum wrote:
Fri Sep 22, 2017 12:42 pm
My version-control say 1.1.0-RC1, but i can't download it anywhere??
Sorry, fixed.. check it again. :) There is only one version publicly available, this one.
asylum wrote:
Fri Sep 22, 2017 12:42 pm
EDIT: I also use AJAX chat, and you ext dont show the avatar on it, it use avatar of the theme of the forum...
Does it show the default theme avatar also if you select "Always" replace in ACP?
I don't have that extension installed and I don't I know its code either, but I guess I know where I have to lurk for this, if you confirm my above question.

Thx for feed back. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

asylum
Registered User
Posts: 16
Joined: Thu Sep 14, 2017 10:48 pm

Re: [3.1][3.2][RC] Default Avatar Extended

Post by asylum » Sat Sep 23, 2017 1:54 pm

Is the same thing with always,,, :oops:

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Sat Sep 23, 2017 7:29 pm

asylum wrote:
Sat Sep 23, 2017 1:54 pm
Is the same thing with always,,, :oops:
Ok, let's make this change on the fly, no need to disable ext or purge cache (if you know how to do it)

OPEN
./ext/threedi/dae/core/dae.php

FIND the line (should be 65)

Code: Select all

return ($this->ext_path_web . 'styles/' . rawurlencode($this->user->style['style_path']) . '/theme/images/dae_noavatar.png');
and REPLACE it with

Code: Select all

return ($this->path_helper->get_web_root_path() . 'ext/threedi/dae/styles/'
 . rawurlencode($this->user->style['style_path']) . '/theme/images/dae_noavatar.png');
We are changing the path from relative to absolute, now if you use "replace always" in ACP you should be able to override the chat's default avatar.

Let me know, thanks. :)
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

User avatar
3Di
Registered User
Posts: 11719
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: [3.1][3.2][RC] Default Avatar Extended

Post by 3Di » Wed Sep 27, 2017 12:16 am

Even better a new and tested version, thanks to your feedback guys. ;)

Announcing the availability of DAE v1.0.0-RC2 See first posts.

Changes Log 1.0.0-RC2
  • Fixed absolute URL for images and controllers
  • Fixed missing permission
Upgrade extension: disable/DELETE DATA and FILES/upload new archive/re-enable
Last edited by 3Di on Thu Oct 05, 2017 10:41 pm, edited 1 time in total.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Baidu [Spider], chanlon1, m82a1pa, Mannix_, Steve, Tbot [Bot] and 11 guests

cron