BBCodes suggestions

Forum help and suggestions to improve this forum.

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

BBCodes suggestions

Post by Pablo César » Sat May 25, 2013 12:20 pm

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 ?
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Sat May 25, 2013 3:07 pm

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]
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sun May 26, 2013 1:01 am

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
Last edited by Pablo César on Tue May 28, 2013 1:10 am, edited 10 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Sun May 26, 2013 3:47 am

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.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Sun May 26, 2013 1:41 pm

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 4055 times
Last edited by Pablo César on Tue May 28, 2013 1:41 am, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon May 27, 2013 3:18 am

Now I have changed atable=> table.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Mon May 27, 2013 12:26 pm

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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Mon May 27, 2013 12:54 pm

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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

User avatar
Rathinagiri
Posts: 5264
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 169 times
Been thanked: 172 times
Contact:

Post by Rathinagiri » Mon May 27, 2013 1:09 pm

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]
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 182 times

Post by Pablo César » Mon May 27, 2013 1:32 pm

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).
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

Post Reply