News

Monday 25th August 2008

I changed the link text colours to match the header colour of the contributing site. Let me know your thoughts. Some colours don’t contrast that well, but keeping the standard blue for all the links seemed so brash and boring…

Thursday 21st August 2008

One week later, and the site seems to be picking up some minor traffic, which is nice.

Added feeds from Newsvine - Sri Lanka and The Lanka Sun today.

Thursday 14th August 2008

I was toying with the idea of adding the Topix Sri Lanka Wire, but decided against it, as some stories link to private blogs. I think newslanka.org should stick to reputed news websites for now. Besides, many of the articles on the Topix feed appear here already,  and I don’t want too many duplicates, it’ll just make the site too clunky.

I’m also not sure whether to add the Google News - Lanka feed. It covers a lot of stories, but I don’t like how each post contains so many links. I’d like each article to be a link to a single story, like the Yahoo News feed. It just looks neater that way. Added to this is the duplicate post problem mentioned in the above para.

If you have any thoughts, please do Contact me.

Wednesday 13th August 2008

While I’ve got the time, I want to document a few of the conceptual ideas behind the revamp of newslanka.org.

Sri Lankan news on the web is still fairly thin on the ground, relatively speaking. I would really like to see:

Tuesday 12th August 2008

Everything seems to be in working order - for now. I’m gonna keep an eye on the site for about a week, until I’m happy that everything is working properly. Then I’ll start telling people about it…

I checked the Daily Mirror feeds to see why FeedWordPress wasn’t picking up the permalinks properly. From what I gather the code in their RSS feeds doesn’t use a <link> tag for the permalink, so FeedWordPress links to the article internally on newslanka.org. So I sadly can’t add them, unless the Daily Mirror webmaster adjusts their RSS feed code. As I understand, their site is built on WordPress, but they don’t use WordPress’ feeds functionality, choosing instead to use their own RSS code. Strange, as WordPress can offer distinct feeds for different post categories - which would be a much neater way for the Daily Mirror website to offer their categorised feeds. Whilst I’m on the topic - Daily Mirror webmaster, please add <link> tags in your site’s <head> section so browsers can pick up the feeds in their address bars.

Monday 11th August 2008

Sadly, had to remove the defence.lk RSS feed, for the date problem listed yesterday. Many stories were being scheduled in the future, due to the day and month being the wrong-way-around in the feed. Hope LBO and defence.lk can fix this so newslanka.org can add them back.

Still trying to fix the problem with posts jumping to the top when their feeds are updated.

[Update] The post-updating problem seems to be fixed now, after I added the FeedWordPress Duplicate Post Filter. That’s stopping FeedWordPress from updating posts that already exist in the database, and therefore stopping it from updating the posts’ timestamps.

Sunday 10th August 2008

The main problem I have at the moment is that articles from CricInfo, Lankaenews and LankaNewspapers.com seem to constantly push their way to the top. Instead of an article staying in the timeslot it was published, it comes up to the top every time their site regenerates their RSS feed, probably because their RSS generator resets the time of each post at regeneration time. Will try to see if I can come up with a work-around for this.

I had added a feed from LBO, but had to remove it, as FeedWordPress picks up their date format the wrong-way-around. MDY instead of DMY, I guess. For example, a post from today is dated as 8th October 2008, and WordPress schedules it for the future… Not sure if this can be worked around - LBO webmaster, if you can fix this from your end, it would be much appreciated.

I think there is a similar problem with posts from the defence.lk site. For some reason their posts have been filed under July 2008 and earlier, but the actual articles on defence.lk say 8th August 2008. defence.lk webmaster, can you see if you can fix this at your end please? I have left the defence.lk site added for now, as it’s not interfering with the latest posts - yet.

I also had to remove feeds from the Daily Mirror, as somehow FeedWordPress was able to get the articles from their feed, but not the permalinks to their articles. Will investigate this too, when I have more time.

If I have one tip to any webmasters that would like to add their news site to newslanka.org, it would be: please make sure your RSS feed validates! It helps a lot, and makes life so much easier for all around. Most of the problems above are caused by poor RSS coding.

If you could also ensure that your sites are W3C standards-compliant too, that would be great - the framework of this site validates as XHTML 1.0 Transitional, but when the HTML from the various feeds is brought in, it no longer validates properly. :(

Webmasters, please try to make sure that your websites validate to W3C standards.

Saturday 9th August 2008

newslanka.org v2.0 is uploaded to the web. It’s still experimental, as I am having trouble with some of the feeds. Added about 15 feeds. Was disappointed to find the The Lanka Academic doesn’t have an RSS feed! I wish that the UTHR(J) had an RSS feed too.