BB Code [table]
Description
This Hack provides a BB code [table] to add a table to the post
The skin of the table automatically fits the style because the CSS classes of vBulletin are used.
A table is simply made of some lines (will be the rows). The cols are seperated by |. So this will be a table:
Kod:
[table="head"]head col1|head col2|head col3 row1 col1|row1 col2|row1 col3 row2 col1|row2 col2|row2 col3[/table]
Usage
- install attached product XML through product manager (overwrite existing)
- install at least one language pack in AdminCP -> Languages & Phrases -> Download / Upload Languages -> Import Language XML File
Important: Select the language you want to import the phrases into, not "(Create New Language)" - this won't work! If you use another version of vBulletin than I use enable "Ignore Language Version" to import the language pack.
Please note: (installing)
Installing this product will: (reverted during uninstall)
- rename a existing BB code "table" to "table_saved"
- add a new BB code [table]
Note: Including the file on the webpages where it is necessary is done by my product. So if sortable is disabled, it won't be included automatically.
If you want to have a icon for the editor you may use this for free:

Please note: (usage)
- Of course you can use vB Code and smilies inside the table!
- The first line defines how much columns are in the table. If the other lines have more or less colums they are cut off or filled with (space)
- You can find a detailed description of the options (please read it before requesting help)
- Empty rows are (should be
) removed.
New features
- define colspan of cells
- small panel in AdminCP
- define CSS class of table and tablerows
- live sorting of table through clicking the head of a column
- defining maximum width of a table
Maybe planned features
- detailed description of the vB Code in misc.php?do=bbcode depending on the features enabled in AdminCP (planned for next beta version)
- define formatting (bold, italic), align (left, right, center) and width of the cols
- none
Known problems
- Bugfix of version 0.1.1 doesn't work if vBulletin should write template names into the source code