Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: CPMFETCH in Wordpress sidebar  (Read 6036 times)

0 Members and 1 Guest are viewing this topic.

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
[Solved]: CPMFETCH in Wordpress sidebar
« 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

« Last Edit: November 02, 2008, 12:01:15 am by Nibbler »
Logged

Nibbler

  • Guest
Re: CPMFETCH in Wordpress sidebar
« Reply #1 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.
Logged

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: CPMFETCH in Wordpress sidebar
« Reply #2 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?
Logged

Nibbler

  • Guest
Re: CPMFETCH in Wordpress sidebar
« Reply #3 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();
?>

Logged

debragrant

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 127
Re: CPMFETCH in Wordpress sidebar
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.