Ik heb hier ff wat gemaakt voor jou/jullie.
// ubb codes
function ubb($text) {
$text = str_replace("[b]", "<b>", $text);
$text = str_replace("[/b]", "</b>", $text);
$text = str_replace("[i]", "<i>", $text);
$text = str_replace("[/i]", "</i>", $text);
$text = str_replace("[u]", "<u>", $text);
$text = str_replace("[/u]", "</u>", $text);
$text = str_replace("[s]", "<s>", $text);
$text = str_replace("[/u]", "</s>", $text);
return $text;
}
// extra user info
function extrauserinfo($text) {
$text = str_replace("[visitor]", "{$data->login}", $text);
$text = str_replace("[nickacartry]", "{$usr->cartry}", $text);
$text = str_replace("[crimetry]", "{$usr->crimetry}", $text);
$text = str_replace("[killcount]", "{$usr->killcount}", $text);
return $text;
}
// show it
function show($text) {
$text = nl2br($text);
$text = ubb($text);
$text = extrauserinfo($text);
return $text;
}
Toon Meer
misschien kunnen jullie er wat mee.
Nieuwe reactie samengevoegd met originele reactie op 30.10.09 12:09:22:
dat bovenste script sla je op als ubb.php
en bij de profiel pagina include je ubb.php
en als je de text van zijn profiel zeg je neer: