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: not understanding the option array thing...  (Read 4213 times)

0 Members and 1 Guest are viewing this topic.

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
not understanding the option array thing...
« on: October 16, 2007, 05:02:56 am »

call me a n00b, but i'm not understanding how you would open the pictures in a new window using option array?

my code is this...
Code: [Select]
<?php
  
include "./cpg1413/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./cpg1413/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewRandomMedia(1,5);
  
$objCpm->cpm_close();
?>

how do i play with the option array to get it to open in a _blank window? i've read the docs, but dont understand how to do it.
« Last Edit: October 16, 2007, 08:13:48 am by GauGau »
Logged

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: not understanding the option array thing...
« Reply #1 on: October 16, 2007, 05:20:34 am »

tried this...still opened in same window...

Code: [Select]
<?php
  
include "./cpg1413/cpmfetch/cpmfetch.php";
  
$options = array( 'windowtarget' => '_blank' );
  
$objCpm = new cpm("./cpg1413/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewRandomMedia(1,5);
  
$objCpm->cpm_close();
?>

from my understanding of the docs...it should be like this?

(sorry about half-assed asking for help above, and in previous post...just readyour rant, lol)
Logged

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: not understanding the option array thing...
« Reply #2 on: October 16, 2007, 05:26:49 am »

Code: [Select]
<?php
  
include "./cpg1413/cpmfetch/cpmfetch.php";
  
$options = array( 'windowtarget' => '_blank' );
  
$objCpm = new cpm("./cpg1413/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewRandomMediaFrom("",1,5,$options);
  
$objCpm->cpm_close();
?>

solved...sorry for the wasted thread!  ;D
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.