845 // 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
846 if ($width)
847 $attr = " width='$width' height='$height' ";
848 else
849 $attr = "";
850
851 if (preg_match("/\.($config[cf_image_extension])$/i", $file))
852 // 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
853 // 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
854 return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_ image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
855 else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
856 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr width=570 height=420></embed>";
857 else if (preg_match("/\.($config[cf_movie_extension])$/i", $file))
858 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr></embed>";
859 }
댓글 3개
G3엔 lib/gnuboard.lib.php이 있군요.
암튼 원하는 크기가 나오네요.
lib/common.lib.php 파일의 856번째 줄에 width=570 height=420를 추가해 주었습니다.
---------------------------------------------------------------------------------------------------------------------------------------------
845 // 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
846 if ($width)
847 $attr = " width='$width' height='$height' ";
848 else
849 $attr = "";
850
851 if (preg_match("/\.($config[cf_image_extension])$/i", $file))
852 // 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
853 // 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
854 return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_ image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
855 else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
856 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr width=570 height=420></embed>";
857 else if (preg_match("/\.($config[cf_movie_extension])$/i", $file))
858 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr></embed>";
859 }