I cannot get my images displayed! - Page 2 I cannot get my images displayed! - Page 2
 

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

I cannot get my images displayed!

Started by surfingcarpet, October 12, 2006, 06:46:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vuud

Quote from: GauGau on October 27, 2006, 07:15:12 AM
@Vuud: I admire your patience ;)

Heh, it comes and goes. 

I tend to be willing to match efforts with people... This guy obviously put a lot of thought and effort into working it out (see the length of posts) so I don't mind.  Its the ones that just sit there saying "do it for me" that I don't go that far for.

So mileage varies :)  But thanks for the compliment

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

surfingcarpet

I MADE IT!!!! IT WORKS!!!!!!!!!!!! ;D ;D ;D ;D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :) :) :) ;) :D :D ;D ;D!!!!!!!
I TOTALLY MADE IT YEEEAAAHHHH!!!!
Thanks guys!!!!!!!! your help SOLVED my problem!

As you said, it was precisely the location of my cpmfetch folder the problem.
The cpmfetch folder is inside the photogal folder where the coppermine was installed.
The confusion was that I had to be careful where to put the commands (different path in the php function and in the shtml).

for the php function, this was my code:

<html>
<head>
  <title></title>
</head>
<body>
<?php
include "./cpmfetch.php";
$objCpm = new cpm('/photogal');
$objCpm->cpm_viewLastAddedMedia(4,2);
$objCpm->cpm_close();
?>
</body>
</html>

Logic, because it the file was inside the cpmfetch directory, no need to put ./photogal/cpmfetch/cpmfetch.php
And that worked perfectly:

http://www.surfingcarpet.com/photogal/cpmfetch/randomimages1.php

Once that worked, I had to tell the shtml code to execute this php and of course to be careful where is that file so I added this sentence where I wanted the pictures to be added:

<!--#include virtual="./photogal/cpmfetch/randomimages1.php" -->

AND THAT WORKED!
Thanks all of you guys!
I hope this problem will help troubleshoot other users. In that purpose, I named all the files differently and will keep the error files available on my server.

Good luck everyone and thanks again!
www.surfingcarpet.com

vuud

Quote from: surfingcarpet on October 30, 2006, 03:45:07 AM
I MADE IT!!!! IT WORKS!!!!!!!!!!!! ;D ;D ;D ;D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :) :) :) ;) :D :D ;D ;D!!!!!!!
I TOTALLY MADE IT YEEEAAAHHHH!!!!
Thanks guys!!!!!!!! your help SOLVED my problem!

The fact that you understand why it works and can now apply that makes all the help worthwhile - it makes my whole evening.

Good luck, CPG and PHP are your oyster now... lots you can do.




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