MarkPW
06-18-2006, 11:09 PM
Hi all,
When my users upload (or link) to an avatar, I want to generate a thumbnail of that avatar. I realise there's a hook called profile_updateavatar_complete of which I would guess would be a suitable location to run code for this. However, because I'm unfamiliar with how vb processes the avatar in the first place, I don't know which variables hold the file data etc in order to process the thumbnailed copy, nor do I know how to define whether a user is processing a file or whether that user has chosen to link to an external image.
I'm not asking for help on how to create a thumbnail. I just want to know which variables I use to retrieve data and extension information of the uploaded avatar, aswell as the variable which defines whether it is an external url or upload.
I would appreciate any help. :classic:
When my users upload (or link) to an avatar, I want to generate a thumbnail of that avatar. I realise there's a hook called profile_updateavatar_complete of which I would guess would be a suitable location to run code for this. However, because I'm unfamiliar with how vb processes the avatar in the first place, I don't know which variables hold the file data etc in order to process the thumbnailed copy, nor do I know how to define whether a user is processing a file or whether that user has chosen to link to an external image.
I'm not asking for help on how to create a thumbnail. I just want to know which variables I use to retrieve data and extension information of the uploaded avatar, aswell as the variable which defines whether it is an external url or upload.
I would appreciate any help. :classic: