Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2]   Go Down

Author Topic: I cannot get my images displayed!  (Read 15010 times)

0 Members and 1 Guest are viewing this topic.

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: I cannot get my images displayed!
« Reply #20 on: October 27, 2006, 06:44:03 pm »

@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

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

surfingcarpet

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: I cannot get my images displayed!
« Reply #21 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!

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: I cannot get my images displayed!
« Reply #22 on: October 30, 2006, 05:58:27 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.




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 [2]   Go Up
 

Page created in 0.023 seconds with 16 queries.