PDA

View Full Version : More_Pics_6 for 2.2 ms2



michael_s
04-11-2007, 06:54 AM
Popup Mod for image magic compatibility: Also adds a close window button.

The problem is the missing dimension variables, which causes image magic to watermark the next button and close window button. This fixes this.

in catalog/popup_image.php:
CHANGE:
echo '' . tep_image(DIR_WS_IMAGES.'left.gif', 'previous', '', '', 'border="0"') . ' (http://www.oscmax.com/forums/'.tep_href_link('popup_image.php','pID='.$PID.'&invis ='.$back).') '; TO:
echo '' . tep_image(DIR_WS_IMAGES.'left.gif', 'previous', '100%', '100%', 'border="0"') . ' (http://www.oscmax.com/forums/'.tep_href_link('popup_image.php','pID='.$PID.'&invis ='.$back).') ';


CHANGE:
echo '' . tep_image(DIR_WS_IMAGES.'right.gif', 'next', '', '', 'border="0"') . ' (http://www.oscmax.com/forums/'.tep_href_link('popup_image.php','pID='.$PID.'&invis ='. $next).')'; TO:
echo '' . tep_image(DIR_WS_IMAGES.'right.gif', 'next', '100%', '100%', 'border="0"') . ' (http://www.oscmax.com/forums/'.tep_href_link('popup_image.php','pID='.$PID.'&invis ='. $next).')';


CHANGE:
echo '' .TEXT_CLOSE_WINDOW . ' (javascript:window.close())';
TO:
echo ''
.tep_image(DIR_WS_IMAGES.'close.gif',
TEXT_CLOSE_WINDOW,'100%', '100%', 'border="0"') . ' (javascript:window.close())';

More... (http://www.oscommerce.com/community/contributions,1611)