테스트 사이트 - 개발 중인 베타 버전입니다

1개의 게시물을확인할때 이렇게 나옵니다. 채택완료

salero 7개월 전 조회 9,953

게시물 목록에서 한개의 게시물을 선택하여 출력될때 게시물 하단이 나오지 않습니다. 

어떻게 해야 하나요? 

tail 에서 무언가해야 할듯한데...

고수님들의 도움을 바랍니다. http://sir.kr/data/editor/2503/3672871717_1742807220.7852.jpg" width="100%" />

댓글을 작성하려면 로그인이 필요합니다.

답변 15개

채택된 답변
+20 포인트
7개월 전

URL을 알려주시는게 답변드리기에 조금 더 수월할것같습니다

 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 3개

s
salero
7개월 전
ne79.com
입니다. 게시판에 들어가셔서 1개의 게시물을 클릭하면 하단부분이 안나옵니다.
확인부탁드립니다.
s
salero
7개월 전
ne79.com
입니다. 게시판에 들어가셔서 1개의 게시물을 클릭하면 하단부분이 안나옵니다.
확인부탁드립니다.
닥본사
7개월 전
PHP쪽에 오류코드가 있는것 같습니다
특별히 수정하신게 없다면 스킨에 include되는 부분을 살펴보시기 바랍니다

최상단에

error_reporting(E_ALL);
ini_set('display_errors', '1');

를 넣으시면 에러를 좀더 수월하게 보실수있습니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

문제가 해결되었습니다. 게시판 설정에서 '테마 basic' 말고 기본 'basic'로 하니까 하단메뉴가 다 뜨네요.

 

모두 감사합니다. 특히 자기일처럼 관심가져주신 '닥본사'님께 감사한 마음을 전합니다. 

정말 답답한 저를 많이 도와주신 것, 진심 진심 감사를 드립니다. 꾸벅^^

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

지금 보니 4개의 게시판 중에 1개는 정상출력되고 다른 3개만 안되네요

그럼 원인이 무얼까요?

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

플라이
7개월 전
그렇다면 해당 1개된것과 3개가 다른스킨인지 확인후 문제되는 스킨 view.skin.php파일을 확인해 보셔야 할듯 합니다.

댓글을 작성하려면 로그인이 필요합니다.

7개월 전

사용하는 스킨폴더는 어느 폴더인지 확인 가능한가요?

그러하다면 view.skin.php를 다른 이름으로 변경해놓고 view.skin.php를 새로이 만들어 다음코드를 넣어보세요

내용들이 복잡하게 나오고 head, tail부분이 나와야 됩니다

 

<?php

print_r($view);

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

'내정보공개'하라는데 어떻게 하나요   에휴~~ 어렵네요

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

s
salero
7개월 전
쪽지 보낼 포인트 가 없네요
비번하고 다 맞습니다. 내일 다시 확인해보겠습니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전
<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
//add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);

error_reporting(E_ALL);
ini_set('display_errors', '1');
?>

<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<!-- 게시물 읽기 시작 { -->
    <div class="headline">

....

이렇게 수정해서 올렸는데 에러는 안나오고 화면도 그대롭니다.

마치 아랫부분 소스가 없는듯하네요. 

 

           if(data.count) {
                $el.find("strong").text(number_format(String(data.count)));
                if($tx.attr("id").search("nogood") > -1) {
                    $tx.text("이 글을 비추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                } else {
                    $tx.text("이 글을 추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                }
            }
        }, "json"
    );
}
</script>
<!-- } 게시글 읽기 끝 -->

읽기 끝 다음에 공통으로 출력되는 tail이 있어야 하지 않을까요?

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

닥본사
7개월 전
실제로는 board.php에서 스킨을 불러오므로 tail은 따로 없어도됩니다
쪽지 한번주시겠어요

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

'위쪽 include 썸네일 되어있는곳에' 이란 어느 파일을 말씀하나요? 

/www/theme/company1/skin/board/basic 에 넣어라는 말씀인가요?

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

닥본사
7개월 전
사용중인 view.skin.php 최상단 부분에

<?php부터

?>까지를


<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
//add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);

