forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: debragrant on November 01, 2008, 11:10:16 pm

Title: [Solved]: CPMFETCH in Wordpress sidebar
Post by: debragrant on November 01, 2008, 11:10:16 pm
Hi,

I am able to get images to show up on my sidebar by using cpmfetch but I am coming across a strange problem & I'm not sure if it's an issue for here or wordpress.

If I get an error in the code I don't get any images in my side bar but when I have the code correct or at least enough to allow images to show, I get the following error and have to deactivate the php widget to remove it

Title: Re: CPMFETCH in Wordpress sidebar
Post by: Nibbler on November 01, 2008, 11:32:58 pm
It means you put the wrong path to cpmfetch. If you provide more information we can help you determine the correct path.
Title: Re: CPMFETCH in Wordpress sidebar
Post by: debragrant on November 01, 2008, 11:41:17 pm
but images are showing from my gallery when I have them errors in the back end  ???

Code: [Select]
<?php
  
include "./gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(2,2);
  
$objCpm->cpm_close();
?>

do I need to use the reative path then?
Title: Re: CPMFETCH in Wordpress sidebar
Post by: Nibbler on November 01, 2008, 11:46:49 pm
Try using the absolute path.

Code: [Select]
<?php
  
include "/home/divahos/public_html/leannejones/gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("/home/divahos/public_html/leannejones/gallery/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(2,2);
  
$objCpm->cpm_close();
?>

Title: Re: CPMFETCH in Wordpress sidebar
Post by: debragrant on November 01, 2008, 11:57:57 pm
thanks that seems to have worked.

I went to edit to change relative to absolute but couldn't lol