coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: pkulak on May 04, 2004, 01:16:56 AM

Title: HACK: Link to origonal image directly.
Post by: pkulak on May 04, 2004, 01:16:56 AM
In displayimage.php change:


   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; //added by gaugau
       $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
       $pic_html .= "</a>\n";
   } else {


to


   if (isset($image_size['reduced'])) {
       $winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
       $winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
       $fulsize_url = get_pic_url($CURRENT_PIC_DATA, 'fullsize');
       $pic_html = "<a href=\"$fulsize_url\" target=\"top\">";
       $pic_title = $lang_display_image_php['view_fs'] . "\n==============\n" . $pic_title; //added by gaugau
       $pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
       $pic_html .= "</a>\n";
   } else {
Title: Re: HACK: Link to origonal image directly.
Post by: Tarique Sani on May 04, 2004, 04:06:19 AM
Just turn the intermediate pictures off in the Admin and it will do the same....
Title: Re: HACK: Link to origonal image directly.
Post by: pkulak on May 04, 2004, 04:55:07 AM
LINK to the image directly, not DISPLAY the image directly. ;)
Title: Re: HACK: Link to origonal image directly.
Post by: Tarique Sani on May 04, 2004, 07:13:09 AM
 :-[ Oops! My bad