bbcode.php<?
function bbCode($text)
{
$txt = preg_replace('/[link](.*?)[/link]/', '<a href=\"1\" target=\"_blank\">1</a>', $txt); $txt = preg_replace('/[@](.*?)[/@]/', '<a href=\"mailto:1\">1</a>', $txt); $txt = preg_replace('/[quote](.*?)[/quote]/', '<table width=\"90%\" valign=\"center\"> <tr width=\"90%\">
<td>
<p align=\"right\"><b>Cytat:</b></p>
</td>
</tr>
<tr width=\"90%\">
<td>
<p align=\"left\">1</p>
</td>
</tr>', $txt);
}
?>
i teraz wywołujesz funkcję np. tak:
<?
include(\"bbcode.php\"):
$TEKST = \"jakis tam tekst z informacjami\";
bbCode($TEKST);
?>
pisane szybko z głowy
mam nadzieję, że quote działa