heres the code
PHP Code:
$grps_postsinfo['avatar']=iif($grps_postsinfo['hascustom'],"image.php?u=$grps_postsinfo[userid]&dateline=$grps_postsinfo[avatardateline]","$grps_postsinfo[avatarpath]");
usleep(1500);
$avatarinfo = getimagesize($grps_postsinfo['avatar']);
$avatarinfowidth = $avatarinfo[0]/2;
$avatarinfoheight = $avatarinfo[1]/2;
$grps_postsinfo['avatar']="<imgsrc=\"$vboptions[bburl]/$grps_postsinfo[avatar]\"width=\"$avatarinfowidth\"height=\"$avatarinfoheight\" alt=\"avatar\"/>";
i'll check into imagecreatefromstring() now.