coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: blowfishdl on November 16, 2007, 07:32:32 PM

Title: Iframe link Src
Post by: blowfishdl on November 16, 2007, 07:32:32 PM
Hi all,

I can't figure out how to make my iframe of coppermine images (using cpmfetch) open in document.window instead of the document.iframe that is default to the browser.

Thanks in advance.
Title: Re: Iframe link Src
Post by: blowfishdl on November 16, 2007, 08:53:49 PM
In other words the Iframe opens the link in the Iframe itself, rather than the entire window.. Just to clarify.
Title: Re: Iframe link Src
Post by: blowfishdl on November 16, 2007, 09:50:19 PM
I may even have to modify the coppermine gallery links so that they specify to open in the current window?
Title: Re: Iframe link Src
Post by: lobosden on November 16, 2007, 10:27:04 PM
it's not in the iframe code...
it is in the php script for your cpfetch

I used this

<?php
  include "./whatever/whatever/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./forwhatever/whatever/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMedia(1,4,array("windowtarget" => "_parent"));
  $objCpm->cpm_close();
?>
Title: Re: Iframe link Src
Post by: lobosden on November 16, 2007, 10:28:07 PM
notice the array.... winow parent? you can use blank too, it will open in a NEW window, or use new.
Title: Re: Iframe link Src
Post by: blowfishdl on November 16, 2007, 10:44:38 PM
excellent work homie.. mad props to the nigga with the ansuz
Title: Re: Iframe link Src
Post by: lobosden on November 16, 2007, 10:45:01 PM
no problem