The World of Layonara  Forums

Author Topic: Forum Update - HTML Cleanup & New Tables  (Read 543 times)

orth

Forum Update - HTML Cleanup & New Tables
« on: March 24, 2007, 04:07:46 am »
Okay, the HTML Cleanup went okay as far as I can tell, there are some issues here and there, in some cases all you need to do is edit your post and save it and things should fix themselves.  (I noticed this for bulleted lists).  

If you are missing anything please let me know.

Also the format of how you work with tables is much easier and I have converted the existing tables to use that new format.  To make a table you simply enter it like so:

Code: [Select]
[noparse]
[table=head]Heading 1|Heading 2|Heading 3
Row 1 Col 1| Row 1 Col 2| Row 1 Col 3
Row 2 Col 1| Row 2 Col 2| Row 2 Col 3
[/table]
[/noparse]
If you don't want a heading for the first row and just treat it as a normal row then you need not specify the =head part.

Now the real cool part... if you want to make these tables sortable, then specify which columns are sortable.  For example:

Code: [Select]
[noparse]
[table=head;sort=1,2,3]Spell|Level|Cost
Bless|1|460
Virtue|0|25
Implosion|9|7560
Resurrection|7|10000
[/table]
[/noparse]
produces this:

[table=head;sort=1,2,3]Spell|Level|Cost
Bless|1|460
Virtue|0|25
Implosion|9|7560
Resurrection|7|10000
[/table]

Notice how you can click the headings and they re-sort?

Anyway I should post this so I can turn the forum back on O.o.

Once again, let me know if anything significant has been lost, and if you see a stray html tag and it's your post, try fixing it.  As I said sometimes just clicking edit then save will do the trick.

Cheers,
orth
 
The following users thanked this post: Leanthar, Thak, Pen N Popper, mumbles, Weeblie

Thak

Re: Forum Update - HTML Cleanup & New Tables
« Reply #1 on: March 24, 2007, 06:04:22 am »
Oooh nice the sorting is a cool feature. Thanks! :)
 

Leanthar

Re: Forum Update - HTML Cleanup & New Tables
« Reply #2 on: March 24, 2007, 09:41:24 am »
Love the sorting option! :)
 

LynnJuniper

Re: Forum Update - HTML Cleanup & New Tables
« Reply #3 on: March 24, 2007, 10:25:35 am »
hey! That's awesome! Great job Orth!
 

Hellblazer

Re: Forum Update - HTML Cleanup & New Tables
« Reply #4 on: April 05, 2007, 07:34:06 am »
Any reason why I can not make a table of more than 3 rows? It always imput automaticaly the {/table] {table=head] after the third row, when ever i try to preview or submit it.

Meh gotta put a space after the {table=head] and the first letter d'oh

 

anything