답변 4개
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('', 0);
?>
">
echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
?>
페이지 정보
- " class="btn_b01 btn" title="목록">목록
- " class="btn_b01 btn" title="답변">답변
- " class="btn_b01 btn" title="글쓰기">글쓰기
- ">수정
- " onclick="del(this.href); return false;">삭제
- " onclick="board_move(this.href); return false;">복사
- " onclick="board_move(this.href); return false;">이동
- ">검색
jQuery(function($){
// 게시판 보기 버튼 옵션
$(".btn_more_opt.is_view_btn").on("click", function(e) {
e.stopPropagation();
$(".more_opt.is_view_btn").toggle();
})
;
$(document).on("click", function (e) {
if(!$(e.target).closest('.is_view_btn').length) {
$(".more_opt.is_view_btn").hide();
}
});
});
$link_buttons = ob_get_contents();
ob_end_flush();
?>
본문
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "
\n";\n";
foreach($view['file'] as $view_file) {
echo get_file_thumbnail($view_file);
}
echo "
}
?>
if($board['bo_use_good'] || $board['bo_use_nogood']) {
?>
추천
비추천
}
}
?>
$cnt = 0;
if ($view['file']['count']) {
for ($i=0; $i
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
$cnt++;
}
}
?>
첨부파일
// 가변 파일
for ($i=0; $i
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
?>
" class="view_file_download" download>
()
회 다운로드 | DATE :
}
}
?>
관련링크
// 링크
$cnt = 0;
for ($i=1; $i<=count($view['link']); $i++) {
if ($view['link'][$i]) {
$cnt++;
$link = cut_str($view['link'][$i], 70);
?>
회 연결
}
}
?>
// 코멘트 입출력
include_once(G5_BBS_PATH.'/view_comment.php');
?>
$(function() {
$("a.view_file_download").click(function() {
if(!g5_is_member) {
alert("다운로드 권한이 없습니다.\n회원이시라면 로그인 후 이용해 보십시오.");
return false;
}
var msg = "파일을 다운로드 하시면 포인트가 차감(점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?";
if(confirm(msg)) {
var href = $(this).attr("href")+"&js=on";
$(this).attr("href", href);
return true;
} else {
return false;
}
});
});
function board_move(href)
{
window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
}
$(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();
});
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"
);
}
코드가 위에처럼 되어 있는데 어딜 건드릴지를 모르겠어요.. ㅠㅠ
댓글을 작성하려면 로그인이 필요합니다.
%3Clink%20rel%3D%22stylesheet%22%20href%3D%22'.%24board_skin_url.'%2Fstyle.css%22%3E', 0); ?>
페이지 정보
본문
\n"; foreach($view['file'] as $view_file) { echo get_file_thumbnail($view_file); } echo "\n"; } ?>첨부파일
- () 회 다운로드 | DATE :
관련링크
댓글을 작성하려면 로그인이 필요합니다.
대문에선 보이는 걸로 봐서 제대로 올라갔는데,
게시판에선 경로 상의 오류가 있는 듯 합니다.
해당 엑박 이미지 요소 검사 하셔서, 이미지가 어떤 식으로 처리되었는지 확인 후,
게시판스킨/view.skin.php 파일 열어 수정해 보세요.
답변에 대한 댓글 2개
(예)
테마 밖 basic 스킨 가정 시,
/skin/board/basic/view.skin.php
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인