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
-
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
-
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
-
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
-
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?
-
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