This is what it looks like...
Output Spec = OUTER BROAD BORDER (with complimentary pinline border) + INNER BGCOLOR (with complimentary pinline border) + inner table + only OUTER borders + inner table artificial cellpadding + cellspacing for text edge clearance.
Only 2 tables used now.
Easy to edit and throw about.
What the user sees.
Code: Select all
[PostTextBox][AttachmentHolder][attachment=0]puppy.jpg[/attachment][/AttachmentHolder]Post text Goes Here![/PostTextBox]
BBCODE Useage
Code: Select all
[PostTextBox]{TEXT}[/PostTextBox]
Code: Select all
<TABLE bgcolor="#77b4f0" border="2" bordercolor="#318ce7" rules="none" frame="border"><tr><TD colspan="3" height="10"></TD></TR>
<TR><TD width="10"></TD>
<TD align="middle">
<TABLE bgcolor="#ffffe0" align="center" border="2" bordercolor="#a19c48"
<!--Not commonly used anymore but splat out inner borders of every cell but outer edge --> rules="none" frame="border">
<!-- Artificial cellpadding --><tr><TD colspan="3" height="12"></TD></TR>
<!-- Artificial cellspacing --><TR><TD width="12"></TD>
<TD valign="top">{TEXT}</TD>
<TD width="12"></TD></TR>
<TR><TD colspan="3" height="12"></TD></TR></TABLE>
</TD>
<TD width="10"></TD></TR>
<TR><TD colspan="3" height="10"></TD></TR></TABLE>
</td></tr></table>
Code: Select all
Posts Text Box. Clean. Simply write between the tags. [PostTextBox]Your Words Here![/PostTextBox]
Now lets put in the attachment upper left RHS wrapped by the text in the parent table.
BBCODE useage.
Code: Select all
[AttachmentHolder]{TEXT}[/AttachmentHolder]
Code: Select all
<TABLE align="left" valign="top"><tr colspan="3" height="12"><TD></TD></TR>
<TR><TD width="12"></TD>
<TD align="left">{TEXT}</TD>
<TD width="11"></TD></TR>
<TR><TD colspan="3" height="12"></TD></TR></TABLE>
Code: Select all
Add this INSIDE the PostTextBox to hold your ATTACHMENT Image. [AttachmentHolder]Click the INLINE attachment between here.[/AttachmentHolder]
BUT.............. I am no Guru in php.


