Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: Joel on August 03, 2003, 10:02:00 AM

Title: [Accepted] Uploadable Avatars
Post by: Joel on August 03, 2003, 10:02:00 AM
I know at least a couple people made mods to do this on YSE, and I used my own implementation to allow users to upload an avatar. I'm OK with rewriting it when I convert to SMF, but I think it's a pretty simple and worthwhile option to add.

Thoughts?
Title: Re:Uploadable Avatars
Post by: Jeff Lewis on August 03, 2003, 10:08:43 AM
You're probably right, would be an easy enough feature to add in.
Title: Re:Uploadable Avatars
Post by: [Unknown] on August 03, 2003, 08:19:06 PM
I've always prefered this as a mod, but if enough people want it I can add it in.

I'll even put in "[ ] don't let other people use my avatar".

-[Unknown]
Title: Re:Uploadable Avatars
Post by: Douglas on August 03, 2003, 08:39:27 PM
I like that, and would WELCOME that!

/me gets on the ground and starts brushing it off, lightly tossing rose petals in [Unknown]'s walking path

That give you any idea of how much I want this?
Title: Re:Uploadable Avatars
Post by: sensovision on August 03, 2003, 09:31:13 PM
Quote from: Douglas on August 03, 2003, 08:39:27 PM
I like that, and would WELCOME that!

/me gets on the ground and starts brushing it off, lightly tossing rose petals in [Unknown]'s walking path

That give you any idea of how much I want this?
* senosvision take rose petals and join ceremony started by Douglas ;D
Title: Re:Uploadable Avatars
Post by: TheDel on August 03, 2003, 09:36:44 PM
I would want this too!!

And the "[ ] don't let other people use my avatar".
id a huge bonus!

THANKS Unknown
Title: Re:Uploadable Avatars
Post by: A.M.A on August 03, 2003, 09:40:37 PM
me too
Title: Re:Uploadable Avatars
Post by: Owdy on August 06, 2003, 07:08:14 PM
I want it too  ;)
Title: Re:Uploadable Avatars
Post by: Tom on August 06, 2003, 07:17:37 PM
I have Avatars disabled, so I wouldn't really care.
Title: Re:Uploadable Avatars
Post by: BG_Ironclad on August 09, 2003, 11:38:00 AM
I think it's a grand idea.  Any more room out there for another person throwing petals? ;D
Title: Re:Uploadable Avatars
Post by: Winters on August 09, 2003, 03:10:08 PM
Petals, petals. Actually, it's just like with huge amounts of smileys: not my priority, but my users can't seem to live without it!

Quote
I'll even put in "[ ] don't let other people use my avatar".
Now, that's a great thing.
Title: Re:Uploadable Avatars
Post by: Aoshi on August 09, 2003, 03:49:34 PM
Quote[ ] don't let other people use my avatar

Isn't that easy to bypass? Just save the avatar, and reupload it. It seems like it would waste the forum host's webspace.
Title: Re:Uploadable Avatars
Post by: ۞ on August 09, 2003, 03:50:39 PM
Also, people could just Right click on it, copy the URL and use it that way.
Title: Re:Uploadable Avatars
Post by: [Unknown] on August 09, 2003, 04:27:51 PM
Quote from: Jk on August 09, 2003, 03:50:39 PM
Also, people could just Right click on it, copy the URL and use it that way.

No they couldn't....

But, I suppose they *could* save it and such... if it didn't make sure you're not uploading an avatar that already exists.... which it should.

Okay, so you change a pixel or resave it in a new format.  At least it makes it difficult.

