forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: deco on August 06, 2004, 01:37:57 am

Title: [Solved]: Full size pop up disable?
Post by: deco 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
Title: Re: Full size pop up disable?
Post by: Joachim Müller 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
Title: Re: Full size pop up disable?
Post by: deco 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
Title: Full size pop up disable?
Post by: romans815 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?

Title: Re: [Solved]: Full size pop up disable?
Post by: Joachim Müller 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