Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to disable all full images popup, just by only one ?  (Read 3443 times)

0 Members and 1 Guest are viewing this topic.

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
How to disable all full images popup, just by only one ?
« 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to disable all full images popup, just by only one ?
« Reply #1 on: January 08, 2005, 07:42:23 pm »

edit displayimage, find
Code: [Select]
            $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
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: How to disable all full images popup, just by only one ?
« Reply #2 on: January 08, 2005, 07:47:09 pm »

Joachim,

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

Pascal

Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: How to disable all full images popup, just by only one ?
« Reply #3 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
Logged

moose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • http://www.eriksgallery.com
Re: How to disable all full images popup, just by only one ?
« Reply #4 on: February 15, 2005, 10:59:53 am »

edit displayimage, find
Code: [Select]
           $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?
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: How to disable all full images popup, just by only one ?
« Reply #5 on: February 15, 2005, 01:26:16 pm »

Do not delete or comment out

Code: [Select]
$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

Code: [Select]
$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.
Logged
Chief Geek at Ranium Systems
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.