coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: gitanoBlue on September 19, 2007, 12:01:19 AM

Title: CPMFetch: title shows but image error
Post by: gitanoBlue on September 19, 2007, 12:01:19 AM
Hi,

A couple of successful years of solving with the great info here.  An up-front thanks for all the advice.

BUT, now I am stumped:

I installed CPMFetch and all went well.  (A great bit of writing there, thanks.) 

Everything went fine until I moved some of the images to a different category in the CPM gallery.  (I updated the category # that I wanted in the CPMFetch php code embedded in the page.)  I had other CPM issues and changed the password to the database and updated the cpmfetch_config.php file..and then:

Then some of the CPM gallery thumbs and int-size images weren't showing on the coppermine gallery.  So I hunted for the error there.  Updated the images and all was fixed on the gallery.  Then I saw the new update for Coppermine so I updated to the new September release.  All fine with the update. 

I deleted and clean reinstalled CPMFetch.  Launched the install.php file and again it loads the image titles, ALT text and border of image but NO image. 

here is the code on the test page:

<?php
  include_once "./cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  $options = array( 'subtitle' => '{{pTitle}} <br> {{pCaption}}' , 'alttag' => 'click for another painting' , 'imagesize' => 'int', 'subtitlelink' => 'http://www.christophercart.com/c06px/art.php', 'linktemplate' => 'http://www.christophercart.com/c06px/art.php' ,"tablestyle" => "cssfortables" );
  $objCpm->cpm_viewRandomMedia(1, 1, $options);
  $objCpm->cpm_viewRandomMediaFrom("cat=3:,",1, 0, $options);
  $objCpm->cpm_close();
?>

Here is the test page on my site:

http://www.christophercart.com/c06px/art.php (http://www.christophercart.com/c06px/art.php)

I enjoy solving these things myself (with the words of wisdom here, of course) by just poking and learning, but well, I am stumped.  What am I missing?  If you can point me in the right direction I would be very grateful.  Thank you. 

CPMFetch is great, BTW.


Title: Re: CPMFetch: title shows but image error
Post by: Nibbler on September 19, 2007, 12:08:50 AM
Your site url in Coppermine's config is set to our site - not yours. :)
Title: Re: CPMFetch: title shows but image error
Post by: gitanoBlue on September 19, 2007, 01:05:29 AM
Quote from: Nibbler on September 19, 2007, 12:08:50 AM
Your site url in Coppermine's config is set to our site - not yours. :)

Oh, thanks, I forgot that after updating to the new Coppermine.  My new theme is only partly done as well.

The CPMFetch image problem above predates that glitch.  (I had the URL fine earlier this afternoon when the CPMFetch problem showed up...or should I say my problem...I am sure Fetch is fine but I did something off.)

Thanks, though.
Title: Re: CPMFetch: title shows but image error
Post by: gitanoBlue on September 19, 2007, 02:05:42 AM
Ah, smart man.  Thanks Nibbler.  I now see what you meant.  I ran the install again and presto, all is fine.  Thanks.

That was a dumb mistake.