Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Shaman - maaliskuu 08, 2006, 11:18:06 AP

Otsikko: Bug in table parsing in 1.1-RC2
Kirjoitti: Shaman - maaliskuu 08, 2006, 11:18:06 AP
Consider:


Type of Ride
[/b]
Departure Time
[/b]
Location of Meet
[/b]

Will be printed something like:

Type of Ride      Departure Time    Location of Meet
  [/b]                     [/b]                   [/b]

Obviously, words won't be bold.
Otsikko: Re: Bug in table parsing in 1.1-RC2
Kirjoitti: kegobeer - maaliskuu 08, 2006, 11:39:46 AP
[table][tr]
[td][b][center]Type of Ride[/center][/b][/td]
[td][b][center]Departure Time[/center][/b][/td]
[td][b][center]Location of Meet[/center][/b][/td]
[/tr][/table]


I figured you'd want the actual code shown.  If you drop the center tags, you get bold fonts.  I'm not sure you can put a center tag inside of a td tag.
Otsikko: Re: Bug in table parsing in 1.1-RC2
Kirjoitti: Thantos - maaliskuu 08, 2006, 11:45:59 AP
center is a block level tag and b is not so the nesting is incorrect.

[table][tr]
[td][center][b]Type of Ride[/b][/center][/td]
[td][center][b]Departure Time[/b][/center][/td]
[td][center][b]Location of Meet[/b][/center][/td]
[/tr][/table]


Type of Ride
Departure Time
Location of Meet

Proper nesting is your friend.