Modified Recent Comments

The recent comments now include recent trackbacks as well, thanks to Mark Paschal as discussed here [blatent self reference to show a trackback].

It was very easy to do, just following the same format as before, just with Trackback tags instead of Comment tags. However, in doing so, I found out that my rebuild woes have trashed all my trackback ping references, as they now point to non-existant entries. Of course, now I’m using mySQL I can go in a change these (save for a rainy day). I also took the necessary rebuild to use the new comment form which looks a lot nicer than the old one (hmm, must check that validates actually). No threaded comments just yet.

Whilst checking up on Shelley’s code for Recent Comments, I noticed she is using PHP/mySQL to generate her Recent Trackbacks. For everyone who doesn’t have PHP, you can use the SimpleComments plugin for the same effect. Note: You don’t have to mix Comments and Trackbacks, just use <MTSimpleCommentIfTrackback> only.

UPDATE: Just realised this doesn’t work. Once I actually had a trackback to look at I realised there just wasn’t the information in the MTPing tag necessary. If only David Raynes MTPingedURLs plugin worked outside of invidual entries. You still see there has been a trackback, but you don’t get all the information that Shelley is displaying.

4 Responses to “Modified Recent Comments”

  1. john Says:

    I’m confused by your update - what doesn’t work? I do see a trackback in your recent comments.

    This is something I am trying to do on my site. I have the same recent comments code on my individual archive page as I do my main index. In the archive it works exactly as I want - showing recent comments (both comments and trackbacks) for that entry. But on the main index I get an error saying MTSimpleComments needs to be run in an entry context.

    So I thought the answer was going to be this patch you refer to here, but while that doesn’t give me an error on rebuilds now it also doesn’t fix the problem - I only see recent comments on the main archive.

    Do you have it working?

  2. Paul Freeman Says:

    What I was hoping to display is what Shelley has in her Recent Trackbacks namely “<Trackback URL> on <URL of entry trackbacked>”. However, all you can currently have is trackbacked URL. As you can see, I’ve got that working.

    I’m not sure which patch you are referring to; Mark Paschel’s patch helped enable recent comments/trackbacks on the index page, whilst Dave Raynes MTPingedURLs still only works on the individual entries, not the index page. Is this why you are not seeing anything?

    I’ve noticed that MTSimpleComments doesn’t give a build error if you use an invalid tag, it just doesn’t display anything.

  3. john Says:

    I was referring to Mark’s patch to enable recent comments/trackbacks on the index page.

    Excellent, knowing it is working for you means I’ll spend some time to figure out just why it isn’t for me. Don’t think it is an invalid code since the exact same code works in the individual archive, but certainly gives me the energy I need knowing that I should be able to get it to work.

    Thanks

  4. Burningbird Says:

    I do like it when people have recent comments…

    I use PHP/MySql primarily because I have several ‘weblogs’ (converting all my sites over to MT management) and want posts, trackbacks, and comments from all of them to show on each page.

    And, I do love playing with MySql….