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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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!