RDF Files
Linux.ie now uses RDF files to allow people to catch up on all the news in their Evolution Summary pages.
There are three RDF files that can be downloaded.
Other file formats.
/ilugnews.txt is an equivalent of Slashdot's
ultramode.txt.
It's used so that the cork.linux.ie website
can include the same news items that you see in the main page here, essentially
providing ILUG news for webportals.
If you want perl code that utilise these files then download
news.txt, renaming
it to .pl or .cgi depending on how you want to use it.
This is based on sdweb-0.1 by
Robert Jones.
If you want something a little bit more exotic and would like to hack some
code then you would be well advised to have a look at the
code page on Slashdot as ilugnews.txt is very, very similar in form to Slashdot's ultramode.txt file.
You can now add ILUG News to your non CGI, non SSI enabled website, add the
following code:
<SCRIPT LANGUAGE="javascript" SOURCE="http://www.linux.ie/news.cgi?d=js">
If you want to limit the number of entries included in your website use the
'e' argument: e.g. /news.cgi?d=js&e=1
You can also add Cork LUG News to your website with JavaScript, add the
following to your HTML code:
<SCRIPT LANGUAGE="JavaScript" SOURCE="http://cork.linux.ie/news.cgi">
</SCRIPT>
You can add a list of the last 10 messages posted to either the main ILUG mailing list, or to the Cork mailing list with the following line of code (changing 'ilug' to 'cork' if need be):
<SCRIPT LANGUAGE="JavaScript" SOURCE="http://www.linux.ie/last10.cgi?list=ilug">
</SCRIPT>
If you want to see these in action then please look at the
example page,
as coded by Proinnsias Breathnach. Because Netscape includes the output of the
javascript when you 'view source', you will need to look at
this page for it's source code.
Alternatively, if you use Mozilla, you can
add a ILUG News
sidebar. There is also a sidebar for the most recent postings on blogs.linux.ie, get it
here.
|