e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Feature request]: Avatar System Improvement #5224

Open Trinity-Records opened 2 months ago

Trinity-Records commented 2 months ago

Motivation

So my goal is to have Avatars meet User Class management, THE EASY WAY

On top of that, Many gamer sites will love this new feature to make Crew Avatars set to that user class and other possibilities it can render.

Proposed Solution

A few SIMPLE options can become a powerful, yet Simple solution.

Possible improvement suggestions. (No need to use all, Need only one but each these would work)

1) Media Manager solution: Allow for avatars to be edited like normal uploaded images by admins. 2) Media Manager solution: Allow for admins to (batch or single) upload Avatars via Library uploader. 3) Media Manager solution AND User Settings: Allow User Class options to avatar uploading form. 4) FTP/Media Manager solution: User Class folders in avatar directory.
4.1) Example, Create ./admin folder in the avatars directory. Detectable by Admins Only. Allow for avatars to be read as admin and edited like normal uploaded images by admins. 4.2) If the Avatar Directory For existing userclass does not exist, create new folder for that class. Allow for those avatars to be managed by the corresponding userclass and up 5.) A Simple File system like we used to have on 0.7 ? Create folders/files and manage with user class permissions.

Alternatives

I Uploaded avatar collection by FTP on both /upload and /default to see what happens.. I figured this out: ./default is system stuff, any image here is “On The House” and available to everyone. The ./upload is user uploaded images. Seem to have the same effect. Because NO USERCLASS IS GIVEN prior/nor after to the upload.

So, What IF? ( create ./admin directory and make it userclass=admin, viewable by all selectable by admins and viewable by all) I had to see if it would work… So I uploaded one avatar image the ./admin folder (via FTP). Then, I went to media manager. The ./admin/AdminAvatar.png was there and selectable by all (just like the ./default folder)… That’s when I realized there is no way to create folders and manage permissions… (Possible for improvement? Check!)

As a Main admin, I have no control over the avatars that are uploaded. I can select them to use or delete them. It does not matter if they are uploaded by FTP or by a user, THEY ALL SHOW UP in the avatar manager and ONLY OPTION is to delete selected or unused images. ( Still not able to classify avatar for admin use). OK.

More digging… New work- around? Maybe: In Media Manager, I've created new category, named “Admin Avatars” with Admin USERCLASS. (Awesome!) Now; Upload image to represent new AdminAvatars category. Here we have choice, upload to “OWNER = some plugin” (like hero, or gallery, etc.) But Admin does not list on OWNERS. Why Is That?

So, I went back into Media Manager, uploaded the NewAdmin.png photo and tied it to user class admin. (Success, Awesome!!) One problem, I cannot select it as a Avatar.

(Oh well.. At least I tried?)

Additional Context

../e107_media /~/avatars/… Situation/Context:

I wanted to Select an avatar and make it visible by all, selectable by admins only.

(This could have been much easier): I was able to create a "Admin Avatar" Category, (Admins Only) in media manager.

Then, in Media Library; I am able to manage all images and set user permissions on all images. Awsome! But I cannot directly set existing Avatar permissions. I had to upload one in usersettings.php profile editor… Go to the Media Library, select edit, and THEN it worked! I finally have a avatar that everyone can see but no one can select (except admins) .

As a Main admin, I have no control over the avatars that are uploaded. I can select them to use or delete them. It does not matter if they are uploaded by FTP or by a user, THEY ALL SHOW UP in the avatar manager and ONLY OPTION is to delete selected or unused images. ( Still not able to classify avatar for admin use).