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]: Doesn't Open In new window?  (Read 4428 times)

0 Members and 1 Guest are viewing this topic.

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
[Solved]: Doesn't Open In new window?
« 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:
Code: [Select]
$options = array('windowtarget' => '_blank');
I put it into my code like this
Code: [Select]
<?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?
« Last Edit: July 28, 2008, 10:40:11 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Doesn't Open In new window?
« Reply #1 on: July 28, 2008, 10:06:40 pm »

Should be

Code: [Select]
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
Logged

Emilyy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Doesn't Open In new window?
« Reply #2 on: July 28, 2008, 10:35:12 pm »

Should be

Code: [Select]
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
oh okay. it works now. thanks again!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.