Featured Post

So what do those under-age drinkers drink?

The Echo last week ran with a story about the Police confiscating alcohol from under-age drinkers. They published a table of what was taken and had a picture of the haul. Now was it like what the Tories were saying? That the problem is with alcopops and super-strength booze? Nope, here are the figures: Beer...

Read More

Latest Comments

Posted by Ryan Cullen | Posted in Other | Posted on 5th January 2005

5

If you are on the main page of this blog, on the right (someway down), you’ll see the 3 most recent comments on the HaloScan comments section.

This is possible through using PHP, Comments RSS Feed, JavaScript, MagpieRSS, and the Blogger Hack I posted about a few days ago.

Comments (5)

How come it’s so complicated? I didn’t know the Haloscan RSS existed, but given that it does, why can’t you just feed it straight in using an RSS>JavaScript application?

If you look at your RSS feed it comes out in the following method:
<item>
<title>Thread: 110493805505395176. Post by Will</title&gt
<link>http://www.haloscan.com/comments/artesea/110493805505395176/&lt;/link&gt
<description>How come it’s so complicated? I didn’t know the Haloscan RSS existed, but given that it does, why can’t you just feed it straight in using an RSS>JavaScript application?</description&gt
</item&gt

So if you use a RSS>JavaScript you would get
Thread: 110493805505395176. Post by Will
as the title.

So by doing it myself, I can pull out the blogID and the author, rearange them how I want, use the blogger[blogID][0] to produce the post title, and also make the link the popup script instead.

I’ll have to have a go at that. I haven’t tried the previous trick yet as I don’t have individual post pages, so I’ll have to do that first.

You don’t need individual post pages for it to work as you can skip step 4.
Although by having individual pages you increase you google search-ability

Very nice.


Write a comment

Do you agree to the T&Cs?