Thank you for your help.
I downloaded the files and tryed to install them.
First of all i failed to setup the script and im not sure if this is what im searching for.
There are lots of errors when im trying to display rss.php or rss_simple.php
Can u please discribe what the script will be like when setup correctly.
i found the the following line
$album = 'Zander'; // pick a group or single album by #
$thumb_count = 1; // how many thumbnails to display
$album_name = "Zander";
What if i want to show another album with another fish on another site....
Im also not sure if i have filled in all required fields or if they are correct.
rss.php
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani //
// http://tariquesani.net/ //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
// Just put into the same directory as your coppermine installation //
// ------------------------------------------------------------------------ //
define('IN_COPPERMINE', true);
define('INDEX_PHP', true);
require('include/init.inc.php');
//Change these variables to reflect your choices
$album = 'Zander'; // pick a group or single album by #
$thumb_count = 1; // how many thumbnails to display
$album_name = "Zander";
$lower_limit = 0;
$thumb_per_page = 1;
$rss_author = "skybax";
//Changes these to point to your site
$site_url = "http://arturo.funpic.de";
$link_url = $site_url . "cgi-bin/fotos/displayimage.php?pos=-";
$image_url = $site_url . "cgi-bin/fotos/albums/";
get_private_album_set();
$data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page);
header ("content-type: text/xml");
$rssHeader = <<<EOT
<?xml version="1.0"?>
<rdf:RDF
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
>
<channel>
<title>$CONFIG[gallery_name]</title>
<link>$site_url</link>
<description>$CONFIG[gallery_description] - $album_name</description>
<dc:creator>$rss_author</dc:creator>
<dc:language>en-us</dc:language>
</channel>
EOT;
echo $rssHeader;
foreach($data AS $picture) {
$thumb_url = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$picture[filename]";
$description = '<a href="' . $link_url . $picture['pid'] . '"><img src="' . $thumb_url . '" border="1" vspace="2" hspace="2" align="left" ></a>'.$picture[caption].$picture[caption_text];
$description = htmlentities($description);
$item = '<item rdf:about="' . $link_url . $picture['pid'] . '">
<dc:date>' . date('Y-m-d H:i:s', time()) . '</dc:date>
<title>'.$picture[title].'</title>
<link>' . $link_url . $picture[pid] . '</link>
<description>'.$description.'</description>
</item>';
echo $item;
}
$rssFooter = <<<EOT
</rdf:RDF>
EOT;
echo $rssFooter;
?>
rss_simple.php
<?php
//reworked complete code overhaul to allow for simplier opperation 8/6/2004
define('MAGPIE_DIR', '');
require_once(MAGPIE_DIR.'rss_fetch.inc');
$url = "http://arturo.funpic.de/cgi-bin/fotos/rss.php";
if ( $url ) {
$rss = fetch_rss( $url );
echo "Channel: " . $rss->channel['title'] . "<p>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$description = $item['description'];
echo "<a href=$href>$title</a><br />$description";
}
}
?>
Im thankig you for your support