HACK: Link to origonal image directly. HACK: Link to origonal image directly.
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

HACK: Link to origonal image directly.

Started by pkulak, May 04, 2004, 01:16:56 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pkulak

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 {
"To do any good at all, just believing you are right and you motives are good isn't enough." - Ursula K. Le Guin

Tarique Sani

Just turn the intermediate pictures off in the Admin and it will do the same....
SANIsoft PHP applications for E Biz

pkulak

LINK to the image directly, not DISPLAY the image directly. ;)
"To do any good at all, just believing you are right and you motives are good isn't enough." - Ursula K. Le Guin

Tarique Sani

SANIsoft PHP applications for E Biz