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: [Solved]: Full size pop up disable?  (Read 3606 times)

0 Members and 1 Guest are viewing this topic.

deco

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[Solved]: Full size pop up disable?
« on: August 06, 2004, 01:37:57 am »

Hey there,

in the FAQ there is something about what to do if the fullsize-pic does NOT pop up: http://coppermine.sourceforge.net/faq.php?q=noFullsizePopup#noFullsizePopup
but is there a way to DISABLE the (full size) pop up all together without getting any error messages?

Thanks again for you help and Coppermine is great
« Last Edit: August 07, 2004, 09:27:51 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Full size pop up disable?
« Reply #1 on: August 06, 2004, 07:20:50 am »

has been asked often, searching would have helped. Anyway: edit displayimage.php, 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
Code: [Select]
            $pic_html = "";
            $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 .= "\n";

GauGau
Logged

deco

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Full size pop up disable?
« Reply #2 on: August 06, 2004, 08:13:35 am »

Thanks a lot Sir


btw: believe me I looked in the forum first and there is tons of good advice I just couldnt find what I was looking for...   ;)


Thx and greetz

Deco
Logged

romans815

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Full size pop up disable?
« Reply #3 on: December 11, 2004, 01:38:12 am »

The mod works, however this meta tag still displays when you mouse-over the picture.
"Click to View Full Size Image"

Is there anyway to disable this?

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Full size pop up disable?
« Reply #4 on: December 11, 2004, 09:57:19 am »

This is not a "meta tag" (wrong use of technical term), but a so-called "tool tip". It displays the value of the "alt" attribute of the <img> tag, so this is just some basic html everybody running a website should be familiar with. In above mentioned code, find
Code: [Select]
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";and replace with
Code: [Select]
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"\" /><br />";I recommend looking up the syntax of the <img> tag though, you'll learn a lot - a good place to start is http://www.w3schools.com/tags/tag_img.asp

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.