bbcode for tables not working

Get help developing custom BBCodes or request one.
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: 11660
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

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: 134
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.
Funwave1
Registered User
Posts: 8
Joined: Fri Dec 23, 2022 2:21 am

Re: bbcode for tables not working

Post by Funwave1 »

Edited
found a better solution as the "pipes" table, because I like a table, and not that bad looking dots and stripes.
I have get a code to become the old "table,th,tr,td" back and works..
Can we get at next PHPBB 3.3.x Versions a tables Extension where we can use like the Outlook Table System (click with mouse, select rows and lines - ready) ?
cheers
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26829
Joined: Fri Aug 29, 2008 9:49 am

Re: bbcode for tables not working

Post by Mick »

You can always make an extension request yourself.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: bbcode for tables not working

Post by Sniper_E »

Code: Select all

|fruit | price|
|:-----|:-----|
|apple | 2.05|
|pear | 1.37 |
|orange | 3.09|
I'm not sure what a pipe table looks like. I've never played with them.

But Tables 2.1.4

Code: Select all

[table=20,null]
	[thead]
		[tr=textleft]
			[th=50,null]Fruit[/th]
			[th=50,null]Price[/th]
		[/tr]
	[/thead]
	[tbody]
		[tr=bg2]
			[td=null,1]Apple[/td]
			[td=null,1]2.05[/td]
		[/tr]
		[tr=bg1]
			[td=null,1]Pear[/td]
			[td=null,1]1.37[/td]
		[/tr]
		[tr=bg2]
			[td=null,1]Orange[/td]
			[td=null,1]3.09[/td]
		[/tr]
	[/tbody]
[/table]
It looks like this.
tables.gif

And posted with this code...

Code: Select all

[table=30,null]
	[tbody]
		[tr=bg2]
			[td=bg3,1]Fruit[/td]
			[td=null,1]Apple[/td]
			[td=null,1]Pear[/td]
			[td=null,1]Orange[/td]
		[/tr]
		[tr=bg1]
			[td=bg3,1]Price[/td]
			[td=null,1]2.05[/td]
			[td=null,1]1.37[/td]
			[td=null,1]3.09[/td]
		[/tr]
	[/tbody]
[/table]
It looks like this.
tables_horizontal.gif
You do not have the required permissions to view the files attached to this post.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:

Return to “Custom BBCode Development and Requests”