hallo erstmal
$this->bbcode_second_pass_code('', '$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Level","value"=>"`b".$u['level']."`b"))
.templatereplace("statrow",array("title"=>"Angriff","value"=>$atk))
.templatereplace("statrow",array("title"=>"Verteidigung","value"=>$def))
.templatereplace("stathead",array("title"=>"Aussehen"))
.templatereplace("statrow",array("title"=>"Augenfarbe","value"=>$eyecol[$u['eyecol']]))
if ($session['user']['sex']==0) {
.templatereplace("statrow",array("title"=>"Stärke","value"=>$stae[$u['stae']]))
}
.templatereplace("stathead",array("title"=>"Weitere Infos"))
.templatereplace("statrow",array("title"=>"Gold","value"=>$u['gold']))
.templatereplace("statrow",array("title"=>"Erfahrung","value"=>expbar()))
.templatereplace("statrow",array("title"=>"Waffe","value"=>$u['weapon']))
.templatereplace("statrow",array("title"=>"Rüstung","value"=>$u['armor']))
,true);')
is ne blöde idee.. na klar dass der kein if da haben will... des is ja auch mittem im templatereplace...
musste wohl oder übel aufteilen

machs mal so...
$this->bbcode_second_pass_code('', '$charstat.=appoencode(
templatereplace("statrow",array("title"=>"Level","value"=>"`b".$u['level']."`b"))
.templatereplace("statrow",array("title"=>"Angriff","value"=>$atk))
.templatereplace("statrow",array("title"=>"Verteidigung","value"=>$def))
.templatereplace("stathead",array("title"=>"Aussehen"))
.templatereplace("statrow",array("title"=>"Augenfarbe","value"=>$eyecol[$u['eyecol']])),true);
if ($session['user']['sex']==0) {
$charstat.=appoencode(templatereplace("statrow",array("title"=>"Stärke","value"=>$stae[$u['stae']])),true);
}
$charstat.=appoencode(templatereplace("stathead",array("title"=>"Weitere Infos"))
.templatereplace("statrow",array("title"=>"Gold","value"=>$u['gold']))
.templatereplace("statrow",array("title"=>"Erfahrung","value"=>expbar()))
.templatereplace("statrow",array("title"=>"Waffe","value"=>$u['weapon']))
.templatereplace("statrow",array("title"=>"Rüstung","value"=>$u['armor']))
,true);')
ungetestet, aber müsste dafür funktionieren...
mfg dat mine