Table Display Errors!

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
markkitchen
Posts: 25
Joined: Tue Feb 17, 2004 5:09 am

Table Display Errors!

Post by markkitchen »

Greetings,

Tables are displaying incorrectly in the system, I can not figure out what is happening! I am using 1.1.13 - here is a sample of test code for tables, and how it appears in the system:

Code: Select all

<table border="0" summary="">
	<tr bgcolor="silver">
		<td>Cell 1 bg=silver</td>
		<td>Cell 2</td>
	</tr>
	<tr bgcolor="red">
		<td>Cell 3 bg=red</td>
		<td>Cell 4</td>
	</tr>
</table>
Here is how it displays:
Image

Can anyone help?

Using Apache for W32
PHP Version 4.3.6
BBCode disabled, using HTML, I have comented out the Safe_html area.

Note = This is just a test table code, used only to show the error. It seems to be doubling the table, but only showing the background colors.
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

First, I don't think you are allowed to use html in the faq entries.

If you look at the generated code for the faq, you will see that each row has a <BR> tag at the end of each line, thus messing up your table.
markkitchen
Posts: 25
Joined: Tue Feb 17, 2004 5:09 am

Post by markkitchen »

All HTML is displaying correctly, except the tables.

The Image I posted was exactly what was generated from the code I specified. It was the only code in the Faq record. The 4 cells coded generated the correct table, but also created a 'mirror' table of the background properties on top of it.

Conclusion: The tables generate correctly, but it puts something 'on top' of the tables.
markkitchen
Posts: 25
Joined: Tue Feb 17, 2004 5:09 am

Post by markkitchen »

Update:

In IE, it shows exactly like the image I posted.
In Firefox/etc - it does not show the background colors (the ones above the actual table), but it does insert a space that is the size of the table on top.

Here is the generated code when view source:

Code: Select all

	<b>Test:</b> Test
		</td>
	</tr>
	<tr bgcolor="#f5f5f5">
		<td>
		<!-- Article -->

		<table border="0" summary=""><br />
   <tr bgcolor="silver"><br />
      <td>Cell 1 bg=silver</td><br />
      <td>Cell 2</td><br />
   </tr><br />
   <tr bgcolor="red"><br />
      <td>Cell 3 bg=red</td><br />

      <td>Cell 4</td><br />
   </tr><br />
</table>
		<!-- /Article -->
After the:

Code: Select all

<b>Test:</b> Test 
and Before the

Code: Select all

<table border="0" summary=""><br />
there is a large blank space. Blank space is equal to the size of the table itself.
markkitchen
Posts: 25
Joined: Tue Feb 17, 2004 5:09 am

Test for you to look at

Post by markkitchen »

Edited
Last edited by markkitchen on Wed Jun 02, 2004 2:57 am, edited 1 time in total.
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

I know what it produces. I did it in my own test faq with your code.

I believe what I said stands. You should not use html in the faq entries.

The inserted <BR> tags will mess up your table also. IE tries to "fix" your "bad" html and creates the rows that you are seeing.
AndrewB
Posts: 171
Joined: Fri Aug 22, 2003 11:15 pm
Contact:

Post by AndrewB »

Sorry - you can use html in your entries if you have BB-code turned off. :oops:

but not all of the codes are supported. I can't find a complete list of which codes should work. But it does seem that there is a problem with tables :wink:
markkitchen
Posts: 25
Joined: Tue Feb 17, 2004 5:09 am

Table Display Errors!

Post by markkitchen »

Yes :) It is strange that the tables do display perfectly, there is just added material.

Strange indeed. Throrsten, any thoughts?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

if you want to use HTML in 1.3 you have to disable BBCode support. Then it should work.

Or wait for the final 1.4 release, where you can use tables. Just try the beta version!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply