Page 1 of 1

The <divs> around TrackBacks and Comments

Posted: Wed Dec 21, 2005 8:19 pm
by destraynor
Hi all,
This most likely isn't a bug, but I am just wondering why things are done this way. Serendipitys markup is excellent for just about everything, you can customise whatever you want, but something that puzzles me is why aren't trackbacks and comments given separate <div> id's.

Here is an exceprt from my blog....

Code: Select all

<div class="serendipity_comments"> *****
              <br>
                <a id="trackbacks"></a>
                <div class="serendipity_commentsTitle">Trackbacks</div> ****
                   <div class="serendipity_center">
                        <a rel="nofollow" style="font-weight: normal;" href="http://www.minds.may.ie/%7Edez/serendipity/comment.php?type=trackback&entry_id=40" onclick="alert('This link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.'); return false;" title="This link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.">Trackback specific URI for this entry</a>
        </div>
                    <br>
       <div class="serendipity_center">No Trackbacks</div>
</div>
        
<div class="serendipity_comments">
                <br>
                <a id="comments"></a>
                <div class="serendipity_commentsTitle">Comments</div>
                <div class="serendipity_center">Display comments as
                                    (<a href="/%7Edez/serendipity/index.php?url=archives/40-Pandora-and-foXpose.html&serendipity%5Bcview%5D=linear#comments">Linear</a> | Threaded)
                                </div>

                <br>

I've put asterisks beside the bit I am wondering about. Is it just that no one would want to style one differently from the other?

Re: The <divs> around TrackBacks and Comments

Posted: Wed Dec 21, 2005 9:30 pm
by garvinhicking
Which template file and version are you looking at?

In default/entries.tpl of Serendpity 0.9, we have two unique classes:

Code: Select all

.serendipity_section_trackbacks
.serendipity_section_comments
So it seems that you are looking at an old template, or one where the distinction wasn't necessary...

Regards,
Garvin

Posted: Thu Dec 22, 2005 2:05 pm
by destraynor
I/We was on Serendipity .8.5, upgrading to .9 fixed it.

Thanks.