error_reporting(E_ALL);
ini_set('display_errors', '1');
?>
이걸로 교체하셔서 새로고침해보시기바랍니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

빠른 답변 감사합니다. 

제가 아는게 없어서 '에러코드'는 딱히 뜨는 것이 없는데요..

개별게시물 하단이 출력안되서.. 한번 사이트 방문주시면 알수 있을텐데.. 그래주실래요? (ne79.com)입니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

닥본사
7개월 전
네 사이트도 방문해보고 PHP버전을 알아내보려고 여러가지를 해봤는데 PHP버전이 보이질 않네요
일단 에러코드의 경우 눈으로 보이지 않으니

위쪽 include 썸네일 되어있는곳에

<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
//add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);

/*에러리포팅추가*/
error_reporting(E_ALL);
ini_set('display_errors', '1');
/*여기까지*/
?>


를 넣어보시면 에러코드가 나올겁니다
s
salero
7개월 전
/*에러리포팅추가*/
error_reporting(E_ALL);
ini_set('display_errors', '1');
/*여기까지*/
?>
이 글자가 게시판 윗부분에 출력되고 아랫부분은 보이지 않습니다.

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

ㅜㅜ 그누보드를 다시 깔아볼까요? 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

닥본사
7개월 전
딱히 건드리신게 없다면 그문제는 아닌것같습니다.
에러코드를 한번 찍어서 보여주시면 해결에 도움이됩니다

댓글을 작성하려면 로그인이 필요합니다.

salero
7개월 전

죄송합니다. 초보라 확인이 어렵네요.  시간이 되시면 좀 봐주세요.

view.skin.php 전체 파일입니다. 

<?php
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
//add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
?>

<script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<!-- 게시물 읽기 시작 { -->
    <div class="headline">
        <h2><?php echo $g5['title']; ?></h2>
</div>
<br>
<article id="bo_v" style="width:<?php echo $width; ?>">
    <header>
        <h2 id="bo_v_title">
            <?php if ($category_name) { ?>
            <span class="bo_v_cate"><?php echo $view['ca_name']; // 분류 출력 끝 ?></span> 
            <?php } ?>
            <span class="bo_v_tit">
            <?php
            echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
            ?></span>
        </h2>
    </header>

    <section id="bo_v_info">
        <h2>페이지 정보</h2>
        <span class="sound_only">작성자</span> <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
        <span class="sound_only">댓글</span><strong><a href="#bo_vc"> <i class="fa fa-commenting-o" aria-hidden="true"></i> <?php echo number_format($view['wr_comment']) ?>건</a></strong>
        <span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?>회</strong>
        <strong class="if_date"><span class="sound_only">작성일</span><i class="fa fa-clock-o" aria-hidden="true"></i> <?php echo date("y-m-d H:i", strtotime($view['wr_datetime'])) ?></strong>

    </section>

    <section id="bo_v_atc">
        <h2 id="bo_v_atc_title">본문</h2>

        <?php
        // 파일 출력
        $v_img_count = count($view['file']);
        if($v_img_count) {
            echo "<div id=\"bo_v_img\">\n";

            for ($i=0; $i<=count($view['file']); $i++) {
                if ($view['file'][$i]['view']) {
                    //echo $view['file'][$i]['view'];
                    echo get_view_thumbnail($view['file'][$i]['view']);
                }
            }

            echo "</div>\n";
        }
         ?>

        <!-- 본문 내용 시작 { -->
        <div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
        <?php//echo $view['rich_content']; // {이미지:0} 과 같은 코드를 사용할 경우 ?>
        <!-- } 본문 내용 끝 -->

        <?php if ($is_signature) { ?><p><?php echo $signature ?></p><?php } ?>


        <!--  추천 비추천 시작 { -->
        <?php if ( $good_href || $nogood_href) { ?>
        <div id="bo_v_act">
            <?php if ($good_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $good_href.'&amp;'.$qstr ?>" id="good_button" class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></a>
                <b id="bo_v_act_good"></b>
            </span>
            <?php } ?>
            <?php if ($nogood_href) { ?>
            <span class="bo_v_act_gng">
                <a href="<?php echo $nogood_href.'&amp;'.$qstr ?>" id="nogood_button" class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></a>
                <b id="bo_v_act_nogood"></b>
            </span>
            <?php } ?>
        </div>
        <?php } else {
            if($board['bo_use_good'] || $board['bo_use_nogood']) {
        ?>
        <div id="bo_v_act">
            <?php if($board['bo_use_good']) { ?><span class="bo_v_good"><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>
            <?php if($board['bo_use_nogood']) { ?><span class="bo_v_nogood"><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>
        </div>
        <?php
            }
        }
        ?>
        <!-- }  추천 비추천 끝 -->
    </section>

    <div id="bo_v_share">
        <?php if ($scrap_href) { ?><a href="<?php echo $scrap_href;  ?>" target="_blank" class="btn btn_b03" onclick="win_scrap(this.href); return false;"><i class="fa fa-thumb-tack" aria-hidden="true"></i> 스크랩</a><?php } ?>

        <?php
        include_once(G5_SNS_PATH."/view.sns.skin.php");
        ?>
    </div>

    <?php
    $cnt = 0;
    if ($view['file']['count']) {
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
                $cnt++;
        }
    }
     ?>

    <?php if($cnt) { ?>
    <!-- 첨부파일 시작 { -->
    <section id="bo_v_file">
        <h2>첨부파일</h2>
        <ul>
        <?php
        // 가변 파일
        for ($i=0; $i<count($view['file']); $i++) {
            if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
         ?>
            <li>
                <i class="fa fa-download" aria-hidden="true"></i>
                <a href="<?php echo $view['file'][$i]['href'];  ?>" class="view_file_download">
                    <strong><?php echo $view['file'][$i]['source'] ?></strong>
                </a>
                <?php echo $view['file'][$i]['content'] ?> (<?php echo $view['file'][$i]['size'] ?>)
                <span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드 | DATE : <?php echo $view['file'][$i]['datetime'] ?></span>
            </li>
        <?php
            }
        }
         ?>
        </ul>
    </section>
    <!-- } 첨부파일 끝 -->
    <?php } ?>


    <?php
    $cnt = 0;
    if ($view['link']['count']) {
        for ($i=0; $i<count($view['link']); $i++) {
            if (isset($view['link'][$i]['source']) && $view['link'][$i]['source'] && !$view['link'][$i]['view'])
                $cnt++;
        }
    }
    ?>

    <?php if($cnt) { ?>
    <!-- 관련링크 시작 { -->
    <section id="bo_v_link">
        <h2>관련링크</h2>
        <ul>
        <?php
        // 링크
        $cnt = 0;
        for ($i=1; $i<=count($view['link']); $i++) {
            if ($view['link'][$i]) {
                $cnt++;
                $link = cut_str($view['link'][$i], 70);
         ?>
            <li>
                <i class="fa fa-link" aria-hidden="true"></i> <a href="<?php echo $view['link_href'][$i] ?>" target="_blank">
                    
                    <strong><?php echo $link ?></strong>
                </a>
                <span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>
            </li>
        <?php
            }
        }
         ?>
        </ul>
    </section>
    <!-- } 관련링크 끝 -->
    <?php } ?>

    <!-- 게시물 상단 버튼 시작 { -->
    <div id="bo_v_top">
        <?php
        ob_start();
        ?>

        <ul class="bo_v_left">
            <?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>" class="btn_b01 btn"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 수정</a></li><?php } ?>
            <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" class="btn_b01 btn" onclick="del(this.href); return false;"><i class="fa fa-trash-o" aria-hidden="true"></i> 삭제</a></li><?php } ?>
            <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" class="btn_admin btn" onclick="board_move(this.href); return false;"><i class="fa fa-files-o" aria-hidden="true"></i> 복사</a></li><?php } ?>
            <?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" class="btn_admin btn" onclick="board_move(this.href); return false;"><i class="fa fa-arrows" aria-hidden="true"></i> 이동</a></li><?php } ?>
            <?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>" class="btn_b01 btn"><i class="fa fa-search" aria-hidden="true"></i> 검색</a></li><?php } ?>
        </ul>

        <ul class="bo_v_com">
           <li><a href="<?php echo $list_href ?>" class="btn_b01 btn"><i class="fa fa-list" aria-hidden="true"></i> 목록</a></li>
            <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01 btn"><i class="fa fa-reply" aria-hidden="true"></i> 답변</a></li><?php } ?>
            <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02 btn"><i class="fa fa-pencil" aria-hidden="true"></i> 글쓰기</a></li><?php } ?>
        </ul>

        <?php if ($prev_href || $next_href) { ?>
        <ul class="bo_v_nb">
            <?php if ($prev_href) { ?><li class="btn_prv"><span class="nb_tit"><i class="fa fa-caret-up" aria-hidden="true"></i> 이전글</span><a href="<?php echo $prev_href ?>">이전글제목입니다.</a> <span class="nb_date">17.07.14</span></li><?php } ?>
            <?php if ($next_href) { ?><li class="btn_next"><span class="nb_tit"><i class="fa fa-caret-down" aria-hidden="true"></i> 다음글</span><a href="<?php echo $next_href ?>">다음글제목입니다.</a>  <span class="nb_date">17.07.14</span></li><?php } ?>
        </ul>
        <?php } ?>
        <?php
        $link_buttons = ob_get_contents();
        ob_end_flush();
         ?>
    </div>
    <!-- } 게시물 상단 버튼 끝 -->

    <?php
    // 코멘트 입출력
    include_once(G5_BBS_PATH.'/view_comment.php');
     ?>


</article>
<!-- } 게시판 읽기 끝 -->

