Topic: Show the avatar in a intergrated site?
Hi!
I have intergrated punBB into my website. And now o am trying to show the avatar on a page on my page. The avatar that i want to show is that avatar where the user is the id in the parameter.
I have made it but then i can just choose a specific .jpg, .png or gif.....i need something that looks if its a gif, jpg or so....
This is what i found in profile.php
if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.gif'))
$avatar_field = '<img src="'.$pun_config['o_avatars_dir'].'/'.$id.'.gif" '.$img_size[3].' alt="" />';
else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.jpg'))
$avatar_field = '<img src="'.$pun_config['o_avatars_dir'].'/'.$id.'.jpg" '.$img_size[3].' alt="" />';
else if ($img_size = @getimagesize($pun_config['o_avatars_dir'].'/'.$id.'.png'))
$avatar_field = '<img src="'.$pun_config['o_avatars_dir'].'/'.$id.'.png" '.$img_size[3].' alt="" />';
All help is appreciated!
Cheers...