The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Using 'Tables'

2 posters

Go down

Using 'Tables' Empty Using 'Tables'

Post by hannahl3 Fri 9 Apr - 15:59

In the icon list at the top of the page when you're writing a forum post is an option to 'insert a table', with a column and rows selector, 'add a row', and 'add a cell'. How exactly does this work, and can existing posts be edited to include these tables?
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 16:21

Tables divide texts and other such things into columns and rows. Here is an example of a table:

Title 1 Title 2 Title 3 Title 4
Info 1 Info 2 Info 3 Info 4
Info 5 Info 6 Info 7 Info 8

This is the BBCode for the above table that I used:
Code:
[table border=1]
[tr]
[td]Title 1[/td] [td]Title 2[/td]  [td]Title 3[/td]  [td]Title 4[/td]
[/tr]
[tr]
[td]Info 1[/td] [td]Info 2[/td] [td]Info 3[/td] [td]Info 4[/td]
[/tr]
[tr]
[td]Info 5[/td] [td]Info 6[/td] [td]Info 7[/td] [td]Info 8[/td]
[/tr]
[/table]

The 'tr' represents a row, and the 'td' represents a new column.




If you don't want that border, just remove the 'border=1' from the 'table' tag. Also, you can change the width and height of any of the 'table', 'hr', and 'td' tags by adding width=# or height=# within the tags.
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Fri 9 Apr - 16:31

Hmmm - it looks easier to do by using html than bbcodes then. Because the instructions on the table icon are about as clear as fog.

So I could edit existing posts in my forum to include tables?
Reason I'm asking is because I wanted to add some album artwork next to my music players instead of underneath them

(edit) Whoops - I meant 'writing your own bbcodes' instead of the inbuilt ones
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 16:49

hannahl3 wrote:So I could edit existing posts in my forum to include tables?
Yes, you can. And you can use HTML tables if you have HTML enabled on your forum. Actually, BBCode tables are more simple than HTML tables; however, you can customize more with HTML tables.
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Fri 9 Apr - 17:20

So in your esteemed opinion - if my music player is 400 wide, what table widths would suit it best in a standard forum post if the player was to go on the left and the album art was to go on the right? Its on a phpbb3 forum set at 70% width

(edit) Oh hang on, I'm getting a bit too complex here, arent I?
Its just a case of making two columns and it should all rack itself up, yes?


Last edited by hannahl3 on Fri 9 Apr - 17:29; edited 1 time in total
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 17:27

You probably don't have to mess with the width; the border should fit itself around the music player.
How are you wanting the table set up? Like, are you wanting to have the music player and something else horizontal in just one row? If you are, then that should be alright... just watch out for the width of the row because of how wide the music player is. You will probably have about 150 width left on the right side of the row.
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Fri 9 Apr - 17:31

Yep - that all seems fine to me.

Thanks Rok - I'll let you know if anything blows up Smile
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 17:33

Alright, I'll be standing over here with some protection goggles and a safety suit just in case. Smile
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Fri 9 Apr - 17:49

Right, the [td] and [tr] tags arent doing anything at all - just appearing like that in the post itself.
Also, when clicking on the 'insert table' icon, it gives a different tag - ie [table]

So whats happening?
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 17:56

Hm, you probably have an error in your table BBCode. What code are you using?
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Fri 9 Apr - 17:58

Sorry, basic elementary primary school mistake.

I didnt close one tag and open the next one.

It works spot on - Thanks x
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by Rok Fri 9 Apr - 18:34

It's no problem. Come back whenever you have anymore questions!
Rok
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

Using 'Tables' Empty Re: Using 'Tables'

Post by hannahl3 Sat 10 Apr - 18:55

Okey dokey - the tables are working fine but theres another unforeseen problem.

I've got it set up so that my music player is in the first cell and the album art plus a description of the album, band members, recording stats etc, are in the second cell which is alongside the player. That is - the player in td1 and the other lot in td2.

However - with there being quite a lot of stuff in td2, the player in td1 is appearing halfway down the post as all the content is repositioning itself. Is there a way to override this and bring the player in td1 up to the top of the post?
hannahl3
hannahl3
Forumember

Female Posts : 154
Reputation : 0
Language : English
Location : Nottingham, England

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum