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

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

[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