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: Help with path.  (Read 6451 times)

0 Members and 1 Guest are viewing this topic.

Mahumba

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Help with path.
« 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

« Last Edit: September 09, 2008, 07:18:52 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Help with path.
« Reply #1 on: September 09, 2008, 03:32:20 am »

Where is cfimageget.php?
Logged

Mahumba

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help with path.
« Reply #2 on: September 09, 2008, 03:59:35 am »

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

Roger

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Help with path.
« Reply #3 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).
Logged

Mahumba

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help with path.
« Reply #4 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

Logged

Mahumba

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help with path.
« Reply #5 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

Logged

fangweile

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 103
  • Saranghaeyo ^_^
    • All Koreans - Home of Korean Actors and Actresses
Re: Help with path.
« Reply #6 on: September 10, 2008, 04:22:41 am »

Check the following code in cfimageget.php

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

Code: [Select]
<?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(); 
?>

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

Mahumba

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Help with path.
« Reply #7 on: September 14, 2008, 09:15:22 pm »

Ok........

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

Roger

Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 19 queries.