[aligntable=align,width...] bbcode

Get help developing custom BBCodes or request one.
Post Reply
bblack
Registered User
Posts: 2
Joined: Mon Aug 12, 2019 10:26 pm

[aligntable=align,width...] bbcode

Post by bblack » Mon Aug 12, 2019 10:34 pm

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 ;)

EstJoe
Registered User
Posts: 2
Joined: Thu Mar 07, 2019 12:59 pm
Location: UK
Name: Joe Estine

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

Post by EstJoe » 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]

bblack
Registered User
Posts: 2
Joined: Mon Aug 12, 2019 10:26 pm

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

Post by bblack » Thu Aug 15, 2019 7:14 pm

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

User avatar
Powdered Toast Man
Registered User
Posts: 3
Joined: Sun Jul 21, 2019 10:47 am

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

Post by Powdered Toast Man » Sun Aug 18, 2019 2:30 pm

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}.

Post Reply

Return to “Custom BBCode Development and Requests”

cron