이미 많은 팁들이 올라와 있지만 간단하게 사용할수 있는 1원팁 입니다. 

lib/thumbnail.lib.php 
7번째줄 보면 

function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_create=false, $is_crop=false, $crop_mode='center', $is_sharpen=false, $um_value='80/0.5/3') 

여기서 $is_crop=false,  이부분을 true로 변경해주시면 됩니다.

extend/user.config.php 파일에 추가. 

변경해야 할 부분.. 
게시판 아이디 : $bo_table == 'notice' 
각 분류 이름 : $sca == '질문' 
분류별 지정 스킨 이름 : $board['bo_skin'] = 'gallery'; 


if($bo_table == 'notice') { 
    if($sca == '질문') { 
        $board['bo_skin'] = 'gallery'; 
    } 
    if($sca == '답변') { 
        $board['bo_skin'] = 'basic'; 
    } 
    $board_skin_path = get_skin_path('board', $board['bo_skin']); 
    $board_skin_url = get_skin_url('board', $board['bo_skin']); 



적용하고 싶은 분류만 이런식으로 추가. 

if($sca == '분류명') { 
    $board['bo_skin'] = '스킨명'; 
}

최신글 latest.skin 에서 이미지 출력하는 부분 링크 

<A HREF='<?=$list[$k]['wr_link1'];?>'><img src='<?=$img_content2;?>' border=0 width='<?=$n_thumb_width?>' height='<?=$n_thumb_height?>' ></a> 

수정하고  게시글에서 링크1에 홈페이지 링크를 입력해주면 됩니다.

경로등 여러 문제가 있겠지만 대부분은 제이쿼리 중복 로드의 문제일 경우가 많습니다. 

저도 이것때문에 거의 두시간동안 고생했네요 ㄷㄷ 

메인에 보통 슬라이드를 넣는 경우 제이쿼리를 불러올때 기존 제이쿼리를 불러오는 것과 버젼을 체크해서 높은것만 남겨두고 나머지를 삭제해주시면 됩니다. 

<script defer src="/js/jquery-1.8.1.min.js"></script>

게시판 스킨 리스트 페이지에서 

<?php if ($is_checkbox) { ?> 
        <ul class="btn_bo_adm"> 
            <li><input type="submit" name="btn_submit" value="DEL" onclick="document.pressed=this.value"></li> 
            <li><input type="submit" name="btn_submit" value="COPY" onclick="document.pressed=this.value"></li> 
            <li><input type="submit" name="btn_submit" value="MOVE" onclick="document.pressed=this.value"></li> 
        </ul> 
        <?php } ?> 

이 부분의 밸류값을 수정하면 글 옮기거나 삭제할때 오류가 나는데 
아래쪽의 스크립트 수정해야 한다. 


function fboardlist_submit(f) { 
    var chk_count = 0; 

    for (var i=0; i<f.length; i++) { 
        if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked) 
            chk_count++; 
    } 

    if (!chk_count) { 
        alert(document.pressed + "할 게시물을 하나 이상 선택하세요."); 
        return false; 
    } 

    if(document.pressed == "COPY") { 
        select_copy("copy"); 
        return; 
    } 

    if(document.pressed == "MOVE") { 
        select_copy("move"); 
        return; 
    } 

    if(document.pressed == "DEL") { 
        if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다.")) 
            return false; 

        f.removeAttribute("target"); 
        f.action = "./board_list_update.php"; 
    } 

    return true; 




그리고 bbs/board_list_update.php 수정해야 한다. 

<?php 
include_once('./_common.php'); 

$count = count($_POST['chk_wr_id']); 

if(!$count) { 
    alert($_POST['btn_submit'].' 하실 항목을 하나 이상 선택하세요.'); 


if($_POST['btn_submit'] == 'DEL') { 
    include './delete_all.php'; 
} else if($_POST['btn_submit'] == 'COPY') { 
    $sw = 'copy'; 
    include './move.php'; 
} else if($_POST['btn_submit'] == 'MOVE') { 
    $sw = 'move'; 
    include './move.php'; 
} else { 
    alert('올바른 방법으로 이용해 주세요.'); 

?>









귀찮으면 스킨 다운받아 사용 - https://sir.kr/g5_skin/5590

jpeg 파일이 썸네일이 생성이 안되면서 일부 파일이 안나올때가 있습니다. 

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Corrupt JPEG data: 655 extraneous bytes before marker 0xd9 in /home1/gumma/www/lib/thumbnail.lib.php on line 244 

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home1/gumma/www/data/file/34/978049924_0L9FSrZB_20150807_103453.jpg' is not a valid JPEG file in /home1/gumma/www/lib/thumbnail.lib.php on line 244 

이런 경고창이 뜨면서 깨질때는 

lib/thumbnail.lib.php 상단에 넣어주면 됩니다. 
ini_set("gd.jpeg_ignore_warning", 1); 


참고 링크 
http://stackoverflow.com/questions/11323515/why-do-i-get-corrupt-jpeg-data-message-when-using-imagecreatefromjpeg-functi

/www/plugin/editor/smarteditor2/photo_uploader/plugin 

hp_SE2M_AttachQuickPhoto.js 

파일을 열어서 36번째줄 

this.htPopupOption.sProperties = "left="+(screen.width-640)/2+", top="+(screen.height-459)/2+",width=1000,height=700,scrollbars=yes,location=no,status=0,resizable=no"; 


width height 값을 조절해주면 된다.

64Bit 윈도우7에 이클립스 설치 및 실행 시 

Java was started but returned exit code=13 에러가 발생한 경우.. 


<원인> 

eclipse.ini 에서 vm을 jdk 경로로 설정하였으나, 인식하지 못함. 

vm을 설정할 때 jdk의 운영체제 bit 와 eclipse의 운영체제 bit가 일치해야함. 

32bit eclipse를 사용할 경우 vm 경로를 32bit jre 경로로 설정해야 함. 

64bit eclipse를 사용할 경우 vm 경로를 64bit jre 경로로 설정해야 함. 


<해결방안> 
eclipse.ini 에서 vm 경로를 jre 경로로 설정. 

<eclipse.ini> 

-startup 
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar 
–launcher.library 
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813 
-product 
org.eclipse.epp.package.jee.product 
–launcher.defaultAction 
openFile 
–launcher.XXMaxPermSize 
256M 
-showsplash 
org.eclipse.platform 
–launcher.XXMaxPermSize 
256m 
–launcher.defaultAction 
openFile 
-vm 
C:/Program Files (x86)/Java/jre7/bin/javaw.exe 
-vmargs 
-Dosgi.requiredJavaVersion=1.5 
-Dhelp.lucene.tokenizer=standard 
-Xms512m 
-Xmx512m 
-Dfile.encoding=UTF-8




게시판스킨/view_comment.skin.php 의 49번째줄 쯤 
<!-- 댓글 출력 --> 아래쪽의 
<?php echo $comment ?> 이부분을 아래의 코드로 변경 

<? 
$str = $list[$i][content]; 

$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp|mms)\:\/\/([^[:space:]]+)\.(mp3|wma|wmv|asf|asx|mpg|mpeg)\".*\<\/a\>\]/i", "<script>doc_write(obj_movie('$1://$2.$3'));</script>", $str); 
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str); 
$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\".*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str); 
echo $str; 
?> 


