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
thanks
You are not logged in. Please login or register.
PunBB Forums → Feature requests → 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
thanks
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.
ok cool, didnt know it would be that easy
i should have tryed it really
Thanks, ill let you know how i get on with it!
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');
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)
Yeah utterly forgot about that. You'd need to change the display code for that, in either viewtopic.php and profile.php
would this be a security risk to my forum because people can upload their own flash avatars ??
Yes, flash can do things like redirect the user to a different page
PunBB Forums → Feature requests → Flash avatars?
Powered by PunBB, supported by Informer Technologies, Inc.