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: [Solved]: open in new window  (Read 11976 times)

0 Members and 1 Guest are viewing this topic.

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
[Solved]: open in new window
« on: August 10, 2004, 12:14:54 am »

When viewing a pic in an album, what do i have to modify to make the pic i wanna see open up in a new window? and not have to go to the page, see the pic, then click the back button.
« Last Edit: March 08, 2006, 07:24:33 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #1 on: August 10, 2004, 07:19:22 am »

I don't understand your question. Do you want to go from thumbnail to pop-up without intermediate?

GauGau
Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #2 on: August 10, 2004, 10:02:29 am »

yes.
like on this gallery: http://www.sims2world.com/screenshots/thumbnails.php?album=4 i want to be able to click on a thumb, and have a pop up open with the pic in its original size.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #3 on: August 10, 2004, 10:08:35 am »

the gallery you posted a link to doesn't have this feature - clicking on a thumbnail opens a regular displayimage.php page with the intermediate pic, you only get the full-size pic after you click on the intermediate pic.

GauGau
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: open in new window
« Reply #4 on: August 10, 2004, 10:09:12 am »

The link you gave is to a 1.2.1 site, that as far as I can see, works as normal.  The thumbnails take you to the displayimage page, not direct to the popup.

@gaugau, this link is to a site that is hiding the powered by notice.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #5 on: August 10, 2004, 01:48:33 pm »

Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #6 on: August 10, 2004, 04:15:19 pm »

yes, I know that it opens up to aregular gallery.
I just wanted to use it as an example.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #7 on: August 10, 2004, 04:47:57 pm »

edit themes/yourtheme/theme.php, find
Code: [Select]
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",(is in there two times) and replace it with something like
Code: [Select]
'{LINK_TGT}' => "javascript:MM_openBrWindow('displayimage.php?pid={$thumb['pos']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=1024,height=768')",(not tested though), although I don't understand why you'd want it this way - you're missing all the fun (the features that exist on a regular displayimage.php page).

GauGau
Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #8 on: August 10, 2004, 05:33:57 pm »

Thanks!
Although it wasnt finding some of the pics somehow, and on the audio section, it was linking to some pics, and since you said it was not tested, I figured noone would know how to fix it, so sinceI had backed it up, I replaced it with the original.
Now...instead of having teh pic open up in a new window, any way of having the displayimage.php open in a new window?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #9 on: August 10, 2004, 06:04:59 pm »

in theme.php, find
Code: [Select]
<!-- BEGIN thumb_cell -->
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
                                        {CAPTION}
                                        {ADMIN_MENU}
<!-- END thumb_cell -->
and replace with
Code: [Select]
<!-- BEGIN thumb_cell -->
                                        <a href="{LINK_TGT}" target="_blank">{THUMB}</a>&nbsp;
                                        {CAPTION}
                                        {ADMIN_MENU}
<!-- END thumb_cell -->

I wouldn't do that though, with so many pop-up blockers around this could lead to newbies not being able to open the link at all... Personally, I hate it when new windows are opened for me - I feel treated like a child, since I'm well able to a "right-click", "open in new window" on my own if I need a new window. New windows leave the bad aftertaste of advertisment pop-ups.

GauGau
Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #10 on: August 10, 2004, 06:35:53 pm »

only what's in the filmstrip is opening in a new window, and not what's in the gallery.
I wanna make what's in the gallery open in a new window.
« Last Edit: August 10, 2004, 09:03:15 pm by lltytgbr »
Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #11 on: August 11, 2004, 08:29:39 am »

i messed around with it, and I was able to make the gallery open up in a new window, but not the thumbnails themselves.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: open in new window
« Reply #12 on: August 11, 2004, 11:25:36 am »

Code: [Select]
<!-- BEGIN thumb_cell -->
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
                                        {CAPTION}
                                        {ADMIN_MENU}
<!-- END thumb_cell -->
is in theme.php twice - once for the filmstrip, once for regular thumbs...

GauGau
Logged

lltytgbr

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: open in new window
« Reply #13 on: August 11, 2004, 02:54:17 pm »

thanks for the help.
Logged

Myroslav

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: open in new window
« Reply #14 on: October 24, 2004, 03:20:01 pm »

edit themes/yourtheme/theme.php, find
Code: [Select]
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",(is in there two times) and replace it with something like
Code: [Select]
'{LINK_TGT}' => "javascript:MM_openBrWindow('displayimage.php?pid={$thumb['pos']}&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=1024,height=768')",(not tested though), although I don't understand why you'd want it this way - you're missing all the fun (the features that exist on a regular displayimage.php page).

GauGau

Hello,
I from Ukraine also apologize for my bad English language.
I need to make precisely as on this site, http://buchach.com.ua/index2.phtml when I press on thumbnail a picture opening big in a separate window (only the image), I punched to change above the told code, but I have an inscription " The selected album/file does not exist ".
Very much I ask you to help me with it, if it is possible in detail to describe as in what fail to change.

Myroslav
Logged

thoxic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: [Solved]: open in new window
« Reply #15 on: March 08, 2006, 02:16:50 pm »

Is there a way for doing it for 1.4.3?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: open in new window
« Reply #16 on: March 08, 2006, 07:24:19 pm »

post cpg1.4.x issues on the proper board along with a link to this thread. Locking.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.