※중요!! 이미지를 업로드 시키는게 아니라 이미지를 보이게 나타내는 태그입니다.  
[https://www.google.co.kr/images/srpr/logo11w.png] 이런식으로 이미지가 업로드된 경로가 필요합니다.

스킨 수정할때 그누보드4와 그누보드5에서 달라진 함수(변수) 

$g4['board_table']  또는  $g4[board_table]    →  $g5['board_table'] 
$g4['bbs_path']      또는  $g4[bbs_path]        →  G5_BBS_PATH        // ex.  /home/www/bbs 
                                                                  →  G5_BBS_URL    // ex.  http://도메인/bbs 
$g4['path']/data      또는 $g4[path]/data          →  G5_DATA_PATH      // ex.  /home/www/data 
$g4['path']                또는  $g4[path]                  →  G5_PATH                  // ex.  /home/www 
$g4['adm_path']    또는  $g4[adm_path]        →  G5_ADMIN_PATH    // ex.  /home/www/adm 
                                                                  →  G5_ADMIN_URL    // ex.  http://도메인/adm 
$g4['path']/lib          또는 $g4[path]/lib              →  G5_LIB_PATH 
$g4['path']/js            또는 $g4[path]/js              →  G5_JS_URL 
$g4['server_time']      →      G5_SERVER_TIME 
$g4['write_prefix']      →      $g5['write_prefix'] 
global $g4;      →    global $g5; 

$outlogin_skin_path  →  outlogin_skin_url 
$board_skin_path      →  $board_skin_url 
$connect_skin_path  →  $connect_skin_url 
$latest_skin_path        →  $latest_skin_url  // ex. http://도메인/skin/latest/basic 
$latest_skin_path        →  $latest_skin_path  // ex. /home/www/skin/latest/basic 
$new_skin_url              →  
$member_skin_path  →  $member_skin_url 

G5_ADMIN_DIR    =  adm 
G5_BBS_DIR          =  bbs 
G5_DATA_DIR        =  data 
G5_JS_DIR            =  js 
G5_LIB_PATH        =  lib 

G5_ADMIN_PATH  =  /home/www/adm 
G5_BBS_PATH        =  /home/www/bbs 
G5_DATA_PATH      =  /home/www/data 
G5_JS_PATH          =    /home/www/js 
G5_LIB_PATH        =  /home/www/lib 
G5_SKIN_PATH      =  /home/www/skin 
G5_PATH                  =  /home/www 

G5_ADMIN_URL    =  http://www.happyjung.com/adm 
G5_BBS_URL        =  http://www.happyjung.com/bbs 
G5_DATA_URL      =  http://www.happyjung.com/data 
G5_JS_URL            =  http://www.happyjung.com/js 
G5_LIB_URL          =  http://www.happyjung.com/lib 
G5_SKIN_URL      =  http://www.happyjung.com/skin 
G5_URL                  =  http://www.happyjung.com

+ Recent posts