2026, 새로운 도약을 시작합니다.

그누보드 게시글 끌어올리기 (점프기능) 사용법 알려주시면 감사하겠습니다!! 채택완료

<?php

if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once(G5_LIB_PATH.'/thumbnail.lib.php');



// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/skin/board/gx_ptop_basic/style.css">', 0);

?>



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



<!-- 게시물 읽기 시작 { -->



<article id="bo_v" style="width:<?php echo $width; ?>">

&nbsp; &nbsp; <header>

&nbsp; &nbsp; &nbsp; &nbsp; <h2 id="bo_v_title">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($category_name) { ?>

<span class="bo_v_cate"><?php echo $view['ca_name']; // 분류 출력 끝 ?></span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="bo_v_tit naF_sq">

<?php echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력 ?>

</span>

&nbsp; &nbsp; &nbsp; &nbsp; </h2>

&nbsp; &nbsp; </header>



&nbsp; &nbsp; <section id="bo_v_info">

&nbsp; &nbsp; &nbsp; &nbsp; <h2>페이지 정보</h2>

&nbsp; &nbsp; &nbsp; &nbsp; <div class="profile_info">

&nbsp; &nbsp; &nbsp; &nbsp; <div class="pf_img"><?php echo get_member_profile_img($view['mb_id']) ?></div>

&nbsp; &nbsp; &nbsp; &nbsp; <div class="profile_info_ct">

&nbsp; &nbsp; &nbsp; &nbsp; <span class="sound_only">작성자</span> <strong><?php echo $view['name'] ?><?php if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>


&nbsp; &nbsp; &nbsp; <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>

&nbsp; &nbsp; &nbsp; &nbsp; <span class="sound_only">조회</span><strong><i class="fa fa-eye" aria-hidden="true"></i> <?php echo number_format($view['wr_hit']) ?>회</strong>

&nbsp; &nbsp; &nbsp; &nbsp; <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>

&nbsp; &nbsp; </div>

&nbsp; &nbsp; </div>



&nbsp; &nbsp; <!-- 게시물 상단 버튼 시작 { -->

&nbsp; &nbsp; <div id="bo_v_top">

&nbsp; &nbsp; &nbsp; &nbsp; <?php ob_start(); ?>



&nbsp; &nbsp; &nbsp; &nbsp; <ul class="btn_bo_user bo_v_com">

<li><a href="<?php echo $list_href ?>" class="btn_b01 btn" title="목록"><i class="fa fa-list" aria-hidden="true"></i><span class="sound_only">목록</span></a></li>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($reply_href) { ?><li><a href="<?php echo $reply_href ?>" class="btn_b01 btn" title="답변"><i class="fa fa-reply" aria-hidden="true"></i><span class="sound_only">답변</span></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b01 btn" title="글쓰기"><i class="fa fa-pencil" aria-hidden="true"></i><span class="sound_only">글쓰기</span></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; <?php if($update_href || $delete_href || $copy_href || $move_href || $search_href) { ?>

&nbsp; &nbsp; &nbsp; &nbsp; <li>

&nbsp; &nbsp; &nbsp; &nbsp; <button type="button" class="btn_more_opt is_view_btn btn_b01 btn"><i class="fa fa-ellipsis-v" aria-hidden="true"></i><span class="sound_only">게시판 리스트 옵션</span></button>

&nbsp; &nbsp; &nbsp; &nbsp; <ul class="more_opt is_view_btn">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($update_href) { ?><li><a href="<?php echo $update_href ?>">수정<i class="fa fa-pencil-square-o" aria-hidden="true"></i></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($delete_href) { ?><li><a href="<?php echo $delete_href ?>" onclick="del(this.href); return false;">삭제<i class="fa fa-trash-o" aria-hidden="true"></i></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($copy_href) { ?><li><a href="<?php echo $copy_href ?>" onclick="board_move(this.href); return false;">복사<i class="fa fa-files-o" aria-hidden="true"></i></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($move_href) { ?><li><a href="<?php echo $move_href ?>" onclick="board_move(this.href); return false;">이동<i class="fa fa-arrows" aria-hidden="true"></i></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($search_href) { ?><li><a href="<?php echo $search_href ?>">검색<i class="fa fa-search" aria-hidden="true"></i></a></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; </ul>

&nbsp; &nbsp; &nbsp; &nbsp; </li>

&nbsp; &nbsp; &nbsp; &nbsp; <?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; </ul>

&nbsp; &nbsp; &nbsp; &nbsp; <script>



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jQuery(function($){

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // 게시판 보기 버튼 옵션

$(".btn_more_opt.is_view_btn").on("click", function(e) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; e.stopPropagation();

&nbsp; &nbsp; $(".more_opt.is_view_btn").toggle();

})

;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(document).on("click", function (e) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!$(e.target).closest('.is_view_btn').length) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(".more_opt.is_view_btn").hide();

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </script>

&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; $link_buttons = ob_get_contents();

&nbsp; &nbsp; &nbsp; &nbsp; ob_end_flush();

?>

&nbsp; &nbsp; </div>

&nbsp; &nbsp; <!-- } 게시물 상단 버튼 끝 -->

&nbsp; &nbsp; </section>



&nbsp; &nbsp; <section id="bo_v_atc">

&nbsp; &nbsp; &nbsp; &nbsp; <h2 id="bo_v_atc_title">본문</h2>

&nbsp; &nbsp; &nbsp; &nbsp; <div id="bo_v_share">

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

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

&nbsp; &nbsp; </div>



&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; // 파일 출력

&nbsp; &nbsp; &nbsp; &nbsp; $v_img_count = count($view['file']);

&nbsp; &nbsp; &nbsp; &nbsp; if($v_img_count) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "<div id=\"bo_v_img\">\n";



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($view['file'] as $view_file) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo get_file_thumbnail($view_file);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo "</div>\n";

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; ?>



&nbsp; &nbsp; &nbsp; &nbsp; <!-- 본문 내용 시작 { -->

&nbsp; &nbsp; &nbsp; &nbsp; <div id="bo_v_con"><?php echo get_view_thumbnail($view['content']); ?></div>

&nbsp; &nbsp; &nbsp; &nbsp; <?php //echo $view['rich_content']; // {이미지:0} 과 같은 코드를 사용할 경우 ?>

&nbsp; &nbsp; &nbsp; &nbsp; <!-- } 본문 내용 끝 -->



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





&nbsp; &nbsp; &nbsp; &nbsp; <!--&nbsp; 추천 비추천 시작 { -->

&nbsp; &nbsp; &nbsp; &nbsp; <?php if ( $good_href || $nogood_href) { ?>

&nbsp; &nbsp; &nbsp; &nbsp; <div id="bo_v_act">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($good_href) { ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="bo_v_act_gng">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="<?php echo $good_href.'&'.$qstr ?>" id="good_button" class="bo_v_good"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></a>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b id="bo_v_act_good"></b>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if ($nogood_href) { ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="bo_v_act_gng">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="<?php echo $nogood_href.'&'.$qstr ?>" id="nogood_button" class="bo_v_nogood"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></a>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b id="bo_v_act_nogood"></b>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; </div>

&nbsp; &nbsp; &nbsp; &nbsp; <?php } else {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($board['bo_use_good'] || $board['bo_use_nogood']) {

&nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; <div id="bo_v_act">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if($board['bo_use_good']) { ?><span class="bo_v_good"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i><span class="sound_only">추천</span><strong><?php echo number_format($view['wr_good']) ?></strong></span><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php if($board['bo_use_nogood']) { ?><span class="bo_v_nogood"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i><span class="sound_only">비추천</span><strong><?php echo number_format($view['wr_nogood']) ?></strong></span><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; </div>

&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; <!-- }&nbsp; 추천 비추천 끝 -->

&nbsp; &nbsp; </section>



&nbsp; &nbsp; <?php

&nbsp; &nbsp; $cnt = 0;

&nbsp; &nbsp; if ($view['file']['count']) {

&nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i<count($view['file']); $i++) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cnt++;

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; }

?>



&nbsp; &nbsp; <?php if($cnt) { ?>

&nbsp; &nbsp; <!-- 첨부파일 시작 { -->

&nbsp; &nbsp; <section id="bo_v_file">

&nbsp; &nbsp; &nbsp; &nbsp; <h2>첨부파일</h2>

&nbsp; &nbsp; &nbsp; &nbsp; <ul>

&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; // 가변 파일

&nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i<count($view['file']); $i++) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {

&nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <li>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <i class="fa fa-folder-open" aria-hidden="true"></i>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="<?php echo $view['file'][$i]['href'];&nbsp; ?>" class="view_file_download">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><?php echo $view['file'][$i]['source'] ?></strong> <?php echo $view['file'][$i]['content'] ?> (<?php echo $view['file'][$i]['size'] ?>)

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="bo_v_file_cnt"><?php echo $view['file'][$i]['download'] ?>회 다운로드 | DATE : <?php echo $view['file'][$i]['datetime'] ?></span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>

&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; </ul>

&nbsp; &nbsp; </section>

&nbsp; &nbsp; <!-- } 첨부파일 끝 -->

&nbsp; &nbsp; <?php } ?>



&nbsp; &nbsp; <?php if(isset($view['link']) && array_filter($view['link'])) { ?>

&nbsp; &nbsp; <!-- 관련링크 시작 { -->

&nbsp; &nbsp; <section id="bo_v_link">

&nbsp; &nbsp; &nbsp; &nbsp; <h2>관련링크</h2>

&nbsp; &nbsp; &nbsp; &nbsp; <ul>

&nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; // 링크

&nbsp; &nbsp; &nbsp; &nbsp; $cnt = 0;

&nbsp; &nbsp; &nbsp; &nbsp; for ($i=1; $i<=count($view['link']); $i++) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($view['link'][$i]) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cnt++;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $link = cut_str($view['link'][$i], 70);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <li>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <i class="fa fa-link" aria-hidden="true"></i>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="<?php echo $view['link_href'][$i] ?>" target="_blank">

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong><?php echo $link ?></strong>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </a>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;


&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="bo_v_link_cnt"><?php echo $view['link_hit'][$i] ?>회 연결</span>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?php

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; ?>

&nbsp; &nbsp; &nbsp; &nbsp; </ul>

&nbsp; &nbsp; </section>

&nbsp; &nbsp; <!-- } 관련링크 끝 -->

&nbsp; &nbsp; <?php } ?>

&nbsp; &nbsp;

&nbsp; &nbsp; <?php if ($prev_href || $next_href) { ?>

&nbsp; &nbsp; <ul class="bo_v_nb">

&nbsp; &nbsp; &nbsp; &nbsp; <?php if ($prev_href) { ?><li class="btn_prv"><span class="nb_tit"><i class="fa fa-chevron-up" aria-hidden="true"></i> 이전글</span><a href="<?php echo $prev_href ?>"><?php echo $prev_wr_subject;?></a> <span class="nb_date"><?php echo str_replace('-', '.', substr($prev_wr_date, '2', '8')); ?></span></li><?php } ?>

&nbsp; &nbsp; &nbsp; &nbsp; <?php if ($next_href) { ?><li class="btn_next"><span class="nb_tit"><i class="fa fa-chevron-down" aria-hidden="true"></i> 다음글</span><a href="<?php echo $next_href ?>"><?php echo $next_wr_subject;?></a>&nbsp; <span class="nb_date"><?php echo str_replace('-', '.', substr($next_wr_date, '2', '8')); ?></span></li><?php } ?>

&nbsp; &nbsp; </ul>

&nbsp; &nbsp; <?php } ?>



&nbsp; &nbsp; <?php

&nbsp; &nbsp; // 코멘트 입출력

&nbsp; &nbsp; include_once(G5_BBS_PATH.'/view_comment.php');

?>

</article>

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



<script>

<?php if ($board['bo_download_point'] < 0) { ?>

$(function() {

&nbsp; &nbsp; $("a.view_file_download").click(function() {

&nbsp; &nbsp; &nbsp; &nbsp; if(!g5_is_member) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;

&nbsp; &nbsp; &nbsp; &nbsp; }



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



&nbsp; &nbsp; &nbsp; &nbsp; if(confirm(msg)) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var href = $(this).attr("href")+"&js=on";

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $(this).attr("href", href);



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;

&nbsp; &nbsp; &nbsp; &nbsp; } else {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;

&nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; });

});

<?php } ?>



function board_move(href)

{

&nbsp; &nbsp; window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");

}

</script>



<script>

$(function() {

&nbsp; &nbsp; $("a.view_image").click(function() {

&nbsp; &nbsp; &nbsp; &nbsp; 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");

&nbsp; &nbsp; &nbsp; &nbsp; return false;

&nbsp; &nbsp; });



&nbsp; &nbsp; // 추천, 비추천

&nbsp; &nbsp; $("#good_button, #nogood_button").click(function() {

&nbsp; &nbsp; &nbsp; &nbsp; var $tx;

&nbsp; &nbsp; &nbsp; &nbsp; if(this.id == "good_button")

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx = $("#bo_v_act_good");

&nbsp; &nbsp; &nbsp; &nbsp; else

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx = $("#bo_v_act_nogood");



&nbsp; &nbsp; &nbsp; &nbsp; excute_good(this.href, $(this), $tx);

&nbsp; &nbsp; &nbsp; &nbsp; return false;

&nbsp; &nbsp; });



&nbsp; &nbsp; // 이미지 리사이즈

&nbsp; &nbsp; $("#bo_v_atc").viewimageresize();

});



function excute_good(href, $el, $tx)

{

&nbsp; &nbsp; $.post(

&nbsp; &nbsp; &nbsp; &nbsp; href,

&nbsp; &nbsp; &nbsp; &nbsp; { js: "on" },

&nbsp; &nbsp; &nbsp; &nbsp; function(data) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(data.error) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(data.error);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }



&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(data.count) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $el.find("strong").text(number_format(String(data.count)));

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($tx.attr("id").search("nogood") > -1) {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx.text("이 글을 비추천하셨습니다.");

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx.fadeIn(200).delay(2500).fadeOut(200);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx.text("이 글을 추천하셨습니다.");

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tx.fadeIn(200).delay(2500).fadeOut(200);

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }

&nbsp; &nbsp; &nbsp; &nbsp; }, "json"

&nbsp; &nbsp; );

}

</script>

<!-- } 게시글 읽기 끝 -->





제가원하는 기능은 해당 게시물은 작성자 or 어드민만 점프기능을 사용할 수 있고

하루 5번의 제한을 두고 싶습니다. 게시글 끌어올리기 기능을 사용하고싶은데 개발초보라 어디 정보도 없고해서 그누보드 게시판 여러분들께 질문남겨놓습니다.

답변 1개

채택된 답변
+20 포인트

답변에 대한 댓글 3개

너무 감사합니다. 예전에도 미니님한테 도움받은적이있었는데 이렇게 또 한번 도움을 받네요 ㅎㅎ
우푸님

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

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

로그인
🐛 버그신고