-[Unknown]
Title: Re:Uploadable Avatars
Post by: Joshua Dickerson on August 11, 2003, 02:07:03 AM
or you could change the name but if you check by name what if 2 people have 'avatar.gif'. How would a php script (with gd lib) check if it is the same image? There is no possible way you could stop someone from stealing your avatar so long as you let them see it. I think this feature is going to be inevitably bugged. I like the allowing of people to upload avatars though.
Title: Re:Uploadable Avatars
Post by: Benn on August 11, 2003, 04:02:41 AM
No need to use gd groundup, all you need to do is compare the code within files, exactly the same as comparing text files, etc.
Title: Re:Uploadable Avatars
Post by: Joshua Dickerson on August 11, 2003, 04:17:23 AM
hmm.. true.
Title: Re:Uploadable Avatars
Post by: Compuart on August 11, 2003, 11:27:36 AM
ok, uploadable avatars are now a feature :)
Title: Re:Uploadable Avatars
Post by: Compuart on August 11, 2003, 11:28:14 AM
and how it looks from the profile panel
Title: Re:Uploadable Avatars
Post by: Ben_S on August 11, 2003, 11:45:31 AM
Looking good (https://www.simplemachines.org/community/Themes/default/images/post/thumbup.gif)
Title: Re:Uploadable Avatars
Post by: Spaceman-Spiff on August 11, 2003, 11:49:17 AM
just a suggestion: i think blank.gif file should be put in images directory, not avatars
some admins out there tend to delete blank.gif accidentally when changing the whole avatar set, and users cant use blank avatar anymore
Title: Re:Uploadable Avatars
Post by: Compuart on August 11, 2003, 12:02:22 PM
Though I agree this might be a problem for some admins, changing the directory for just blank.gif is a little laborious. I hope all admins read this and promise to never delete blank.gif again ;D
Title: Re:Uploadable Avatars
Post by: Joel on August 11, 2003, 04:28:34 PM
I notice in the profile description it says that the image must be JPG or GIF. Could you add PNG as well?

Anyway, great work, Compuart! Thanks a million!
Title: Re:Uploadable Avatars
Post by: Grudge on August 11, 2003, 04:50:41 PM
Wow - looking great!!

The resize feature is a really nifty feature. I assume when the use selects their own avatar (non uploaded) and it is to big it is uploaded to the server, resized and set as their avatar? If that is the case that is really well thought out!
Title: Re:Uploadable Avatars
Post by: BiErLeEuW on August 11, 2003, 05:00:23 PM
nice new option!
Title: Re:Uploadable Avatars
Post by: [Unknown] on August 11, 2003, 05:53:11 PM
Yup, Compuart always does awesome stuff.

-[Unknown]
Title: Re:Uploadable Avatars
Post by: Spaceman-Spiff on August 11, 2003, 07:07:18 PM
GD cant resize GIF images, can it?
Title: Re:Uploadable Avatars
Post by: [Unknown] on August 11, 2003, 07:16:40 PM
Quote from: Spaceman-Spiff on August 11, 2003, 07:07:18 PM
GD cant resize GIF images, can it?

Well, yes and no.  GD 2 can do imagecopyresampled...

-[Unknown]
Title: Re:Uploadable Avatars
Post by: Compuart on August 11, 2003, 08:35:01 PM
Quote from: Joel on August 11, 2003, 04:28:34 PM
I notice in the profile description it says that the image must be JPG or GIF. Could you add PNG as well?
lol, I've been working on that screen for hours, no days and I didn't even read that description :o :P
(but yes, gif, jpg, png and bmp are resized and even more formats are allowed as external image)

QuoteAnyway, great work, Compuart! Thanks a million!
Quote from: Grudge on August 11, 2003, 04:50:41 PMWow - looking great!!
Quote from: BiErLeEuW on August 11, 2003, 05:00:23 PMnice new option!
Quote from: [Unknown] on August 11, 2003, 05:53:11 PM
Yup, Compuart always does awesome stuff.
Thanks :D

QuoteThe resize feature is a really nifty feature. I assume when the use selects their own avatar (non uploaded) and it is to big it is uploaded to the server, resized and set as their avatar? If that is the case that is really well thought out!
yep, that's the case. It'll only work if you have GD module installed and if you are allowed to use the copy function on url's.
Quote from: Spaceman-Spiff on August 11, 2003, 07:07:18 PMGD cant resize GIF images, can it?
Some versions can. For those versions that can't I'm using a free-to-distribute library, which you can download worldwide, but are only allowed to use it in America   ;)
Title: Re:Uploadable Avatars
Post by: Spaceman-Spiff on August 11, 2003, 09:09:49 PM
 ::) that kinda sucks...

well, cant we just convert gifs to pngs, that will solve the problem
Title: Re:Uploadable Avatars
Post by: Compuart on August 11, 2003, 09:27:49 PM
Quote from: Spaceman-Spiff on August 11, 2003, 09:09:49 PMwell, cant we just convert gifs to pngs, that will solve the problem
That's what it does in the first place. As soon as it sees it's gif it tries to use GD (and on failure the PHP library) to convert the image to png. But it's still not legal in Europe. So, when I was developing this, I must have been temporarily unaware of where I was at that moment ;)
Title: Re:Uploadable Avatars
Post by: Joel on August 13, 2003, 10:04:44 PM
Thanks again Compuart! You rock! :)
Title: Re: [Accepted] Uploadable Avatars
Post by: Nikita on September 12, 2007, 06:16:10 AM
Hi Compuart...

Any idea on how the avatar on the index page can be resized in SMF 2.0 to a fixed size...

Thanks.
Title: Re: [Accepted] Uploadable Avatars
Post by: Consle 4 talk on May 10, 2008, 07:42:11 AM
it has it already!