Table, Row, Cell and Text Alignment BBCodes Test

General discussion not limited to, nor excluding, MWO. No spam.
Post Reply
Fox Parker
Colonel
Colonel
Posts: 403
Joined: Thu Oct 04, 2012 3:52 pm
Location: Michigan
Contact:

Table, Row, Cell and Text Alignment BBCodes Test

Post by Fox Parker »

The following test is for table formatting support in forum posts. As it stands right now it functions, but does not have borders in our default theme. I suspect the theme is overriding any table border settings I use in the HTML replacement within the BBCode.

You must use Cells inside of Rows inside of Tables to have a complete, working table. Please always use the Preview function before posting. I recommend using the BACK button if you must edit, as the edit dialog after a preview collapses what you entered. It's still readable, but not as clears as posting like this:

Code: Select all

[table][row][cell][left]Top Left[/left][/cell]
[cell][center]Top Center[/center][/cell]
[cell][right]Top Right[/right][/cell][/row]

[row][cell][left]Center Left[/left][/cell]
[cell][center]Center[/center][/cell]
[cell][right]Center Right[/right][/cell][/row]

[row][cell][left]Bottom Left[/left][/cell]
[cell][center]Bottom Center[/center][/cell]
[cell][right]Bottom Right[/right][/cell][/row][/table]
Product of above code. EDIT: Borders fixed!
Top Left
Top Center
Top Right
Center Left
Center
Center Right
Bottom Left
Bottom Center
Bottom Right
Col. Fox Parker
4th Regulan Hussars
Ryerson Military District
Knight Lieutenant - Knights of Regulus
House Marik, Free Worlds League Military
Fox Parker
Colonel
Colonel
Posts: 403
Joined: Thu Oct 04, 2012 3:52 pm
Location: Michigan
Contact:

Re: Table, Row, Cell BBCodes Test

Post by Fox Parker »

Not terribly happy with the results of this.

I went and checked what Enjin had. It appears theirs works like some of the more cluttered versions for phpBB3 which are limited by a preset number of columns and rows while Enjin pops up a dialog asking for how many columns and rows you want.

I have a few ideas how to do this with a combination of php and java-script. But I'm not sure if that's the best way to go about it. Especially as some disable java-script altogether for security reasons.
Col. Fox Parker
4th Regulan Hussars
Ryerson Military District
Knight Lieutenant - Knights of Regulus
House Marik, Free Worlds League Military
Fox Parker
Colonel
Colonel
Posts: 403
Joined: Thu Oct 04, 2012 3:52 pm
Location: Michigan
Contact:

Re: Table, Row, Cell and Text Alignment BBCodes Test

Post by Fox Parker »

Borders are fixed, and I added text alignment as I feel no table is complete without proper alignment within cells!

The
,
, and
tags are NOT part of the tables, and only used to align the text within that cell as an example.
Col. Fox Parker
4th Regulan Hussars
Ryerson Military District
Knight Lieutenant - Knights of Regulus
House Marik, Free Worlds League Military
Post Reply