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: Iframe link Src  (Read 5739 times)

0 Members and 1 Guest are viewing this topic.

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Iframe link Src
« 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.
« Last Edit: November 16, 2007, 10:49:31 pm by Nibbler »
Logged

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Re: Iframe link Src
« Reply #1 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.
Logged

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Re: Iframe link Src
« Reply #2 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?
Logged

lobosden

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Re: Iframe link Src
« Reply #3 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();
?>
Logged

lobosden

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Re: Iframe link Src
« Reply #4 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.
Logged

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Re: Iframe link Src
« Reply #5 on: November 16, 2007, 10:44:38 pm »

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

lobosden

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 75
Re: Iframe link Src
« Reply #6 on: November 16, 2007, 10:45:01 pm »

no problem
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.