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: in a iframe integrated cpmfetch opens no new window. need help  (Read 6074 times)

0 Members and 1 Guest are viewing this topic.

rlo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
in a iframe integrated cpmfetch opens no new window. need help
« on: January 12, 2008, 11:47:03 pm »

Hi,

i intergated teh cpmFetch in an iFrame. I see the picture i will but i have a problem.

Problem 1:
Wenn i klick on the picture it opens the coppermine gallery in the iframe.

Question 1:
i will open it on the top of the window. where must i change the code to  open the gallery in top of my opened window?


Problem2:
There ist a border around the Image.

Question:
where ist this border defined? How caqn i define a another color to this  border take them away?


I hope you can help me.

Greetings

RLO
« Last Edit: January 13, 2008, 02:29:28 pm by Joachim Müller »
Logged

rlo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: in a iframe integrated cpmfetch opens no new window. need help
« Reply #1 on: January 13, 2008, 12:49:01 am »

the problems are solved. i found something in the forum.

thanks rlo
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: in a iframe integrated cpmfetch opens no new window. need help
« Reply #2 on: January 13, 2008, 12:59:58 am »

What is "SOLVED" for exemple for all other Users who're find the same issue ?
Thanx.
Logged

ib2loud

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 77
  • I <3 CPG!
    • OKShowPics.com
Re: in a iframe integrated cpmfetch opens no new window. need help
« Reply #3 on: February 23, 2008, 04:20:37 am »

it may be messy as I am no coder, but this is what I did and it worked perfectly:

$options = array('windowtarget' => '_blank');
  $objCpm->cpm_viewRandomMediaFrom("cat=0",1,4, $options);

it will open the actual gallery in a new window. you can put a comma after the ' after blank and add 'imagelink => 'large' and it will open just the large image in a pop up

again, I am no coder but this is what I found to work
Logged

ib2loud

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 77
  • I <3 CPG!
    • OKShowPics.com
Re: in a iframe integrated cpmfetch opens no new window. need help
« Reply #4 on: February 23, 2008, 04:21:19 am »

sorry i forgot the ' after imagelink also, it should be 'imagelink'
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.