It creates an RSS Feed * with the latest files added to your phpATM page.
* Feeds are specially formatted documents which summarize the content of web sites. For example, a feed might summarize the latest news headlines from a news site or the latest posts on a blog. You can view the content of feeds in Firefox, create Live Bookmarks for them, or add them to a feed reader on your computer or on the Web.
Unpack the rss.php to a temporary folder.
Open the rss.php with your favorite PHP editor (such as Notepad++) and change the variables from the part marked as "config part of the script" (line 28 - line 40), to fit your needs.
$site_title: the title of your site (default
$page_title which is the title as set in the conf.php)
$site_link: link to your site (default
$installurl which links to your phpATM page)
$site_description: add there a description of your phpATM page
$max_last_files_rss: this is the maximal number of files listed (default
$hide_these_dirs: hidden directories (regular expression) which latest files won't be listed (default
Upload the rss.php to your phpATM folder. If necessary change the extension.
Open the include/functions.php with your favorite PHP editor and search for
function page_header($title) and find there the following line:
echo "<link rel=\"stylesheet\" href=\"styles.css\" type=\"text/css\">";
add under it the following code:
echo "<link rel=\"alternate\" href=\"rss.php\" type=\"application/rss+xml\" title=\"RSS 2.0\">";
You could add a link to the rss.php, a good place would be in the row where the
[Last uploads] - [Top downloads] links are placed. To add it there open the index.php and search for
function list_dir($directory) find there the following lines:
<td align=\"center\" bgColor=\"$tablecolor\">
<font size=\"2\" face=\"$font\" color=\"$normalfontcolor\">
replace these lines with the following code:
<td align=\"center\" bgColor=\"$tablecolor\"><font size=\"2\" face=\"$font\" color=\"$normalfontcolor\">
[<a href=\"showrecent.$phpExt?".SID."\">$mess</a>] - <a href=\"RSS.$phpExt?".SID."\" title=\"Click here to subscribe to my feed.\"><img src=\"images/RSS.png\" border=\"0\" width=\"16\" height=\"16\" alt=\"RSS feed\" align=\"top\"></a> - [<a href=\"showtophits.$phpExt?".SID."\">$mess</a>]
Thanx to aliensat for the original version, which this script is based on.
Comments? Problems? Bugs? Or just some nice words? Contact me in the phpATM Forum or send me an email.
rss_php_-_phpATM_130_and_some_mods.zip (7kb - 11.06.2008)