1:1문의 게시판 View.skin.php 파일만 css가 안먹는 것 같습니다. 채택완료
허접제국님이 올려주신 ( http://sir.kr/g5_skin/2230">http://sir.kr/g5_skin/2230 ) 1:1문의 게시판을 적용 사용하려고 하는데요~
리스트, 글쓰기 화면은 잘 구현되나, 뷰페이지만 깨져서 나오네요~
basic 스킨의 소스를 그대로 옮겨봐도 깨져서 나오는데. 뭐가 문제인지 통 모르겠습니다. ㅠㅠ
게시판 내용만 깨지는 것이 아니고 , 메뉴부터 모두 가 깨지니~ ㅠㅠ 어떤 것 부터 손봐야 할지 막막하네요~ㅠㅠ
길읽은 어린양~ 도움좀 부탁드립니다~ㅠㅠ



목록화면, 글쓰기 화면은 정상으로 나오나, 뷰페이지만 CSS가 적용이안되는 건지 모르겠습니다.
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('', 0);
if(!$is_admin){
//if($member[mb_id]!=$view[mb_10]){
if($member[mb_id]!=$view[wr_10]){
alert("관리자와 글쓴이만 볼 수 있습니다.");
exit;
}
}
?>
if ($category_name) echo $view['ca_name'].' | '; // 분류 출력 끝
echo cut_str(get_text($view['wr_subject']), 70); // 글제목 출력
?>
페이지 정보
작성자
작성일
조회회
댓글건
if ($view['file']['count']) {
$cnt = 0;
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']) { ?>
![]()
()
회 다운로드
DATE :
}
}
?>
if (implode('', $view['link'])) {
?>
관련링크

회 연결
// 링크
$cnt = 0;
for ($i=1; $i<=count($view['link']); $i++) {
if ($view['link'][$i]) {
$cnt++;
$link = cut_str($view['link'][$i], 70);
?>
}
}
?>
ob_start();
?>
$link_buttons = ob_get_contents();
ob_end_flush();
?>
본문
// 파일 출력
$v_img_count = count($view['file']);
if($v_img_count) {
echo "
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 "
}
?>
if($board['bo_use_good'] || $board['bo_use_nogood']) {
?>
추천
비추천
}
}
?>
include_once(G5_SNS_PATH."/view.sns.skin.php");
?>
// 코멘트 입출력
include_once('./view_comment.php');
?>
$(function() {
$("a.view_file_download").click(function() {
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"
);
}
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인