[Solved]: open in new window [Solved]: open in new window
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: open in new window

Started by lltytgbr, August 10, 2004, 12:14:54 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

lltytgbr

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.

Joachim Müller

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

GauGau

lltytgbr

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.

Joachim Müller

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

Casper

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.
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


lltytgbr

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

Joachim Müller

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

lltytgbr

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?

Joachim Müller

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

lltytgbr

#10
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.

lltytgbr

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

Joachim Müller

<!-- 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

lltytgbr


Myroslav

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

thoxic

Is there a way for doing it for 1.4.3?

Joachim Müller

post cpg1.4.x issues on the proper board along with a link to this thread. Locking.