forum.coppermine-gallery.net
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
-
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
-
Where is cfimageget.php?
-
It's in the cpmfetch folder in my photo directiry.
Roger
-
"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).
-
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
-
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
-
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();
?>
-
Ok........
I'll just do it manually. Thanks for the help anyways.
Roger