Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: icon or text if intermediate is clickable  (Read 2706 times)

0 Members and 1 Guest are viewing this topic.

water

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[Solved]: icon or text if intermediate is clickable
« 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
« Last Edit: August 09, 2004, 12:00:33 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: icon or text if intermediate is clickable
« Reply #1 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
Logged

water

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: icon or text if intermediate is clickable
« Reply #2 on: August 08, 2004, 05:21:31 pm »

thanks, works beautifully :D

:water
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.