[Solved]: Full size pop up disable? [Solved]: Full size pop up disable?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[Solved]: Full size pop up disable?

Started by deco, August 06, 2004, 01:37:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

deco

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

Joachim Müller

has been asked often, searching would have helped. Anyway: 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')\">";
            $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            $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

deco

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

romans815

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?


Joachim Müller

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$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";and replace with$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