게시판 목록에 본문 이미지 노출 안되게 할 수 없나요?
본문
스마트에디터로 본문에 이미지를 올리면 게시판 목록에 노출이 되면서 왼쪽에 불쑥 튀어나옵니다.
본문에 텍스트는 노출이 안되는데 이미지만 노출이 되버려요. 이미지도 노출이 안되게 하는 방법
없을까요?
그리고 위에 이력서 공개란이 왼쪽으로 틀어져있고 이력서란만 다른 카테고리처럼 색이 없는데요.
다른 부분들 처럼 색 들어가고 중앙으로 정렬하는 방법 좀 알려주세요.
또 맨위 공지. 비밀글이 위쪽으로 올라가있는데요. 좀내려서 보기 좋게 정렬할 수 없을까요.
쓰다보니 질문이 두서없이 많았네요.. 초보라서 답변 좀 부탁드릴게요.
답변 4
1. 사용하신 스킨의 문제인 것 같습니다. 어떤 스킨을 사용하시는지를 안 알려주시면 도와드릴 방법이 없습니다.
2. 테이블 내 해당 부분(<td>와 </td>사이)에 다음 코드를 넣어보세요. <p style="text-align:center;">내용</p>
이력서 공개는 해당 class 부분이 적용이 안되어 있는듯 보여지며 해당 이미지는 스마트에디터 등록된 상황에서 나오는 이미지 부분의 스크립트가 있는듯 한데 그 부분을 제거해 주셔야 할듯 합니다.
해당 스킨의 list.skin.php 파일에 <img 관련된 코드 보세요. 소스 안보고는 모릅니다.
input checkbox type 은 정렬시 스타일을 이용해 정렬하는 방법이 있습니다.
답변 감사드립니다. 추가 설명 드리자면 게시판 스킨은 P_form2 이며 리스트스킨 php 소스는 이렇습니다.
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include (G5_SKIN_PATH.'/multi_category/lib.php');
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
$colspan = 5;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$board_skin_url.'/style.css">', 0);
?>
<? if(G5_IS_MOBILE){?>
<!--<h3 id="container_title">선수이력서<span class="sound_only"> 목록</span></h3>-->
<? } else { ?>
<? } ?>
<!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크
<div class="board_top">
<div style="padding-top:20px;padding-bottom:20px;verticul-align:middle; text-align:center;border:10px solid #f3f3f3;">
<?php echo MC::category_search_form($sca);?>
</div>
</div> -->
<div style="height:10px;"></div>
<!-- 게시판 목록 시작 { -->
<div id="bo_list" style="width:<?php echo $width; ?>">
<?php if($is_category) include_once($board_skin_path.'/category.skin.php'); // 카테고리 ?>
<!-- 게시판 페이지 정보 및 버튼 시작 { -->
<div class="bo_fx">
<p>
BONEHOST.BOX <b><?php echo number_format($total_count);?></b> / Page<b><?php echo $page;?></b>
</p>
<?php if ($rss_href || $write_href) { ?>
<ul class="btn_bo_user">
<?php if ($rss_href) { ?><li><a href="<?php echo $rss_href ?>" class="btn_b01">RSS</a></li><?php } ?>
<?php if ($admin_href) { ?><li><a href="<?php echo $admin_href ?>" class="btn_admin">관리자</a></li><?php } ?>
</ul>
<?php } ?>
</div>
<!-- } 게시판 페이지 정보 및 버튼 끝 -->
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sfl" value="<?php echo $sfl ?>">
<input type="hidden" name="stx" value="<?php echo $stx ?>">
<input type="hidden" name="spt" value="<?php echo $spt ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sst" value="<?php echo $sst ?>">
<input type="hidden" name="sod" value="<?php echo $sod ?>">
<input type="hidden" name="page" value="<?php echo $page ?>">
<input type="hidden" name="sw" value="">
<?php
$list_skin_file = (G5_IS_MOBILE) ? 'list.skin.mobile.php' : 'list.skin.pc.php';
include_once($board_skin_path.'/'.$list_skin_file);
?>
<?php if ($list_href || $is_checkbox || $write_href) { ?>
<div class="bo_fx">
<?php if ($is_checkbox) { ?>
<ul class="btn_bo_adm">
<li><input type="submit" name="btn_submit" value="선택삭제" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택복사" onclick="document.pressed=this.value"></li>
<li><input type="submit" name="btn_submit" value="선택이동" onclick="document.pressed=this.value"></li>
</ul>
<?php } ?>
<?php if ($list_href || $write_href) { ?>
<ul class="btn_bo_user">
<?php if ($list_href) { ?><li><a href="<?php echo $list_href ?>" class="btn_b01">목록</a></li><?php } ?>
<?php if ($write_href) { ?><li><a href="<?php echo $write_href ?>" class="btn_b02">글쓰기</a></li><?php } ?>
</ul>
<?php } ?>
</div>
<?php } ?>
</form>
</div>
<?php if($is_checkbox) { ?>
<noscript>
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
</noscript>
<?php } ?>
<!-- 페이지 -->
<?php echo $write_pages; ?>
<!-- 게시판 검색 시작 { -->
<!--<fieldset id="bo_sch">
<legend>게시물 검색</legend>
<form name="fsearch" method="get">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
<input type="hidden" name="sca" value="<?php echo $sca ?>">
<input type="hidden" name="sop" value="and">
<label for="sfl" class="sound_only">검색대상</label>
<select name="sfl" id="sfl">
<option value="wr_subject"<?php echo get_selected($sfl, 'wr_subject', true); ?>>모집내용</option>
<option value="wr_content"<?php echo get_selected($sfl, 'wr_content'); ?>>내용</option>
<option value="wr_subject||wr_content"<?php echo get_selected($sfl, 'wr_subject||wr_content'); ?>>모집내용&내용</option>
</select>
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" value="<?php echo stripslashes($stx) ?>" required id="stx" class="frm_input required" size="15" maxlength="20">
<input type="submit" value="검색" class="btn_submit">
</form>
</fieldset>-->
<!-- } 게시판 검색 끝 -->
<?php if ($is_checkbox) { ?>
<script>
function all_checked(sw) {
var f = document.fboardlist;
for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}
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 == "선택복사") {
select_copy("copy");
return;
}
if(document.pressed == "선택이동") {
select_copy("move");
return;
}
if(document.pressed == "선택삭제") {
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다\n\n답변글이 있는 게시글을 선택하신 경우\n답변글도 선택하셔야 게시글이 삭제됩니다."))
return false;
f.removeAttribute("target");
f.action = "./board_list_update.php";
}
return true;
}
// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;
if (sw == "copy")
str = "복사";
else
str = "이동";
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<?php } ?>
<!-- } 게시판 목록 끝 -->