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?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 believe I did exactly that. First I followed these instructions:Follow the instructions in the resource.
Create the table BB Code as per the example posted above.
Then I pasted this text in the post box, both as normal text and as code: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" />
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?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]
UPDATE xf_post SET message = REPLACE(message,'[TABLE="class: grid, width: 500, align: center"]<tbody>','[CONTAINER][TABLE]');
UPDATE xf_post SET message = REPLACE(message,'</tbody>[/TABLE]','[/TABLE][/CONTAINER]');
Code:SELECT * FROM xf_post where message LIKE '%[table]%'
Thanks, after running the find script around 22 posts have tables! Manual edits it is!It could probably be done with a custom script.
Otherwise it would have to be done manually.
We use essential cookies to make this site work, and optional cookies to enhance your experience.