forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Emilyy on July 28, 2008, 09:49:50 pm
-
i looked on a page and it says to put this code to make it open in a new window:
$options = array('windowtarget' => '_blank');
I put it into my code like this
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array('windowtarget' => '_blank');
$objCpm->cpm_viewLastAddedMedia(1,2);
$objCpm->cpm_close();
?>
And it doesn't open in a new window? It just opens in the iframe?
-
Should be
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
-
Should be
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
oh okay. it works now. thanks again!