forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Joe Belmaati on January 18, 2004, 01:53:51 am

Title: Prospect of making ssi.php "private album" complia
Post 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
Title: Prospect of making ssi.php "private album" complia
Post by: xarumanx on January 18, 2004, 12:11:18 pm
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.
Title: Prospect of making ssi.php "private album" complia
Post by: Joe Belmaati on January 18, 2004, 02:31:00 pm
Thank you very much!
How do I set it up with a parser, and where do I find one..?

Thanks again
Title: Prospect of making ssi.php "private album" complia
Post by: xarumanx on January 19, 2004, 07:02:19 pm
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.
Title: Prospect of making ssi.php "private album" complia
Post by: Joe Belmaati on January 19, 2004, 11:57:27 pm
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
Code: [Select]
<?php

define
&#40;'MAGPIE_DIR', '../'&#41;;
require_once&#40;MAGPIE_DIR.'rss_fetch.inc'&#41;;

$url $_GET['http&#58;//www.belmaati.com/gallery/rss.php'&#93;;

if &#40; $url &#41; &#123;
        
$rss fetch_rss&#40; $url &#41;;
        
        
echo "Channel&#58; " $rss->channel['title'&#93; . "<p>";
        
echo "<ul>";
        foreach &
#40;$rss->items as $item&#41; &#123;
                
$href $item['link'&#93;;
                
$title $item['title'&#93;;        
                
echo "<li><a href=$href>$title</a></li>";
        &
#125;
        
echo "</ul>";
&
#125;
?>



When I execute picfetcher.php I get the following error

Quote

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
Title: Prospect of making ssi.php "private album" complia
Post by: xarumanx on January 20, 2004, 06:40:07 pm
You made a little error with the URL part in your picfetcher.php

Instead of
Code: [Select]

$url = $_GET['http://www.belmaati.com/gallery/rss.php'];


write
Code: [Select]

$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
Code: [Select]

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...
Title: problems getting the thumbnails displayed ...
Post by: viajero on February 07, 2004, 05:07:35 pm
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

Quote
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: