3 Oct 2006 06:16 - Attached on mergeing: Tables BB code
You can even add width=xx to the first <td> tag for better formatting with
$pattern[7] = "/\[lrtable(=)?(\d{1,3})?\] (.+?)::(.+?)\[\/lrtable\]/s"; $replacement[7] = '<table><tr><td valign="top" width=\\2>\\3</td><td valign="top">\\4</td></tr></table>';
[lrtable=60]Left side::Right side[/lrtable] will produce a 60 pixels wide left column, while the other uses what it needs.
Maybe I'll rewrite this some day to support real tables, not only for left-right |