Help with path. Help with path.
 

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]

Main Menu

Help with path.

Started by Mahumba, September 09, 2008, 02:52:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mahumba

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


Nibbler


Mahumba

It's in the cpmfetch folder in my photo directiry.

Roger


Joachim Müller

"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).

Mahumba

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


Mahumba

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


fangweile

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(); 
?>

[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

Mahumba

Ok........

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

Roger