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: how to open images in an other frame?  (Read 6399 times)

0 Members and 1 Guest are viewing this topic.

chef666

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
how to open images in an other frame?
« on: October 27, 2006, 02:09:29 pm »

hi
I am using cpmFetch an it works fine.
I want the random pictures to be opened in an other frame when I click on them.

till now I was using the BASE TARGET="Frame" function, but IE7 seems not to understad that and opens the pictures in the same frame where the random pictures are.

any hints what I have to change to give a target to the image link?

thank you for your help!
chef
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: how to open images in an other frame?
« Reply #1 on: October 27, 2006, 06:39:24 pm »

hi
I am using cpmFetch an it works fine.
I want the random pictures to be opened in an other frame when I click on them.

till now I was using the BASE TARGET="Frame" function, but IE7 seems not to understad that and opens the pictures in the same frame where the random pictures are.

any hints what I have to change to give a target to the image link?

thank you for your help!
chef

You are going to have to include the target attribute on all the links generated by cpmFetch in that case.  I don't really support IE (One nice part of giving away free software is that you don't have to really care if it works on stuff you don't care about) so I can't speak to the tendency of some companies to change how things work all the sudden.   

Anyway, all rants aside - you should be able to do it easily in cpmFetch by using the optionsArray

See this page, I think windowtarget will do what you need it to do... Have not tried it, but thats what I have users for right :D

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s04.html


Post back if it works or not


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

chef666

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: how to open images in an other frame?
« Reply #2 on: October 28, 2006, 03:34:44 pm »

hi vuud
thank you for your replay!

sorry I am new to php and not sure where i have to change this windowtarget option.
do I have do edit the cpmfetch.php file?

what would I have to write, if my frame is called "main"?
and where would I have to write that in?

thx an sorry again
chef

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: how to open images in an other frame?
« Reply #3 on: October 28, 2006, 04:54:58 pm »

hi vuud
thank you for your replay!

sorry I am new to php and not sure where i have to change this windowtarget option.
do I have do edit the cpmfetch.php file?

what would I have to write, if my frame is called "main"?
and where would I have to write that in?

thx an sorry again
chef



Start back a few pages and read from there
http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06.html

you would do target = main.

Otherwise you really need to learn some HTML be really good with web pages and such.


Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

chef666

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: how to open images in an other frame?
« Reply #4 on: October 29, 2006, 12:58:05 pm »

hi vuud

sorry its me again.
I am completely lost.

I understand, that I have to use the optionsarry to give the target to the script,
but I can't see where I would have to do that?

sorry, but I am normaly not so bad with things like this...

thx again
chef
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: how to open images in an other frame?
« Reply #5 on: October 29, 2006, 03:13:34 pm »

hi vuud

sorry its me again.
I am completely lost.

I understand, that I have to use the optionsarry to give the target to the script,
but I can't see where I would have to do that?

sorry, but I am normaly not so bad with things like this...

thx again
chef


I think the two links I sent made it about as clear as I could.  Well, I wrote the doc's so thats about it.

If you tried something, post it and we can take if from there. 





Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 16 queries.