iif's are being phased out?
ok now just read it, could i just
PHP Code:
$grps_postsinfo['avatar']=iif($grps_postsinfo['hascustom'],"image.php?u=$grps_postsinfo[userid]&dateline=$grps_postsinfo[avatardateline]","$grps_postsinfo[avatarpath]");
if ($grps_postinfo['hascustom'])
{
$grps_postinfo['avatar']= imagecratefromstring($postinfo['avatar'];
}
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\"/>";
basically just making the adding the line to convert it to my script or will i have to use the imagesy() imagesx() functions?
just got back, it can't create the image from string it appears
Code:
Warning: imagecreatefromstring(): Passed data is not in 'WBMP' format in \groups\groups.php on line 180
Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in \groups\groups.php on line 180
Warning: getimagesize(image.php?u=10&dateline=1063118771): failed to open stream: Invalid argument in \groups\groups.php on line 181
PHP Code:
if($grps_postsinfo['hascustom'])
{
usleep(1500);
$grps_postsinfo['avatar'] = "image.php?u=$grps_postsinfo[userid]&dateline=$grps_postsinfo[avatardateline]";
$grps_postinfo['avatar']= imagecreatefromstring($grps_postinfo['avatar']);
$avatarinfo = getimagesize($grps_postsinfo['avatar']);
$avatarinfowidth = $avatarinfo[0]/2;
$avatarinfoheight = $avatarinfo[1]/2;
$grps_postsinfo['avatar'] = "image.php?u=$grps_postsinfo[userid]&dateline=$grps_postsinfo[avatardateline]";
$grps_postsinfo['avatar'] = "<img src=\"$vboptions[bburl]/$grps_postsinfo[avatar]\" alt=\"avatar\" />";
}
else
{
usleep(1500);
$grps_postsinfo['avatar'] = "$grps_postsinfo[avatarpath]";
$avatarinfo = getimagesize($grps_postsinfo['avatar']);
$avatarinfowidth = $avatarinfo[0]/2;
$avatarinfoheight = $avatarinfo[1]/2;
$grps_postsinfo['avatar'] = "<img src=\"$vboptions[bburl]/$grps_postsinfo[avatar]\" width=\"$avatarinfowidth\" height=\"$avatarinfoheight\" alt=\"avatar\" />";
}
is the code in charge, i already miss the precious iff's