<script>
<?php if ($board['bo_download_point'] < 0) { ?>
$(function() {
    $("a.view_file_download").click(function() {
        if(!g5_is_member) {
            alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");
            return false;
        }

        var msg = "파일을 다운로드 하시면 포인트가 차감(<?php echo number_format($board['bo_download_point']) ?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";

        if(confirm(msg)) {
            var href = $(this).attr("href")+"&js=on";
            $(this).attr("href", href);

            return true;
        } else {
            return false;
        }
    });
});
<?php } ?>

function board_move(href)
{
    window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}
</script>

<script>
$(function() {
    $("a.view_image").click(function() {
        window.open(this.href, "large_image", "location=yes,links=no,toolbar=no,top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
        return false;
    });

    // 추천, 비추천
    $("#good_button, #nogood_button").click(function() {
        var $tx;
        if(this.id == "good_button")
            $tx = $("#bo_v_act_good");
        else
            $tx = $("#bo_v_act_nogood");

        excute_good(this.href, $(this), $tx);
        return false;
    });

    // 이미지 리사이즈
    $("#bo_v_atc").viewimageresize();

    //sns공유
    $(".btn_share").click(function(){
        $("#bo_v_sns").fadeIn();
   
    });

    $(document).mouseup(function (e) {
        var container = $("#bo_v_sns");
        if (!container.is(e.target) && container.has(e.target).length === 0){
        container.css("display","none");
        }   
    });
});

function excute_good(href, $el, $tx)
{
    $.post(
        href,
        { js: "on" },
        function(data) {
            if(data.error) {
                alert(data.error);
                return false;
            }

            if(data.count) {
                $el.find("strong").text(number_format(String(data.count)));
                if($tx.attr("id").search("nogood") > -1) {
                    $tx.text("이 글을 비추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                } else {
                    $tx.text("이 글을 추천하셨습니다.");
                    $tx.fadeIn(200).delay(2500).fadeOut(200);
                }
            }
        }, "json"
    );
}
</script>
<!-- } 게시글 읽기 끝 -->
로그인 후 평가할 수 있습니다

답변에 대한 댓글 2개

s
salero
7개월 전
이부분이 안되니 게시글 수정메뉴도 안보이고.. 정말 불편하네요. 꼭 좀도와주세요
닥본사
7개월 전
PHP버전이 어떻게되시나요?

일단 소스로봐서는

<!-- 본문 내용 시작 { -->
<div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>
<?php//echo $view['rich_content']; // 과 같은 코드를 사용할 경우 ?>
<!-- } 본문 내용 끝 -->

여기 아래쪽으로 문제가 있어보입니다

썸네일 include하는 최상단에
error_reporting(E_ALL);
ini_set('display_errors', '1');
넣어보시면 오류가보일겁니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인