Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Prospect of making ssi.php "private album" complia  (Read 8516 times)

0 Members and 1 Guest are viewing this topic.

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
Prospect of making ssi.php "private album" complia
« 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
Logged

xarumanx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
    • http://gallery.webtips.at
Prospect of making ssi.php "private album" complia
« Reply #1 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.
Logged

<?php echo signature(); ?>

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
Prospect of making ssi.php "private album" complia
« Reply #2 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
Logged

xarumanx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
    • http://gallery.webtips.at
Prospect of making ssi.php "private album" complia
« Reply #3 on: January 19, 2004, 07:02:19 pm »

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.
Logged

<?php echo signature(); ?>

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
Prospect of making ssi.php "private album" complia
« Reply #4 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
Logged

xarumanx

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 61
    • http://gallery.webtips.at
Prospect of making ssi.php "private album" complia
« Reply #5 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...
Logged

<?php echo signature(); ?>

viajero

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • Webmaster and Traveller
    • Der Reisende unterwegs
problems getting the thumbnails displayed ...
« Reply #6 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,
but how to include it correctly ...

thanx  :roll:
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.