Webmastersite.net
Register Log In

Mistake in index.php TR handling?

Comments on Mistake in index.php TR handling?

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 11, 2005 - 12:50 AM:

Hey Paul,

index.php . Not sure which parts exactly, but the ones that relate to the creation of columns in the table for displaying subcategories.

It displays without an opening <tr> when it jumps to the next row. So if I set my columsn to 3, then after the 3rd columns items, it closes the <tr>, then starts a new <-- BEGIN REGULAR -->, but it doesn't start a new <tr>. It simply start the <td>

</td>
</tr><!-- BEGIN REGULAR -->
<td

That's how it ends up. Look at this:
validator.w3.org/check?uri=...ctype=Inline&ss=1#line-105

You will see the 3 places where it did this. Check out the corresponding page here: anmlmdirectory.com/index.ph...action=displaycat&catid=41

You will see that places where the errors came up are categories: Finance and Investments, Leads, Software . As you can see, they are the starting point of a new row and they all have this problem.

My guess is to just implement an extra check that makes sure to put a <tr> after the <-- BEGIN REGULAR --> number of occurences of columns that were specified in the admin panel. Something like: IF that number is 3, then right after the 4th occurence of <-- BEGIN REGULAR -->, create a <tr> .

Thanks
David
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 11, 2005 - 4:20 PM:

Noted.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 11, 2005 - 6:14 PM:

smiling face
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 12, 2005 - 4:14 PM:

Well I fixed the <tr> issue easily enough, but the validator still nonsensically says
]Error Line 146 column 7: end tag for "TABLE" which is not finished.

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

Error Line 197 column 3: end tag for element "P" which is not open.

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.


Use the attached file to get rid of the issues that make any sense. (Though I think there was something in wrapper.tpl I fixed too.)

Attached Files:
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 12, 2005 - 4:21 PM:

will give it a try. smiling face
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 12, 2005 - 4:28 PM:

yep. that seems to have fixed it.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 14, 2005 - 5:00 AM:

Odd, your page validates while mine doesn't.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Aug 14, 2005 - 10:27 AM:

That's cause I tweaked it. :P
Sorry, but I am a tweak freak.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.