coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Pascal YAP on January 08, 2005, 07:18:15 PM

Title: How to disable all full images popup, just by only one ?
Post by: Pascal YAP on January 08, 2005, 07:18:15 PM
Bonjour,All,

How to disable all full images popup, by just only one ?
I do not want disable popup when i click on this image or an other one, nerver mind.
I want to replace this popup by only one, the same for all images in my gallery.
Many thanx if it's possible ;)
Pascal
Title: Re: How to disable all full images popup, just by only one ?
Post by: Joachim Müller on January 08, 2005, 07:42:23 PM
edit displayimage, 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')\">";
            $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
            $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            $pic_html .= "</a>\n";
and replace with anything you could possible come up with.

Joachim
Title: Re: How to disable all full images popup, just by only one ?
Post by: Pascal YAP on January 08, 2005, 07:47:09 PM
Joachim,

So fast GauGau ! and with the solution... ah ah !
Merci a lot, Thanx

Pascal

Title: Re: How to disable all full images popup, just by only one ?
Post by: Pascal YAP on January 08, 2005, 10:52:01 PM
GauGau,

Full modif applied (-:
Work Fine !
Happy, i'm !    ;)
Pascal

ps : in few days in French Coppermine !
http://forum.coppermine-gallery.net/index.php?board=38.0
Thanx for all of us
Title: Re: How to disable all full images popup, just by only one ?
Post by: moose on February 15, 2005, 10:59:53 AM
Quote from: GauGau on January 08, 2005, 07:42:23 PM
edit displayimage, 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')\">";
           $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title;
           $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
           $pic_html .= "</a>\n";
and replace with anything you could possible come up with.

Joachim

I have tried to delete this part, to delete the code after §pic_title= & §pic_html= on all 4 lines, and comment it out.
But the only thing that happen to me is that the big picture that was supposed to be "blocked" disappears instead and there is only a dot image.
Could you give me an example?
Title: Re: How to disable all full images popup, just by only one ?
Post by: Abbas Ali on February 15, 2005, 01:26:16 PM
Do not delete or comment out


$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";


This code is responsible to show the image.

Alter the lines above and below this code. If you dont want the full size image to be displayed then just modify the line


$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 remove the onClick attribute.