Did I miss a { or something maybe? I copied a few extra lines for you to see also..here's my code:
if (!$istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatar[avatarid]'")) {
if (!$avatar['title']) {
$avatar['title'] = $avatar['avatarpath'];
if (strstr($avatar['title'], '/')) {
$avatar['title'] = substr( strrchr($avatar['title'], '/') , 1);
}
$avatar['title'] = str_replace('_', ' ', $avatar[title]);
$dotpos = strrpos($avatar[title], '.');
$avatar[title] = substr($avatar[title], 0, $dotpos);
}
eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";");
}
eval("\$avatarbit = \"".gettemplate("register_avatar")."\";");
}
}
if ($who=="adult") {
|