forum.coppermine-gallery.net
No Support => Feature requests => Topic started by: Joe Belmaati on January 18, 2004, 01:53:51 am
-
Just a gentle request to see if anyone is working on solving the private album issues with ssi.php, so that no images from private albums will find their way onto publicly available pages.
Thank you very much in advance!
Best,
Joe Belmaati, Copenhagen
-
Why don't you try the rss mod posted in the mod section. It does respect the private albums if i recall correctly and you can also display everything you want with it's help and a decent rdf parser.
-
Thank you very much!
How do I set it up with a parser, and where do I find one..?
Thanks again
-
A pretty good RDS Client is the magpieRSS Parser. Download it here (http://magpierss.sourceforge.net) and follow the instructions. Basically you'll have to create a php file which you include on your mainpage. And one parameter for the include page is the rss file that the rss mod gereates.
-
Thank you very much!
I have installed the 4 required rss files to the same gallery as Coppermine (/gallery/) as per the instructions. Then I have used the magpie_simple.php as my php-file, but renamed it to picfetcher.php
Here is the code
<?php
define('MAGPIE_DIR', '../');
require_once(MAGPIE_DIR.'rss_fetch.inc');
$url = $_GET['http://www.belmaati.com/gallery/rss.php'];
if ( $url ) {
$rss = fetch_rss( $url );
echo "Channel: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";
}
?>
When I execute picfetcher.php I get the following error
Warning: Unable to access ../rss_fetch.inc in /hotel/belmaati/WWW/gallery/picfetcher.php on line 4
Fatal error: Failed opening required '../rss_fetch.inc' (include_path='.:/usr/local/lib/php') in /hotel/belmaati/WWW/gallery/picfetcher.php on line 4
It looks to me like I am not calling the directory correctly...but I haven't changed anything in the magpie_simple.php file, now named picfetcher.php, and the 4 magpie rss files are in the same directory.
Can you give me some kind of idea what I am doing wrong....?
Thank you very much in advance, I really appreciate it!!
Best,
Joe Belmaati
Copenhagen Denmark
-
You made a little error with the URL part in your picfetcher.php
Instead of
$url = $_GET['http://www.belmaati.com/gallery/rss.php'];
write
$url = "http://www.belmaati.com/gallery/rss.php";
to display the contents from the gallery RDF.
The thing with $_GET is only needed if you want to use one picfetch for many different galleries, for example
if($_GET['gallery'] == "maingallery") {
$url ="http://www.belmaati.com/gallery/rss.php";
} elseif {$_GET['gallery'] == "secondgallery") {
$url = "http://www.belmaati.com/gallery2/rss.php";
}
and so on...
-
Hi Xarumanx,
greetings from germany ...
until now it was never necessary to contact you guys, i could found everything by searching through the forum, but you wrote
A pretty good RDS Client is the magpieRSS Parser. Download it here and follow the instructions. Basically you'll have to create a php file which you include on your mainpage. And one parameter for the include page is the rss file that the rss mod gereates.
I came to the same point as Joe Belmaati, used the same example from "magpie" to test it and it works,
in this file I understand what is it doing and getting written to the browser
but I donīt wont to use these i would like to see the thumbnails with the description as it is coded in the rss file
but now I got confused - And one parameter for the include page is the rss file that the rss mod gereates" - what do you mean with that ? Maybe I overlooked something or I have to rewrite that samplefile to my own use, but I think this is not the point, any suggestions ?
here my linkto the example for the magpie example (http://www.der-reisende.de/cp_gallerie/pic_anzeige.php),
but how to include it correctly ...
thanx :roll: