Since Danny made his piece of pointless GD, I set out to make something with GD that had a purpose and was at least functional and useful to people
As soon as I thought about it the idea of an RSS image to my head - how about an image that displays the latest title from an RSS feed?
So, off I set on the work. I dug out my MagpieRSS and set myself to work - I eventually, after around half an hour got a script that retrieved data from an RSS feed, cut it down to only the latest article and display it.
Then, I had to use GD to intergrate it into an image. That took longer - for a while I was unable to test out my work as I didn't have a host that supported GD2, but eventually I got it working.
I showed Tom (Organised) it, and he said that I had ought to add the title of the feed to the image so it made more sense, so I didEt voila, the finished product!
I wanted to be able to host it myself, and allow people to select a feed via ?rss=, but I found that HxF does not allow this and it just displays a link, so I decided to make it open source. The complete script is only 120kb, including template, PHP script and MagpieRSS.
Sample: http://www.tim-rogers.co.uk/rssimage/signature.php (some may have problems with this, if so, wait for a while until DNS resolves)
Download:
http://www.vitalhosting.co.uk/~tim/rss.zip
Feel free to edit anything, as long as you publish anything you make
The script is ONLY COMPATIBLE with servers that run GD2 on their PHP.
(This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.)








Reply With Quote




