100% Irish - Click here to see only Irish stories

October 24, 2004

TCAL RSS Super Button tutorial

danger @ 6:20 pm
TCAL RSS Super Button The TCAL RSS Super Button code is really two bits of code from two sources which I then hacked together. The first is a PHP based RSS feed parser by Emperor. This code takes the TCAL.NET rss feed and then spits out the headlines as strings in an array called headlines[]. Then, the headlines are run through a couple of while loops - I needed to make sure that the headlines didn't go over 39 characters long or else they'd dissapear off the end of the background image. So any headline equal to or over 35 characters gets truncated and 3 dots added to the end. Then, using code based on an image script created by majinsoftware the headlines are outputted onto the background graphic and the whole thing is bundled as a PNG. Click on more for the code and links to download the files. Could not read http://tcal.net/wp-rss2.php