Iframe link Src Iframe link Src
 

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

Iframe link Src

Started by blowfishdl, November 16, 2007, 07:32:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blowfishdl

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.

blowfishdl

In other words the Iframe opens the link in the Iframe itself, rather than the entire window.. Just to clarify.

blowfishdl

I may even have to modify the coppermine gallery links so that they specify to open in the current window?

lobosden

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();
?>

lobosden

notice the array.... winow parent? you can use blank too, it will open in a NEW window, or use new.

blowfishdl

excellent work homie.. mad props to the nigga with the ansuz

lobosden