홈페이지 디자인 구성 훔쳐보기 

 

http://www.gdweb.co.kr/main/index.asp
http://www.dbcut.com
http://www.5day.co.kr 
http://sinbd.com (서비스종료)
http://www.webtrendawards.com 
http://www.thefwa.com 
http://bestwebgallery.com 


CSS 공부 및 자료 

http://www.templatemo.com 
http://cleancss.com 
http://developer.yahoo.com/yui/grids/builder/ 
http://exploding-boy.com/images/cssmenus/menus.html
http://www.mycssmenu.com 
http://www.cssbasics.com 
http://www.highdots.com/css-tab-designer/ 

걍 참고 

http://dev.naver.com 
http://dna.daum.net/apis 
http://www.dreamtemplate.com 

 

 

이미 많은 팁들이 올라와 있지만 간단하게 사용할수 있는 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

<?php echo mb_substr($list[$i]['wr_2'], 0, 18,"utf-8"); ?>

'웹 퍼블리싱 > PHP' 카테고리의 다른 글

[php] 파일업로드 확장자 체크하기  (0) 2015.07.17

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 값을 조절해주면 된다.



사진은 라오어1때 엘리지만 ㅋㅋㅋ 로고만 박아서 만들어 봤어요 

+ Recent posts