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

방법 :
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]);
|

댓글 2개

부지런한 천사님 멋쟁이 ~~~...;;

새해 복 많이 받으세요....^^
아무것도 모르는 막가파(?) 삽질파(?) 팁입니다...

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

날사님도 마무리 잘하시고 행복하고 건강한 새해 맞으시고 복 마니마니 받으세요......^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다. 플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다. 플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

+
제목 글쓴이 날짜 조회
19년 전 조회 1,303
19년 전 조회 1,410
19년 전 조회 1,370
19년 전 조회 2,089
19년 전 조회 2,216
19년 전 조회 1,332
19년 전 조회 1,298
19년 전 조회 1,829
19년 전 조회 1,792
19년 전 조회 1,236
19년 전 조회 1,448
19년 전 조회 1,362
19년 전 조회 1,577
19년 전 조회 1,293
19년 전 조회 1,748
🐛 버그신고