1

Topic: Flash avatars?

Well, i've just got adobe flash and i've started playing.
And i was just woundering, Is there an easy way to get an avatar to use a flash file?

If not, don't worry, Im just interested smile

thanks

Re: Flash avatars?

Yep, all you have to do is allowing the flash MIME (which I ignore which is) to the profile.php in the line

$allowed_types = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/x-png');

It's 347 in my profile.php, I might have modded it but I can't remember.

3

Re: Flash avatars?

ok cool, didnt know it would be that easy tongue
i should have tryed it really tongue

Thanks, ill let you know how i get on with it!

Re: Flash avatars?

You might have to skip the width/height check (unless it works for Flash).

            // Now check the width/height
            list($width, $height, $type,) = getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.tmp');

Re: Flash avatars?

Moved to PunBB Discussion
It's slightly more involved than Strofanto suggests, you can't just put Flash in an image tag for example (and you'll want to allow a .swf extension)

Re: Flash avatars?

Yeah utterly forgot about that. You'd need to change the display code for that, in either viewtopic.php and profile.php

Re: Flash avatars?

would this be a security risk to my forum because people can upload their own flash avatars ??

Re: Flash avatars?

Yes, flash can do things like redirect the user to a different page