How to Install the Comprehensive table codes above:
Note: Due to a security risk you should limit this code to only trusted users, usually mods and admins, using a mod like "Advanced BB Code Permissions" available on vBulletin.org
Admin CP -> Add New BB Code
For each code we want to install it both with and without an "option" attribute- this will make using the code easier when you have no options needed but let you use them anywhere they are needed.
For the sake of simplicity I'm going to skip of few of the most basic steps, BB Codes are generally easy but please make sure you've installed a few before this one.
You can call the tags anything you want, in my examples I used:
tbl = <table> tag... (for compatibility if you have another [table] BB Code installed.
tr = <tr> tag (Table Row)
th = <th> tag (Table Header)
td = <td> tag {Table Data or Cell)
For the tags without options use the following replacements:
[tbl]
[th]
[tr]
[td]
For each of the above I recommend the following example:
[tbl][tr][th]Header[/th][/tr][tr][td]test[/td][/tr][/tbl]
Remember the example won't show correctly until every code in the set is installed.
Add the following code replacements WITH Option-
"Use Option = Enabled"
[tbl]
Code:
<table {option}>{param}</table>
[th]
Code:
<th {option}>{param}</th>
[tr]
Code:
<tr {option}>{param}</tr>
[td]
Code:
<td {option}>{param}</td>
For all the above codes you want to use the following settings:
Disable Word Wrapping inside BB Code = Yes
All Other Disable Options = No
You will now be able to make complete HTML tables using the tags with or without options as needed.
See the Demo above for this code in action.