coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: lltytgbr on August 10, 2004, 12:14:54 AM

Title: [Solved]: open in new window
Post by: lltytgbr 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.
Title: Re: open in new window
Post by: Joachim Müller 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
Title: Re: open in new window
Post by: lltytgbr 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.
Title: Re: open in new window
Post by: Joachim Müller 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
Title: Re: open in new window
Post by: Casper 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.
Title: Re: open in new window
Post by: Joachim Müller on August 10, 2004, 01:48:33 PM
@Casper: I already noticed, see http://forum.coppermine-gallery.net/index.php?topic=4540.msg39112#msg39112

GauGau
Title: Re: open in new window
Post by: lltytgbr 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.
Title: Re: open in new window
Post by: Joachim Müller on August 10, 2004, 04:47:57 PM
edit themes/yourtheme/theme.php, find'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",(is in there two times) and replace it with something like'{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
Title: Re: open in new window
Post by: lltytgbr 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?
Title: Re: open in new window
Post by: Joachim Müller on August 10, 2004, 06:04:59 PM
in theme.php, find<!-- BEGIN thumb_cell -->
                                        <a href="{LINK_TGT}">{THUMB}</a>&nbsp;
                                        {CAPTION}
                                        {ADMIN_MENU}
<!-- END thumb_cell -->
and replace with<!-- 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
Title: Re: open in new window
Post by: lltytgbr 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.
Title: Re: open in new window
Post by: lltytgbr 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.
Title: Re: open in new window
Post by: Joachim Müller on August 11, 2004, 11:25:36 AM
<!-- 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
Title: Re: open in new window
Post by: lltytgbr on August 11, 2004, 02:54:17 PM
thanks for the help.
Title: Re: open in new window
Post by: Myroslav on October 24, 2004, 03:20:01 PM
Quote from: GauGau on August 10, 2004, 04:47:57 PM
edit themes/yourtheme/theme.php, find'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",(is in there two times) and replace it with something like'{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
Title: Re: [Solved]: open in new window
Post by: thoxic on March 08, 2006, 02:16:50 PM
Is there a way for doing it for 1.4.3?
Title: Re: [Solved]: open in new window
Post by: Joachim Müller 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.