coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: drnet.online on June 11, 2009, 05:46:22 PM

Title: [Solved]: Resize stopped working
Post by: drnet.online on June 11, 2009, 05:46:22 PM
Ok i am having 2 problems. 1: It wont open in a new window. and 2: and my image width won't work.

<?php
  
include_once "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,4);
  
$options = array('windowtarget' => '_blank',"imagewidth"=>"35");
?>
Title: Re: Resize stopped working
Post by: drnet.online on June 11, 2009, 05:46:52 PM
my Site is Trionetwork.Org.
Title: Re: Resize stopped working
Post by: Nibbler on June 11, 2009, 05:51:54 PM
That's the same problem. Your code should be


<?php
  
include_once "./cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
  
$options = array('windowtarget' => '_blank',"imagewidth"=>"35");
  
$objCpm->cpm_viewLastAddedMedia(1,4,$options);
?>

Title: Re: Resize stopped working
Post by: drnet.online on June 11, 2009, 07:09:44 PM
Thanks a bunch :)