how to open images in an other frame? how to open images in an other frame?
 

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]

Main Menu

how to open images in an other frame?

Started by chef666, October 27, 2006, 02:09:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chef666

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

vuud

Quote from: chef666 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

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


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

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


vuud

Quote from: chef666 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



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.


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

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

vuud

Quote from: chef666 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


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. 





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