Page 1 of 1

[aligntable=align,width...] bbcode

Posted: Mon Aug 12, 2019 10:34 pm
by bblack
I need a bbcode called aligntable like this:

Code: Select all

[aligntable=align,width,marginleft,marginright,border,brdcolor,bkgrdcolor]{TEXT}[/aligntable]
but i can't find anything about this bbcode, i just found one code, it' is:

HTML Code:

Code: Select all

<div style="float:{SIMPLETEXT}; margin: {NUMBER} {NUMBER} {NUMBER} {NUMBER};"> <table width="0" border="0" bordercolor="{NUMBER}"><tbody><tr><td>{TEXT}</td></tr></tbody></table> </div>
BBcode Code:

Code: Select all

[aligntable={SIMPLETEXT},{NUMBER},{NUMBER},{NUMBER},{NUMBER},{NUMBER}]{TEXT}[/aligntable]
but it doesn't work, just shows a text like [aligntable=right,0,10,0,0,0,0]My Text[/aligntable],

i founded the [align=] but i don't like it, i really needed this type of aligntable, i will be very grateful for any help ;)

Re: [aligntable=align,width...] bbcode

Posted: Wed Aug 14, 2019 12:09 pm
by EstJoe
Try this:

Code: Select all

[aligntable=left,1,150,0,0,0,transparent]TEST_1[/aligntable]
[aligntable=right,1,0,150,0,0,transparent]TEST_3[/aligntable]
[aligntable=middle,1,350,0,0,0,transparent]TEST_2[/aligntable]

Re: [aligntable=align,width...] bbcode

Posted: Thu Aug 15, 2019 7:14 pm
by bblack
EstJoe wrote:
Wed Aug 14, 2019 12:09 pm
Try this:

Code: Select all

[aligntable=left,1,150,0,0,0,transparent]TEST_1[/aligntable]
[aligntable=right,1,0,150,0,0,transparent]TEST_3[/aligntable]
[aligntable=middle,1,350,0,0,0,transparent]TEST_2[/aligntable]
Doesn't work, the code i had is wrong, i need i new code and i need one is working

Re: [aligntable=align,width...] bbcode

Posted: Sun Aug 18, 2019 2:30 pm
by Powdered Toast Man
Your first problem is that your using a token (like {NUMBER}) more than once and it cannot tell the difference.

So you need to number them by adding a number as the last character between the braces, e.g. {NUMBER1}, {NUMBER2}.