Sami (SychO) ProfileCover A Flarum extension. Adds the ability to upload a cover image to a user profile. Installation Using composer: $ composer require sycho/flarum-profile-cover Updating Using composer: $ composer update sycho/flarum-profile-cover Links GitHub Packagist Extiverse Discuss License This software is released under the MIT License. A full copy of this license is included in the package file.
Ralkage I remember seeing this project first show up on Flagrow/Extiverse’s new extension release bot on Discord. Though it had a few errors that I got around at first, I am glad you decided to publish it here 😃
pkernstock This is amazing! Just a tiny piece of feedback: I'd like to see recommended cover sizes displayed when uploading somewhere. This helps getting an idea how the sizes should be to look best. (without playing around with browser devtools to get the sizes that way) What would be also quite cool: Automated resizing/cropping of uploaded covers. Maybe (re-)using https://discuss.flarum.org/d/18286-friendsofflarum-profile-image-crop?
Sami (SychO) pkernstock I like that, I've created a couple issues in the repo so that I won't forget to add them in the next version.
luceos TOWUK the disabled input field seems to show the value of the given input (2048) in a human readable state. So you'd have to set the available input field to 51200
Sami (SychO) TOWUK I think you are confusing the second input with the first, the second input just converts the size to megabytes, you need to edit the first input which is in kilobytes, so like luceos said, change 2048 to 51200
[deleted] Sami (SychO) Great extension, but would it be possible to add permissions? I want to only give my supporters the ability to upload a cover.
danielunited The strangest thing just happened... One of the admins in my community went to delete the cover photo and his user got deleted. Is that even possible?
Sami (SychO) danielunited that is impossible, whatever happened must not have been triggered by the extension, the extension just deletes the image file and sets the user's cover to null before the user model gets saved. I don't see how that could've somehow ended up deleting the user instead.