이미지리사이즈(설치시 수정해서 설치하세요) > 팁

이미지리사이즈(설치시 수정해서 설치하세요) 정보

이미지리사이즈(설치시 수정해서 설치하세요)

본문

방법 :
1. install_db.php의 270라인에
$gb4[\'upload_image_width\']  = 570; //추가

2. adm/config.php의 20줄 부근에
$gb4['upload_image_width']  = 570; //추가
130줄 부근에 추가
<tr class='ht'>
        <td width=300 height=60>
            이미지 폭 크기
        </td>
        <td>
            <input type=text class=ed name=upload_image_width value="<?=$gb4['upload_image_width']?>"  numeric required itemname="이미지 폭 크기" size=15>
        </td>
    </tr>
 <tr><td height=1 colspan=2 bgcolor=#efefef></td></tr>

3. adm/config_update.php의 20줄에 추가
$gb4[\'upload_image_width\']         = \''.$upload_image_width.'\'; //추가

4. skin/blog/index.skin.php의 하단에
 
<script-x language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=$gb4[upload_image_width]?>);
    drawFont();
}
</script>
5. blog/index.php의 170 줄 부근에 추가
 
 
$post[$index]['content'] = preg_replace("/(\<img )([^\>]*)(\>)/i", "\\1 name='target_resize_image[]' onclick='image_window(this)' style='cursor:pointer;' \\2 \\3", $post[$index][content]);

댓글 전체

아무것도 모르는 막가파(?) 삽질파(?) 팁입니다...

공부 차원에서 잠시 설치해 본것이라 나중에 문제되지는 않을런지.....원....^^

날사님도 마무리 잘하시고 행복하고 건강한 새해 맞으시고 복 마니마니 받으세요......^^
전체 69
팁 내용 검색

회원로그인

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