Thank you! I got it working now. smile

The exactly script I'm using is:

            $avatardir = "http://www.wiistation.nl/forum/img/avatars";
            if ($img_size = @getimagesize($avatardir.'/'.$list2->userid.'.gif'))
                $user_avatar = '<img src="'.$avatardir.'/'.$list2->userid.'.gif" alt="" />';
            else if ($img_size = @getimagesize($avatardir.'/'.$list2->userid.'.jpg'))
                $user_avatar = '<img src="'.$avatardir.'/'.$list2->userid.'.jpg" alt="" />';
            else if ($img_size = @getimagesize($avatardir.'/'.$list2->userid.'.png'))
                $user_avatar = '<img src="'.$avatardir.'/'.$list2->userid.'.png" alt="" />';

Hi folks!

I'm working on a website with punBB intergrated. People can post comments in the news section of the website (non-punbb) under there own name and because I send the userid from punbb with it, I can show profile information from the one that has placed a comment. Well, I'd like to show the avatar of that one, but I can't get it working.

Does anyone have any idea how it could be done? Please help me.

Thanks in advance,

Tim