Help with XHTML validation...

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
mo
Regular
Posts: 40
Joined: Sun Jan 27, 2008 11:33 pm
Contact:

Help with XHTML validation...

Post by mo »

For some reason, my blog index page doesn't validate, while individual posts do. I've spent several hours trying to figure out why, but I just can't figure it out... :roll:

I know this is not your problem, but if you have a few minutes, please help! TIA. :)
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

There's an extra </div> being output at the {/foreach} for the serendipity_entryDate. It looks like someone tried to modify the entries.tpl so that the serendipity_entryDate would be repeated for each entry; normally it wraps all the entries on the same date. In your template, it wraps only the dateline, which is repeated on each entry.

That can be done with no problem... as long as you remove the original closing tag. I don't have a copy of "carl_modified"; I assume it's a modified version of "carl_contest". If so, the line you want to remove was originally on line 179; the area looks something like this:

Code: Select all

        {$entry.backend_preview}
        {/foreach}
    </div>
    {foreachelse}
Judebert
---
Website | Wishlist | PayPal
mo
Regular
Posts: 40
Joined: Sun Jan 27, 2008 11:33 pm
Contact:

Post by mo »

That someone must have been me... :roll: Yes, "carl_modified" is based on the original "carl_contest" template.

You're right, there's was extra </div> in that line. Removing it gets rid of a few errors, but doesn't make the page fully valid (18 down to 15 errors).

http://moblog.wiredwings.com/uploads/entries.tpl.txt
http://moblog.wiredwings.com/uploads/en ... ry.tpl.txt
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Seems like also the divs of the class serendipity_entry are never closed. Those are the ones which contain the actual entries, which also explains why there are numerous errors of the same kind. Check you entries.tpl for this unclosed div.

YL
mo
Regular
Posts: 40
Joined: Sun Jan 27, 2008 11:33 pm
Contact:

Post by mo »

dammit. found it, thanks...
Post Reply