the problem i am having is when someone tries quoting 2 people at onece
like it should come out
but the function just takes the last found quote code and replaces it
<div class="quotebox"><i>Person1]blah.[/quote]
[quote=Person2 said:</i>blah.</div>
so instead of the code below, i guess i need something that replaces the first instance of quote and find the next /quote and then continue looking for other quoted text?
any help is appricated
thx
-PaPPy
function bbcode_quotes($str){
ereg("\[quote=(.*)\](.*)\[/quote\]",$str,$reg);
$newtext = "<br><div class=\"quotebox\"><i>{$reg[1]} said:</i><br>{$reg[2]}</div><br>";
return str_replace($reg[0], $newtext, $str);
}