forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: water on August 07, 2004, 06:45:37 pm

Title: [Solved]: icon or text if intermediate is clickable
Post by: water on August 07, 2004, 06:45:37 pm
I'm well on the way of getting coppermine integrated into my site the way I want to, much due to the great resource this forum is :)

So once more I turn to the forum... ;)

Is it possible to display a message under the intermediate photo if it is possible to click to get to the original sized photo. The alt text is altered so i should be possible.

:water
Title: Re: icon or text if intermediate is clickable
Post by: Joachim Müller on August 08, 2004, 10:49:26 am
edit displayimage, find
Code: [Select]
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
            $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 anything you could think of beneath it, e.g. relplace above code with
Code: [Select]
        if (isset($image_size['reduced'])) {
            $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
            $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
            $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 />Click here to see the pic in full size";
            $pic_html .= "</a>\n";

GauGau
Title: Re: icon or text if intermediate is clickable
Post by: water on August 08, 2004, 05:21:31 pm
thanks, works beautifully :D

:water