Re: The relation with gnomefiles.org
- From: "Eugenia Loli-Queru" <eugenia osnews com>
- To: "marketing list" <marketing-list gnome org>
- Subject: Re: The relation with gnomefiles.org
- Date: Tue, 18 Jul 2006 19:35:57 -0700
Ok, the special RSS feed for Gnome.org is in place:
http://www.gnomefiles.org/files/gnomefiles2.xml
The difference with the main RSS feed is that this version does not list
non-Free apps, and it always mentions what license is used for each
application.
If you instead you would like to create something even simpler which uses a
text file instead of XML (this is the file used:
http://gnomefiles.org/files/gnomefiles2.txt ) and looks like the following:
http://www.osnews.com/ (scroll down and check the osnews sidebar how it
implements gnomefiles), then I include below the PHP source code you need to
parse that special text file and make it look like the one on the osnews
sidebar
If you need more information about each application, use the RSS feed. If
you need simplicity, use the Text file and sample source code I provide.
Your choice. Both versions don't show up non-free apps anyway.
Rgds,
Eugenia
<table width="130" cellpadding="1" cellspacing="0" border="1"
bordercolor="#999999">
<tr><td bgcolor="#eeeeee" width="130" align="center"><font face="Arial,
Helvetica" size="2"><b><A href="http://GnomeFiles.org">Gnome/GTK+
Software</a></b></font></td></tr>
<?php
$rownumber=1;
$buffer = file_get_contents("http://gnomefiles.org/files/gnomefiles2.txt");
$b = explode("%%",$buffer);
for($i=0;$i<count($b);$i++)
{
$line = explode("\n",$b[$i]);
if($line[1]) { $link[] = "<a
href='".$line[2]."'>".$line[1]."</a></font></td></tr>"; }
}
for($i=0;$i<15;$i++)
{
$rownumber++;
if ($rownumber %2) { echo "<tr><td bgcolor='#f3f3f3' width=\"130\">"; }
else { echo "<tr><td bgcolor='#ffffff' width=\"130\">"; }
echo "<font face=\"Verdana, Arial\" size=\"1\">- ". $link[$i];
}
echo "</table>";
?>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]