CTA Table BB Code

CTA Table BB Code 1.1.1

No permission to download
You still have to manualy enter all of the tags and content.
The concatenation function just makes it easier.
 
I installed this add-on per your instructions, in xenforo 1.2. Afterwards I realized it needed to be used with 1.3, I upgraded to 1.3.
1) Is this ok?
2) How do I make a table? An example would be helpful.
 
I noticed that linebreaks aren't nulled, so you can't use:
Code:
[table]
[tr]
[th]header1[/th]
[th]header2[/th]
[th]header3[/th]
[th]header4[/th]
[tr]
[td]something1[/td]
[td]something1[/td]
[td]something1[/td]
[td]something1[/td]
[/tr]
[/table]

Without getting a lot of <br />'s above the table. You have to do this...
Code:
[table][tr][th]header1[/th][th]header2[/th][th]header3[/th][th]header4[/th][tr][td]something1[/td][td]something1[/td][td]something1[/td][td]something1[/td][/tr][/table]

But that's a trivial and expected issue with all the bbcodes.
I tried pasting this code (both versions) into the reply reply box in a thread, but the resulting post is just the code. Do I need to do something else?
 
Follow the instructions in the resource.

Create the table BB Code as per the example posted above.
 
Follow the instructions in the resource.

Create the table BB Code as per the example posted above.
I believe I did exactly that. First I followed these instructions:
1. Download and unzip
2. Import the .xml like any other add-on (not via the Import Custom BB Codes option)
3. Add this line to the top of EXTRA.css: <xen:include template="cta_bbcode.css" />
Then I pasted this text in the post box, both as normal text and as code:
Code:
[table]
[tr]
[th]header1[/th]
[th]header2[/th]
[th]header3[/th]
[th]header4[/th]
[tr]
[td]something1[/td]
[td]something1[/td]
[td]something1[/td]
[td]something1[/td]
[/tr]
[/table]
What am I doing wrong? Does EXTRA.css need to have more than just the single line of code (<xen:include template="cta_bbcode.css" />) maybe?
 
Last edited:
I have.

If you follow the instructions it will work.
Many of us are using this BB Code with no issues.
 
Hey @Brogan is there a way (SQL) where I can find all old posts with
tag and remove the line brakes to remove the <br> tags from appearing above the tables?

My XF install was imported from VB which has multiple table in various posts.

I am also planning to run the below SQL queries because most of the tables are not displaying because of the class
Code:
UPDATE xf_post SET message = REPLACE(message,'[TABLE="class: grid, width: 500, align: center"]<tbody>','[CONTAINER][TABLE]');
and
Code:
UPDATE xf_post SET message = REPLACE(message,'</tbody>[/TABLE]','[/TABLE][/CONTAINER]');

Edit: Added [CONTAINER] to minimize stuff breaking on mobiles
 
Last edited:
It could probably be done with a custom script.

Otherwise it would have to be done manually.
 
Top Bottom