ok ive gottin to work some what, the code below takes out the quotes and displays the text, but it doesnt show the table.. what gives?
<?
function quote($strinput) {
$text2 = spliti("\[quote\]|\[\/quote\]",$strinput);
for($i = 0; $i < count($text2); $i++) {
if(ereg("\[quote\]|\[\/quote\]",$text2[$i])) {
ob_start();
?>
<table width="640" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#0A4250"><strong><font color="#FFFFFF" size="1">Quote</font></strong></td>
</tr>
<tr>
<td bgcolor="#CCCCCC">
<table width="100%" border="0" cellspacing="6" cellpadding="0">
<tr>
<td>
<?
print $text2;
?>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<?
//print $text2;
$text2[$i] = ob_get_contents();
ob_end_clean();
} else {
}
}
$text2 = implode("",$text2);
return $text2;
}
?>