coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Mahumba on September 09, 2008, 02:52:42 AM

Title: Help with path.
Post by: Mahumba on September 09, 2008, 02:52:42 AM
Hello.

I have read through many messages here and can't quite fisnd the answer to my problem.

I have an htm index and was following this code img src="/cfimageget.php?category=7" (proper path of course, well as best as I see it.)http://photos.thunderbayfishing.com/??????

I have the latest versions of Coppermine and cpm. My problem is that my Coppermine Gallery (using auotmatic installer at powweb) is in a sub domain folder called photos.

Do I have to change the code in any other files?

Roger

Title: Re: Help with path.
Post by: Nibbler on September 09, 2008, 03:32:20 AM
Where is cfimageget.php?
Title: Re: Help with path.
Post by: Mahumba on September 09, 2008, 03:59:35 AM
It's in the cpmfetch folder in my photo directiry.

Roger

Title: Re: Help with path.
Post by: Joachim Müller on September 09, 2008, 07:20:36 AM
"Where" as in "what's the URL?".
That file is not here: http://photos.thunderbayfishing.com/cfimageget.php?category=7 (as that page produces a 404 not found).
Title: Re: Help with path.
Post by: Mahumba on September 09, 2008, 02:03:47 PM
http://photos.thunderbayfishing.com/cpmfetch/cfimageget.php?category=7

That's the url above.

I'm thinking that it's the category that's messing me up. When I look around I'm seing "cat12" or album1 stuff like that.

Roger

Title: Re: Help with path.
Post by: Mahumba on September 09, 2008, 02:05:56 PM
When I mean looking around I mean on my photo gallery. Basically what I want to to is pull the last uploaded image to place on my index page of my new website.

Roger

Title: Re: Help with path.
Post by: fangweile on September 10, 2008, 04:22:41 AM
Check the following code in cfimageget.php


// CHANGE THIS TO TRUE IF PEOPLE ARE ALLOWED QUERIES THROUGH HERE
$ALLOW_DIRECT_ACCESS = true;
$pathToConfigFile



If you want to display the last uploaded files in your index, then you may use this code instead (in php)


<?php
  
include "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$options = array(
   
'windowtarget' => '_blank',
   
'imagelink'     => 'normal');
  
$objCpm->cpm_viewLastAddedMedia(2,2$options);
  
$objCpm->cpm_close(); 
?>

Title: Re: Help with path.
Post by: Mahumba on September 14, 2008, 09:15:22 PM
Ok........

I'll just do it manually. Thanks for the help anyways.

Roger