bbcode for tables not working

Get help developing custom BBCodes or request one.
Post Reply
AllanCapps
Registered User
Posts: 2
Joined: Sun Feb 05, 2023 7:22 pm
Location: Florida, USA
Name: Allan

bbcode for tables not working

Post by AllanCapps »

Hello,
This is day one for me with phpbb. I've done a few hours of research but can't figure out what I'm doing wrong. I'm trying to create a post with a table in it. Below is the text I have put into the post and the result. Can anyone tell me why it's not creating a table? I used the bb-code generator (https://tableconvert.com/bbcode-generator) but that didn't work. REF: https://www.bbcode.org/making-a-table-with-bbcode.php.

Thank you!
Allan

Here is the text/code in my post:
[table]
[tr]
[th]Level[/th]
[th]Coal Storage Cap.[/th]
[th]Mine Resident Cap.[/th]
[th]Stone[/th]
[th]Build Time[/th]
[th]Combat Power (CP)[/th]
[/tr]
[tr]
[td]1[/td]
[td]40[/td]
[td]10[/td]
[td]78[/td]
[/tr]
[/table]


Here is what is displayed after I post the topic:
[table]
[tr]
[th]Level[/th]
[th]Coal Storage Cap.[/th]
[th]Mine Resident Cap.[/th]
[th]Stone[/th]
[th]Build Time[/th]
[th]Combat Power (CP)[/th]
[/tr]
[tr]
[td]1[/td]
[td]40[/td]
[td]10[/td]
[td]78[/td]
[/tr]
[/table]
Last edited by Mick on Mon Feb 06, 2023 4:50 pm, edited 1 time in total.
Reason: Solved.
User avatar
warmweer
Jr. Extension Validator
Posts: 11234
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: bbcode for tables not working

Post by warmweer »

You don't mention having created the BBcodes. if not, then they aren't BBcodes.

Have a look at [RC] Tables
and also Advanced BBCode Box
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
AllanCapps
Registered User
Posts: 2
Joined: Sun Feb 05, 2023 7:22 pm
Location: Florida, USA
Name: Allan

Re: bbcode for tables not working

Post by AllanCapps »

Warmweer,
I wasn't aware that I had to create bbcodes, but the links you sent provided the answers. Thank you very much!!!

Allan
SQLnovice
Registered User
Posts: 118
Joined: Thu Oct 10, 2019 5:03 am

Re: bbcode for tables not working

Post by SQLnovice »

However, they're built in to the extension Advanced BBCode Box. When installed, anyone can simply copy paste from the BBCode edit bar. Fields are separated by the "|" pipe symbol. We use tables extensively, because you can tidy up everything from pictures, to text, to videos. Leading and ending row pipes are optional. But for consistency while editing, it's best just to put them in. And generally, for the content I've described, you don't want more than about 5 columns, two or three are most popular and clean looking.

Here's our forum's How-to:

1. Table formatting requires the use of the "|" pipe symbol as a column separator**. It IS NOT the letter "I" as in "I am."
2. Below is a sample table format as you would type it.
3. Every table must have a header, a column alignment row and a data row. You can have as many data rows as you like
4. Data rows must be in sequence, no breaks in the rows.
5. Data in the header row is optional. The column alignment row is hidden, but the ":" colon symbol specifies alignment/justification
|:----- for left (or if the colon isn't added, left justification is assumed)
|-----: for right
|:-----: for center
6. Spaces between pipe symbols, while editing, are for convenience
7. Pictures stored in a table are automatically reduced to fit. So best to have them in

Code: Select all

[url]xxxxx[img]xxxxx[/img][/url]
format, so they can be expanded to full size when selected.

For a more lengthy description, see here.
https://pandoc.org/MANUAL.html#extension-pipe_tables

Code: Select all

|fruit | price|
|:-----|:-----|
|apple | 2.05|
|pear | 1.37 |
|orange | 3.09|
Tables are freakin' awesome!!! I keep a UCP draft with a bunch of them as a cheat. Mostly anymore, I use tables just to straighten up lengthy member picture posts, so without header data.
Post Reply

Return to “Custom BBCode Development and Requests”