Forum Moderators: coopster
keep in mind that poeple don't like people hotlinking their images as it uses up their bandwidth. It is also an issue grabbing images from other sites/servers and saving them to your own. I know you weren't thinking of this but just to clarify that I am not recommending that option.
By the way could you write those couple of lines,because i think that i didn't write them correctly...
Sorry if that will look stupid to you,but as am mentioned i am a newbie at this....It is a little big and am tottaly mixed up,maybe you can write the correct code?
now I see, avatars for forums, I am guessing
one comment on oyur code $HTTP_POST_VARS is deprecated since 4.1.0 if your version is greater than 4.1.0 then you should use $_POST. The same goes for $HTTP_POST_VARS use $_FILES instead.
so your code would look like this
$user_avatar_remoteurl = (!empty($_POST['avatarremoteurl']) )? trim( $_POST['avatarremoteurl'] ) : '';
$user_avatar_url = (!empty($_POST['avatarurl']) )? trim( $_POST['avatarurl'] ) : '';
$user_avatar_loc = ( $_FILES['avatar']['tmp_name']!= "none")? $_FILES['avatar']['tmp_name'] : '';
$user_avatar_name = (!empty($_FILES['avatar']['name']) )? $_FILES['avatar']['name'] : '';
$user_avatar_size = (!empty($_FILES['avatar']['size']) )? $_FILES['avatar']['size'] : 0;
$user_avatar_filetype = (!empty($_FILES['avatar']['type']) )? $_FILES['avatar']['type'] : '';
so are you just asking how to build the link to show the image? if so can you show me how you are using $user_avatar_url in the display then.