불당 resize 설치 질문 정보
불당 resize 설치 질문본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
불당 resize 을 설치 하려고 하는데요 해당 내용을 어디에 추가 하면 되는지 모르겠어요 .
/skin/board/basic/write.skin.php에 넣으면 되는 건가요 ?
skin을 수정하려면 basic skin의 경우 다음과 같이 하면 됩니다.
b4.lib.php의 resize_content 함수에서 lib/thumb.lib.php를 호출 하기 때문에
thumb.lib.php는 resize를 하기 위해서 별도로 include를 하지 않아도 됩니다.
<script src="<?=$g4[path]?>/js/b4.common.js"></script>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo resize_content($view[file][$i][view]) . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=resize_content($view[content]);?></span>
---
// $content : resize할 img 태그가 있는 html
// $width = $board[resize_img_width] : 최대 이미지의 폭 (값이 없으면 $board[bo_img_width] 값을 씁니다
// $height = $board[resize_img_height] : 최대 이미지의 높이 (이것이 지정되면 $is_crop = true가 됩니다) 값이 없으면, 비율대로 줄이고 crop 하지 않습니다.
// $quality = $board[resize_img_quality]: 썸네일 이미지의 quality (없으면 기본값, 70%를 사용)
// $thumb_create = $board[thumb_create] : 이미지의 폭이 지정보다 작은경우에도 썸네일을 생성할지를 지정
// $image_window = $board[image_window] : 이미지를 누를때 팝업창을 띄울 것인지를 선택 (1: 팝업)
function resize_content($content, $width=0, $height=0, $quality=0, $thumb_create=0, $image_window=1)
오류 주소 :
불당 resize 을 설치 하려고 하는데요 해당 내용을 어디에 추가 하면 되는지 모르겠어요 .
/skin/board/basic/write.skin.php에 넣으면 되는 건가요 ?
skin을 수정하려면 basic skin의 경우 다음과 같이 하면 됩니다.
b4.lib.php의 resize_content 함수에서 lib/thumb.lib.php를 호출 하기 때문에
thumb.lib.php는 resize를 하기 위해서 별도로 include를 하지 않아도 됩니다.
<script src="<?=$g4[path]?>/js/b4.common.js"></script>
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view])
echo resize_content($view[file][$i][view]) . "<p>";
}
?>
<!-- 내용 출력 -->
<span id="writeContents"><?=resize_content($view[content]);?></span>
---
// $content : resize할 img 태그가 있는 html
// $width = $board[resize_img_width] : 최대 이미지의 폭 (값이 없으면 $board[bo_img_width] 값을 씁니다
// $height = $board[resize_img_height] : 최대 이미지의 높이 (이것이 지정되면 $is_crop = true가 됩니다) 값이 없으면, 비율대로 줄이고 crop 하지 않습니다.
// $quality = $board[resize_img_quality]: 썸네일 이미지의 quality (없으면 기본값, 70%를 사용)
// $thumb_create = $board[thumb_create] : 이미지의 폭이 지정보다 작은경우에도 썸네일을 생성할지를 지정
// $image_window = $board[image_window] : 이미지를 누를때 팝업창을 띄울 것인지를 선택 (1: 팝업)
function resize_content($content, $width=0, $height=0, $quality=0, $thumb_create=0, $image_window=1)
댓글 전체
view.skin.php 요..
^^* 답변 감사 합니다.
우선 백업 받으시고 update하심을 ...