Page 2 of 3

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 6:02 am
by JoshyPHP
You should post your BBCode definitions.

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 6:54 am
by Noviets
Usage:

Code: Select all

[cell]{TEXT}[/cell]
Replacement:

Code: Select all

<td valign=top style="border-top:1px solid #111111; border-right:1px solid #111111;  border-left:1px solid #111111; padding:1px; margin:1px; border-radius:5px">{TEXT}</td>
Usage:

Code: Select all

[row]{TEXT}[/row]
Replacement:

Code: Select all

<tr>{TEXT}</tr>
Note: These are the same bbcodes as the [tr] and [td] counterparts, which work

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 7:00 am
by JoshyPHP
I tried those on my local board with [table][row][cell]...[/table] and they worked as expected. Try exactly that text in a new post and if it doesn't work for you then I have no idea.

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 7:17 am
by Noviets
Worked on a new post. resubmitting the old ones still just displays the code. I did notice something strange though.

When Deleting the new post with the working bbcode, I got an error:
Image

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 7:27 am
by JoshyPHP
Editing old posts doesn't reparse them if you don't actually change them. That's why you didn't see any difference.

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 7:57 am
by Noviets
So how would I reparse all the posts? Having to edit each one is going to take a long time

Re: 3.2 BBCode for tables?

Posted: Sat Apr 08, 2017 9:27 am
by JoshyPHP
I don't think there's a way to do that.

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 2:12 pm
by neufke
JoshyPHP wrote:
Sat Apr 08, 2017 7:00 am
Try exactly that text in a new post and if it doesn't work for you then I have no idea.
Been struggling with this for some time now. Most BBCodes are being parsed correctly but table (and tr/td aren't.)

post_text in table posts shows

Code: Select all

<r><QUOTE><s>[quote]</s>test<e>[/quote]</e></QUOTE><WET><s>[wet]</s>wet<e>[/wet]</e></WET>

[table]<br/>
[tr]<br/>
[td]test[/td]<br/>
[/tr]<br/>
[/table]</r>
Is this giving any idea to steer me in the right direction JoshyPHP?

Thnx!

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 2:24 pm
by JoshyPHP
Yes, use the definitions from this page. You'll have to reparse old posts if you want them to show a table.

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 2:45 pm
by neufke
JoshyPHP wrote:
Sun Apr 30, 2017 2:24 pm
Yes, use the definitions from this page. You'll have to reparse old posts if you want them to show a table.
Hey thanks for the quick repyl! ;)

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 4:16 pm
by neufke
JoshyPHP wrote:
Sun Apr 30, 2017 2:24 pm
Yes, use the definitions from this page. You'll have to reparse old posts if you want them to show a table.
Same results... with any of the BBCodes of the page actually... ;)

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 4:16 pm
by neufke
@mods, sorry, double post!

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 4:24 pm
by JoshyPHP
Then do the normal troubleshooting thing like disabling all the extensions, removing all other BBCodes, etc...

Re: 3.2 BBCode for tables?

Posted: Sun Apr 30, 2017 5:36 pm
by neufke
JoshyPHP wrote:
Sun Apr 30, 2017 4:24 pm
Then do the normal troubleshooting thing like disabling all the extensions, removing all other BBCodes, etc...
Did a qi on a localhost, works flawlessly, going to debug. Thanks Joshy! ;)

Problem with tr, td

Posted: Wed Oct 11, 2017 10:59 pm
by Electrix
Edit:

Moved to separate thread, sorry.

viewtopic.php?f=556&t=2442231