strangerstudios / basic-user-avatars

Add an avatar upload field on frontend pages and on the Edit Profile screen so users and admins can manage custom profile pictures without Gravatar.
https://wordpress.org/plugins/basic-user-avatars/
39 stars 34 forks source link

Feature request: custom prefix for filenames #7

Closed Beee4life closed 3 years ago

Beee4life commented 9 years ago

I prefer to have the $userdisplayname prefixed with avatar instead of suffixed. I hardcoded it myself by changing line 446 from $name = $base_name = sanitize_file_name( $user->display_name . '_avatar' ); to $name = $base_name = 'avatar_' . sanitize_file_name( $user->display_name ); but like to see an option for it which is update proof.

jaredatch commented 9 years ago

Sure, I'll make this filterable in the next release when I get time.

Beee4life commented 9 years ago

Also a custom upload directory would be awesome... i think that's even more important. with 2000+ members i don't want the avatars in between the site's normal uploads.

The prefix is only a temp solution to filter avatars better but if it's a custom dir, there's not much need for it imo.

jaredatch commented 9 years ago

Agreed, thanks more useful and practical.

Will take a look at it via http://wordpress.stackexchange.com/questions/67763/how-to-change-upload-directory-in-wp-handle-upload when I have time.

Beee4life commented 6 years ago

Hey @jaredatch was just looking through old issues, when I came across this. Has been open for 2 years already... Any plans on reviving/updating the plugin ? Would like to keep on using it...

Beee4life commented 3 years ago

Dropped this plugin... so topic is moot.