24.01.2009, 00:29
Ja, habe ich durchgeführt und so sieht sie aus...
Code:
if($mybb->settings['postlayout'] == "classic")
{
eval("\$postbit = \"".$templates->get("postbit_classic")."\";");
}
else
{
$birthquery = $db->query("SELECT birthday FROM ".TABLE_PREFIX."users WHERE uid = '".$post['uid']."'");
$birthday = $db->fetch_array($birthquery);
if(empty($birthday['birthday'])) {
$memberage = "Nicht angegeben";
} else {
$memberage = get_age($birthday['birthday']);
}
eval("\$postbit = \"".$templates->get("postbit")."\";");
}
$GLOBALS['post'] = "";
return $postbit;
}