게시판에서 첨부한 사진사이즈가 너무 클때 해결방법
그누보드를 사용하시면서 보면 사진 사이즈가 엄청 큰 사진을 열때 사이트 폭이 깨지면서 나올때가 있습니다. 비록 게시판환경에서 600사이즈로 제한했지만 열리는 도중에 깨지면서 나오죠?
그걸 해결방법을 찾아보았습니다.
lib폴더에서 common.lib.php 파일을 열고 921라인쯤에서 소스를 수정해주세요.
--수정전--
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'>";
--수정후--
return "<div style=\"overflow:hidden; width:{$width}px\"><img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'></div>";
비록 허접한 팁이지만 유용하게 사용해주시면 고맙겠습니다.
그걸 해결방법을 찾아보았습니다.
lib폴더에서 common.lib.php 파일을 열고 921라인쯤에서 소스를 수정해주세요.
--수정전--
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'>";
--수정후--
return "<div style=\"overflow:hidden; width:{$width}px\"><img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'></div>";
비록 허접한 팁이지만 유용하게 사용해주시면 고맙겠습니다.
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 8개
그런데... 적용해 봐도
전 그대론데... 게시판에서 설정하는 방법이 또 따로 있나요??
게시판설정 크기로 변경이 되는 기능이군요~ 추천!