forum.coppermine-gallery.net
Support => Older/other versions => cpg1.3.x Support => Topic started 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.
-
I don't understand your question. Do you want to go from thumbnail to pop-up without intermediate?
GauGau
-
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.
-
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
-
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.
-
@Casper: I already noticed, see http://forum.coppermine-gallery.net/index.php?topic=4540.msg39112#msg39112
GauGau
-
yes, I know that it opens up to aregular gallery.
I just wanted to use it as an example.
-
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
-
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?
-
in theme.php, find
<!-- BEGIN thumb_cell -->
<a href="{LINK_TGT}">{THUMB}</a>
{CAPTION}
{ADMIN_MENU}
<!-- END thumb_cell -->and replace with<!-- BEGIN thumb_cell -->
<a href="{LINK_TGT}" target="_blank">{THUMB}</a>
{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
-
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.
-
i messed around with it, and I was able to make the gallery open up in a new window, but not the thumbnails themselves.
-
<!-- BEGIN thumb_cell -->
<a href="{LINK_TGT}">{THUMB}</a>
{CAPTION}
{ADMIN_MENU}
<!-- END thumb_cell -->is in theme.php twice - once for the filmstrip, once for regular thumbs...
GauGau
-
thanks for the help.
-
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
-
Is there a way for doing it for 1.4.3?
-
post cpg1.4.x issues on the proper board along with a link to this thread. Locking.