full-size image in its own blank window? full-size image in its own blank window?
 

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

full-size image in its own blank window?

Started by frenziedsilence, September 27, 2004, 09:42:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

frenziedsilence

I've searched and looked and trolled through the boards and Google, but haven't found what I'm looking for.

I would like the thumbnails to link to the corresponding photo just in its own blank browser window (as if it were just a < a href="fullimage.jpg" target="_blank" > tag), rather than in the displayimage tables. My gallery doesn't require the navigation bar, comments, any of that stuff.
Is there a mod hidden somewhere that would do this? Or something I could edit myself? I've tried a few things but of course they didn't quite work. I only got the displayimage page in a target=blank tag.

Any help would be very much appreciated - and I'm very sorry if this has been covered before.. I just didn't find anything.

-kathryn

starb

You can copy from line 529 to 573 of the code in sample/theme.php into your new theme.php . And add target="_blank" in this tag:  <a href="{LINK_TGT}"> (line 540 in your sample theme)

If you talk about JUST showing the image without all the html, i don't know but you can modify your theme to get rid of all the stuff that is not necessary.

good luck




Joachim Müller

@starb: thanks for your willingness to help, but your suggestion doesn't apply: this thread has been posted on the cpg1.3.x support board, so probably frenziedsilence does have that particular version, which didn't come with a sample theme. Of course, the line numbers differ from version to version as well, so there's little point in refering to them. Instead, you should post recommendations like "find <<foo> and replace with <<bar>>", using the code button (the one with the hash sign) of the forum.

@frenziedsilence: edit displayimage.php, find$pic_html = "<a href=\"javascript:;\" onClick=\"MM_openBrWindow('displayimage.php?pid=$pid&fullsize=1','" . uniqid(rand()) . "','scrollbars=yes,toolbar=yes,status=yes,resizable=yes,width=$winsizeX,height=$winsizeY')\">";and replace with$pic_html = "<a href=\"displayimage.php?pid=$pid&fullsize=1\" target=\"_blank\">";However, this will open up a new window with the full-size pic. What you are actually looking for is probably the mod "    
from thumbnail to full-size pop-up (skip intermediate page)
".
If you're actually using cpg1.4.x (which is recommended), you have posted on the wrong board in the first place. All suggestions from above then don't apply. If you're unsure, post a link to your coppermine-driven gallery.

Joachim