Version: 1.00, by EvilHawk
Developer Last Online: Nov 2023
Version: 3.5.4
Rating:
Released: 01-19-2006
Last Update: Never
Installs: 45
Uses Plugins
No support by the author.
This plugin permits the creation of a table in a post! Tables support for thread postbit, post review and post preview!
This is a just port which is based on the original JohnWoo BB code tables 1.0 hack for vB 3.0.x . This is posted with his permission. All credits to the original author!
Quote:
How it works :
1) starting code is [table] or [table 1 2 3] where
1 2 3 any numbers separated by space
first - border
second - cellpadding
third - cellspacing
- ending tag is always [/table]
- table lines separated by line break
- each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces
example:
2^
you may skip 7^ - it is default (alt1) style
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell can have each own align. Use align mark as a first symbol of cell without spaces
blank (default) - left
= - center
~ - right
- if number of cells different in lines, last cell of shorter lines will get colspan= with needed number
so table in post may look like
[table 1 3 0]
1|2|test 16798789789797979799879797979|4|5|6|7
1^~right with colspan
2^333|=center with colspan
3^1|2|left with colspan
4^1|=center without colspan|3|4|5|6|7
5^1|blablabla|3|4|5
6^1|2|3|4|5|6|7
[/table]
Minor bugs:
a)It inserts an empty cell if you leave a space after the [table] tag, so the first line has to be like this [table 1 3 0] 1|2|test 16798789789797979799879797979|4|5|6|7
b) you can not use other bbcodes or smilies inside the table tag as they will not get parsed...
You can see demos at the screenshots
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Dear EvilHawk, I think that it is better working with phrases!
so, I changed the text in your xml, and I replaced it with some vbphrases bb_table_title
bb_table_explanation
bb_table_example
bb_table_usage
so, by adding 4 phrases to the system, we can change or translate it easily
Here is what theese phrases should replace:
Code:
bb_table_title:
Table
bb_table_explanation:
Creates a table with parameters.
bb_table_example:
[table 1 3 0]<br/>
1|2|test 16798789789797979799879797979|4|5|6|7<br/>
1^~right with colspan<br/>
2^333|=center with colspan<br/>
3^1|2|left with colspan <br/>
4^1|~center without colspan|3|4|5|6|7<br/>
5^1|blablabla|3|4|5<br/>
6^1|2|3|4|5|6|7<br/>
[/table]
bb_table_usage:
[table]table contents[/table]
starting code is [table] or [table 1 2 3] where 1 2 3 any numbers separated by space (
first - border
second - cellpadding
third - cellspacing
- ending tag is always [/table]
- table lines separated by line break
- each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces example:2^ you may skip 7^ - it is default (alt1) style
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell can have each own align. Use align mark as a first symbol of ceil without spaces blank (default) - left
= - center
~ - right
- you can use any other BB code inside cells :)
- if number of ceils different in lines, last cell of shorter lines will get colspan= with needed number
I also include the new xml file(I just changed that part, nothing else )
Hello again, I think there is a bug!
When I type an url in a cell, and the system makes it a link with [url] tag, the link is wrong.
If the url is http://www.site.com, then the link will be: http://www.site.com\"/
What could it be?
Hello again, I think there is a bug!
When I type an url in a cell, and the system makes it a link with [url] tag, the link is wrong.
If the url is http://www.site.com, then the link will be: http://www.site.com\"/
What could it be?