Page 1 of 3

BBCodes suggestions

Posted: Sat May 25, 2013 12:20 pm
by Pablo César
Dear Rathi,

Reviving this topic where I've suggested to implement borders for table tag for our forum system, which now is coming without.

My suggestion is to modify BBCode of forum with three options for borders (see numerical parameters):

0 = without borders
1 = with simple-line of borders
2 = with double-line of borders

Recently, I have implemented in STRU a routine which can generate a table with BBCodes for DBFs structures and be possible to use in the forum.

What do you think, this suggestion would demand mucho work for you ? Is it possible ?

Re: BBCodes suggestions

Posted: Sat May 25, 2013 3:07 pm
by Rathinagiri
Sample Text Sample Text
Sample Text Sample Text
Sample Text Sample Text
This is a small atable sample (advanced table).

To achieve this you have to enter like this below. This is only a test version. If it is ok, we can change atable, atd, atr as table, td and tr.

Code: Select all

[atable border=5 cellpadding=1 cellspacing=1 width=90% height=50px][atr][atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd]
[atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd][/atr]
[atr][atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd]
[atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd][/atr]
[atr][atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd]
[atd align=1 valign=1 bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/atd][/atr][/atable]

BBCodes suggestions

Posted: Sun May 26, 2013 1:01 am
by Pablo César
So nice dear Rathi !

I make three examples can be choosen in STRU option and I've changed some colors:
TEST.DBF
NrNameTypeSizeDec
1CODEN010000
2FIRSTC030000
3LASTC030000
4BIRTHD008000
5MARRIEDL001000
6BIOM010000
TEST.DBF
NrNameTypeSizeDec
1CODEN010000
2FIRSTC030000
3LASTC030000
4BIRTHD008000
5MARRIEDL001000
6BIOM010000
TEST.DBF
NrNameTypeSizeDec
1CODEN010000
2FIRSTC030000
3LASTC030000
4BIRTHD008000
5MARRIEDL001000
6BIOM010000
Codes are in this way:

Code: Select all

[atable border=0 cellpadding=0 cellspacing=0 width=25% height=50px]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Nr[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Name[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Type[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Size[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Dec[/b][/atd][/atr]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]1[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]CODE[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]N[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]010[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]000[/atd][/atr]

[atable border=1 cellpadding=0 cellspacing=0 width=25% height=50px]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Nr[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Name[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Type[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Size[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Dec[/b][/atd][/atr]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]1[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]CODE[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]N[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]010[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]000[/atd][/atr]

[atable border=1 cellpadding=0 cellspacing=2 width=25% height=50px]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Nr[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Name[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Type[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Size[/b][/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFF80][b]Dec[/b][/atd][/atr]
[atr][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]1[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]CODE[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]N[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]010[/atd][atd align=1 valign=1 bordercolor=#008000 bgcolor=#FFFFBF]000[/atd][/atr]
In my opinion It is so good like this :D

Re: BBCodes suggestions

Posted: Sun May 26, 2013 3:47 am
by Rathinagiri
So, can we switch to the new table bbcode? I have to revisit old tables (if any) to find out whether they work in the new bbcode style.

BBCodes suggestions

Posted: Sun May 26, 2013 1:41 pm
by Pablo César
rathinagiri wrote:So, can we switch to the new table bbcode? I have to revisit old tables (if any) to find out whether they work in the new bbcode style.
Ok, Mr. Rathi IMO it is quite good enough and I happy you enjoy it too.

Please note basically working as Border-parameter:

Border=0 => atable border=0 cellpadding=0 cellspacing=0
Border=1 => atable border=1 cellpadding=0 cellspacing=0
Border=2 => atable border=1 cellpadding=0 cellspacing=2

Thank you for your support, many thanks :)
Done3.png
Done3.png (964 Bytes) Viewed 4048 times

Re: BBCodes suggestions

Posted: Mon May 27, 2013 3:18 am
by Rathinagiri
Now I have changed atable=> table.

BBCodes suggestions

Posted: Mon May 27, 2013 12:26 pm
by Pablo César
Thanks Mr. Rathinagiri !

I make others testes and noted in td there are align and valign. In the example your first example is with =1 value. These parameters are working ?
Because I've tried to change but without results.

I've seen this in internet: http://www.bignosebird.com/docs/h26.shtml and showing to work with: VALIGN=MIDDLE, VALIGN=TOP, VALIGN=BOTTOM, ALIGN=LEFT, ALIGN=CENTER and ALIGN=RIGHT. Or all of these is only fixed value with numerical ?

I loved these way you have indicated, because we can change colors and dimensions value. Thanks for this jewelry !

P.S. Please note re-edition of my previous messages, I 've replaced all aTable for Table, just for right view of tables. You message here is with no table view due replace sintax.

BBCodes suggestions

Posted: Mon May 27, 2013 12:54 pm
by Pablo César
Dear friend Rathi,

I fear that by replacing aTable by Table, all existed TABLES were all without proper visualization. See items 1 and 2 of this message: http://hmgforum.com/viewtopic.php?p=26766#p26766

I suggest to keep both kind of TABLE tag. One rich table (aTable) and letting old existing table (Table).

Sorry, probably I have induced you to do this mistake.

Re: BBCodes suggestions

Posted: Mon May 27, 2013 1:09 pm
by Rathinagiri
Yes. You are correct. align and valign variables accept "LEFT:CENTER:RIGHT" and "TOP:MIDDLE:BOTTOM" as values.

Regarding the old tables, we can change to otable, otd and otr, You can just show me the table topics/posts.

Code: Select all

[table border=5 cellpadding=1 cellspacing=1 width=90% height=50px][tr][td align=MIDDLE valign=CENTER bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td]
[td align=RIGHT valign=TOP bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td][/tr]
[tr][td align=LEFT valign=BOTTOM bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td]
[td align=CENTER valign=CENTER bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td][/tr]
[tr][td align=RIGHT valign=TOP bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td]
[td align=LEFT valign=BOTTOM bordercolor=#00FF40 bgcolor=#FFFFFF]Sample Text[/td][/tr][/table]

BBCodes suggestions

Posted: Mon May 27, 2013 1:32 pm
by Pablo César
rathinagiri wrote:align and valign variables accept "LEFT:CENTER:RIGHT" and "TOP:MIDDLE:BOTTOM" as values.
ohhh great !
rathinagiri wrote:Regarding the old tables, we can change to otable, otd and otr, You can just show me the table topics/posts.
Dear Rathi, in order to keep old messages with the old way for table, I suggest to keep old-table as (table) tag and for new one with more options please create a new tag with different name. Just to avoid to correct all old messages (that could it be so many).