News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

[Solved]: Doesn't Open In new window?

Started by Emilyy, July 28, 2008, 09:49:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Emilyy

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?

Nibbler

Should be


$objCpm->cpm_viewLastAddedMedia(1,2, $options);

Emilyy

Quote from: Nibbler on July 28, 2008, 10:06:40 PM
Should be


$objCpm->cpm_viewLastAddedMedia(1,2, $options);

oh okay. it works now. thanks again!