The <divs> around TrackBacks and Comments

Found a bug? Tell us!!
Post Reply
destraynor

The <divs> around TrackBacks and Comments

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: The <divs> around TrackBacks and Comments

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
destraynor

Post by destraynor »

I/We was on Serendipity .8.5, upgrading to .9 fixed it.

Thanks.
Post Reply