[Solved]: cpmFetch works fine BUT some images won't show [Solved]: cpmFetch works fine BUT some images won't show
 

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

Main Menu

[Solved]: cpmFetch works fine BUT some images won't show

Started by mrshs, September 24, 2009, 08:48:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrshs

Hi everybody!

I searched the forums for help, but couldn't find a thread which would help me solve my problem.

To say it as simple as possible:

I use Coppermine Photo Gallery 1.4.25 (stable).
I installed the latest stable version of cpmfetch (copperminefetch-2.0.0 ).
I  installed it, added the php to my site, and it works. So far so good.

The problem I have is, that some images won't be shown as thumbnails. You only see the images title in between all the other thumbnails. Since this happens with more than one pic, it really looks awful. And it happens to the same images again and again, though all images in the gallery are of the same formate, which is jpg.

That's the code I use:

Quote<?php
                 include_once "./galleries/cpmfetch/cpmfetch.php";
                 $objCpm = new cpm("./galleries/cpmfetch/cpmfetch_config.php");
                $options = array("imagesize" => "int", "imagelink" => "int", "imageheight" => "100", "imageweidth" => "100");
                 $objCpm->cpm_viewRandomMediaFrom("cat=7",1,4, $options);
                 $objCpm->cpm_close();
               ?>

My questions now are: Anyone has an idea where the problem is? I assume it can't be the coding, since the other images work fine?  :S



Joe Carver

You need to post a link to your Coppermine when asking for support. (see Posting rules at the top of your page when you post)

It looks like you might be trying to show intermediate images instead of thumbs.

$options = array("imagesize" => "int", "imagelink" => "int", "imageheight" => "100", "imageweidth" => "100");

You also have a typo error in the Options array.
Remove imagesize - you will get thumbs

mrshs

Hello thanks for your reply!

I saw the rule, but I wasn't sure, because I thought I only have to add the link to the gallery if something is wrong with the gallery itself. I'll try to delete that part and check again if it works.

mrshs

Ok, I deleted that part, and it works fine now!!! Thanks so much. I am totally new to this, and I simply copied that one line from some website... would have never found out myself!