회원 아이콘 크기 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

회원 아이콘 크기 정보

회원 아이콘 크기

본문

안녕하세요 . 회원 아이콘 크기를 제한하지말고 자유자제로  나타내게 하고싶은데요
 
어떻게하면되죠 ㅠㅠ 팁(tip) 에  유디 님께서 올리주신 팁은 ...에러만나서요 ㅠㅠ
 
많은 조언부탁드립니다 . 꾸벅

댓글 전체

수정전
            if (file_exists($dest_path))
            {
                $size = getimagesize($dest_path);
                // 이미지의 폭 또는 높이가 설정값 보다 크다면 이미 업로드 된 이미지 삭제
                if ($size[0] > $config[cf_member_photo_width] || $size[1] > $config[cf_member_photo_height])
                    @unlink($dest_path);
            }

수정후
            if (file_exists($dest_path))
            {
                $size = getimagesize($dest_path);
                // 이미지의 폭 또는 높이가 설정값 보다 크다면 이미 업로드 된 이미지 리사이즈
                if ($size[0] > $config[cf_member_photo_width] || $size[1] > $config[cf_member_photo_height]) {
$width = $config[cf_member_photo_width];
$height = $config[cf_member_photo_height];
$cfile = imagecreatefromjpeg($dest_path);
$dest = imagecreatetruecolor($width, $height);
imagecopyresampled($dest, $cfile, 0, 0, 0, 0, $width, $height, $size[0], $size[1]);
imagejpeg($dest, $dest_path, 90); }
            }
====================================================================

ㅇ이거요... 이걸 적용해봣는데 에러가 나요 ㅠㅠ .
lib/common.php 852~854라인

수정 전
                $width = $config['cf_member_icon_width'];
                $height = $config['cf_member_icon_height'];
                $tmp_name = "<img src='$icon_file' width='$width' height='$height' align='absmiddle' border='0'>";



수정 후

                //$width = $config['cf_member_icon_width'];
                //$height = $config['cf_member_icon_height'];
                $tmp_name = "<img src='$icon_file' align='absmiddle' border='0'>";





참고한 내용

- 회원사진 추가하기 2 (http://www.morssola.com/bbs/tb.php/1021_g4web/20)
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT