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: photos not showing  (Read 4852 times)

0 Members and 1 Guest are viewing this topic.

freeedy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
photos not showing
« on: April 25, 2007, 07:43:00 pm »

Hi I am trying this mod, but I cant get the photo to show. I add the code in my index.html, the first site in my webpage. Coppermine is in the folder gallery, and the cpmfetch is within the gallery folder. SO I used the code that appears after you install the mod (when it redirects you to screen.php), I use this code without any change since it uses the same directory structure that I have.

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

I put this code in a table in my index.html

What I am doing wrong??? :-\
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: photos not showing
« Reply #1 on: April 25, 2007, 08:00:26 pm »

Hi I am trying this mod, but I cant get the photo to show. I add the code in my index.html, the first site in my webpage. Coppermine is in the folder gallery, and the cpmfetch is within the gallery folder. SO I used the code that appears after you install the mod (when it redirects you to screen.php), I use this code without any change since it uses the same directory structure that I have.

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewLastAddedMedia(1,4);
  $objCpm->cpm_close();
?>

I put this code in a table in my index.html

What I am doing wrong??? :-\

php code only runs in php files

You mind as well write it on a piece of paper...

You need a server that supports php and you need it in a php file (like index.php)



Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

freeedy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: photos not showing
« Reply #2 on: April 26, 2007, 08:10:58 pm »

I do have a server, I am not that stupid. I didnt knew it just works in php, maybe thats the reason it doesnt work, anyway thanks for your help.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: photos not showing
« Reply #3 on: April 27, 2007, 03:24:47 am »

I do have a server, I am not that stupid. I didnt knew it just works in php, maybe thats the reason it doesnt work, anyway thanks for your help.

I know you knew you had a server, I said a "server that supports php"... since you were putting <?php ?> blocks into an HTML, its not a far leap to not realizing you need one of those.

Paste it into a index.php and try calling that just to see if it works.

Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: photos not showing
« Reply #4 on: May 17, 2007, 05:17:55 pm »

I was having the same problem, as I did not see the part about only working on PHP. 

Although my server does support php, my test file was named test.html, which I switched to test.php, and all works fine..Did you try just changing file names?

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: photos not showing
« Reply #5 on: May 29, 2007, 07:34:29 pm »

I was having the same problem, as I did not see the part about only working on PHP. 

Although my server does support php, my test file was named test.html, which I switched to test.php, and all works fine..Did you try just changing file names?



If that is the case, then your server does support PHP.  Maybe they just don't want to tell you :)
Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.