coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: elwave on September 05, 2010, 12:12:58 AM

Title: cpmfetch seems to be pulling the wrong data from the gallery/database
Post by: elwave on September 05, 2010, 12:12:58 AM
I'm really not too sure what is wrong here, or what "link in the chain" is broken.

Here is my current latestimages.php code (that pulls from cpmfetch):

<?php
  
include_once "gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(18$options);
  
$objCpm->cpm_close(); 
?>


I tried using the recommended code on the cpmfetch site but it kept complaining that it was expecting ) instead of ?

I don't know why!

And erm, the result is just CF-Errors and it fails to fetch the images, the source code of the page simply reading:


<a href="http://www.mysite.net/gallery/thumbnails.php?album=21">
<img src="http://www.mysite.net/gallery/"/>


for each image, with different album numbers.

Help ._.

I am running Coppermine 1.5.8.

Cheers guys :)

Elwave!
Title: Re: cpmfetch seems to be pulling the wrong data from the gallery/database
Post by: pavemen on September 05, 2010, 06:00:30 AM
cpmFetch is not compatible with Coppermine 1.5.x.  If you had it working on 1.4 and upgraded to 1.5 it works partially as you found out. If you try to run the cpmFetch installer, it breaks it completely.
Title: Re: cpmfetch seems to be pulling the wrong data from the gallery/database
Post by: pavemen on September 05, 2010, 07:09:54 AM
i do stand corrected, at least for the few parts i was able to fix and continue to use the random and view last added options. In the cpmfetch_config.php file, enable (uncomment) the override for the $config_overrides['cfSQLPictureSelect'] variable and simply remove the ", p.owner_name AS pOwner_name" bit.

I am now using cpmFetch 2.1.1 with CPG 1.5. bridged to MyBB 1.4, with a cpmFetch plugin for MyBB and pulling a Random image from a specific album as well as pulling the last added images from any album and displaying them in the portal/home page
Title: Re: cpmfetch seems to be pulling the wrong data from the gallery/database
Post by: elwave on September 07, 2010, 07:35:59 AM
Thanks for the help man, but still no joy ._.

I just think it's something wrong with this server. No matter what I do (it's not my server, it's just a hosting package) certain things that worked fine on a different server just do NOT work :(

This is very sucky ._.
Title: Re: cpmfetch seems to be pulling the wrong data from the gallery/database
Post by: Alcor on October 15, 2010, 10:05:17 AM
Quote from: pavemen on September 05, 2010, 07:09:54 AM
i do stand corrected, at least for the few parts i was able to fix and continue to use the random and view last added options. In the cpmfetch_config.php file, enable (uncomment) the override for the $config_overrides['cfSQLPictureSelect'] variable and simply remove the ", p.owner_name AS pOwner_name" bit.

This worked for me with cpmfetch 2.0 and CPG 1.5.8