게시판 제목 폰트 칼라에 대해 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

게시판 제목 폰트 칼라에 대해 정보

게시판 제목 폰트 칼라에 대해

본문

안녕하세요.

책하나 놓고 이리저리 검색해가며 사이트를 하나 만들고 있는데요.
게시판에 스킨을 적용하고 사이트에 맞게 조금씩 손을 보고 있는데 궁금한점이 있어 질문 올립니다.

게시판을 불러들이고 글 리스트가 나타날때 글 제목의 폰트칼라를 바꾸고 싶은데요
다운 받은 스킨에서 손봐야 되나 싶어서 여기저기 건들여 봤는데 바뀌지가 않네요

질답란을 찾아보니 목록의 폰트에 대한 수정은 스킨자료의 list.skin.php 파일을 손대면 된다해서 손을 봤는데도 답을 못찾겠군요
아래는 다운받은 스킨의 list.skin.php 란 파일의 내용이구요

여기서 손을 대는것이 아니면 그루보드 자체 파일을 손봐야하는지.. 그렇다면 어디서 손봐야는지 궁금 합니다.

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

include_once("$board_skin_path/skin.lib.php");


$thumb_width = '150';  //썸네일 폭
$thumb_height = '150'; //썸네일 높이
$thumb_quality = '100'; //썸네일 퀄리티_100 이하
if (!function_exists("imagecopyresampled")) alert("GD 2.0.1 이상 버전이 설치되어 있어야 사용할 수 있는 갤러리 게시판 입니다.");

if (!$board[bo_1]) {
    $board[bo_1] = "230";
    $sql = " update $g4[board_table] set bo_1 = '$board[bo_1]', bo_1_subj = '목록 가로 픽셀' where bo_table = '$bo_table' ";
    sql_query($sql);
}

if (!$board[bo_2]) {
    $board[bo_2] = "160";
    $sql = " update $g4[board_table] set bo_2 = '$board[bo_2]', bo_2_subj = '목록 세로 픽셀' where bo_table = '$bo_table' ";
    sql_query($sql);
}

$mod = $board[bo_gallery_cols];
$td_width = (int)(100 / $mod);

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';


@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);




?>

<link rel="stylesheet" type="text/css" href="<?=$board_skin_path?>/css/skin.css" media="screen" />
<!-- Arquivos utilizados pelo jQuery lightBox plugin -->
<link rel="stylesheet" type="text/css" href="<?=$board_skin_path?>/css/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript" src="<?=$board_skin_path?>/js/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">
$(function() {
$('#gallery .gall a').lightBox();
});
</script>


<div style="border-bottom:1px solid #272823; padding-bottom:10px; padding-top:10px; background-color:#272823;">
<? if ($is_category) { ?>

<form name='fcategory' method='get'>
<font color='#5a5a5a'>
  <? 
  $cnt_bo_1 = $bo_1[0] ? $bo_1[0] : 10; // 한줄당 분류 갯수(현재:10)
  $cnt = 1;
  $cnt0 = 0;
  $bb_s="";  $bb_e="";
  $arr = explode("|", $board[bo_category_list]); // 구분자가 , 로 되어 있음
$str = "";
$str .= "";
  $f_open="";
  $f_close="";
  for ($i=0; $i<count($arr); $i++)
  if (trim($arr[$i]))  {
$sql1 = " SELECT count(*) as cCount FROM $write_table where wr_is_comment = 0 and ca_name = '$arr[$i]' ";
  $row1 = sql_fetch($sql1);
if ($sca == $arr[$i]) { $cnt0++; $b_s="<b>";$cc=$f_open; $b_e="</b>"; } else {$b_s=""; $cc=$f_close; $b_e="";}
$str .= "<a href='./board.php?bo_table=$bo_table&sca=" . rawurlencode($arr[$i]) . "' style='color:#cccccc;'>$cc$b_s$arr[$i]$b_e</a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp; ";
if ($cnt == $cnt_bo_1) { $cnt = 0; $str .= "<br>"; }
$cnt++;
  }
  if ($cnt0 == 0 ) { $bb_s="<b>"; $bb_e="</b>"; }
  ?> 



&nbsp;&nbsp;&nbsp;&nbsp;
<? if(!$sca) { ?>
<a href="./board.php?bo_table=<?=$bo_table?>" style="color:#cccccc;"><b>전체 보기</b></a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
<? } else { ?>
<a href="./board.php?bo_table=<?=$bo_table?>" style="color:#cccccc;">전체 보기</a> &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
<? } ?>
<?=$str?>

  </form>

<? } ?>




</div>
<!-- 게시판 목록 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0"><tr><td>

<!--    <? if ($is_category) { ?><form name="fcategory" method="get"><div><select name=sca onchange="location='<?=$category_location?>'+this.value;"><option value=''>전체</option><?=$category_option?></select></div></form><? } ?>
 -->





<form name="fboardlist" method="post" style="margin:0px;">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="sfl"  value="<?=$sfl?>">
<input type="hidden" name="stx"  value="<?=$stx?>">
<input type="hidden" name="spt"  value="<?=$spt?>">
<input type="hidden" name="page" value="<?=$page?>">
<input type="hidden" name="sw"  value="">

<div id="gallery">
<table border="0" cellpadding="0" cellspacing="0" width="100%">

<!-- tr>
  <td height=30 colspan='<?=$mod?>' align="right" style="border:1px solid #ddd; height:34px; background:url(<?=$board_skin_path?>/img/title_bg.gif) repeat-x;"><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜순</a> | <?=subject_sort_link('wr_hit', $qstr2, 1)?>조회순</a> | <?=subject_sort_link('wr_good', $qstr2, 1)?>추천순</a></td>
</tr  -->

<tr>
 <?
    for ($i=0; $i<count($list); $i++) {
        if ($i && $i%$mod==0)
            echo "</tr><tr>";

        $style = "";
        $list[$i][subject] = str_replace(" ","&nbsp;",$list[$i][subject]);
$image = $list[$i][file][0][file];

        $comment_cnt = "";
        if ($list[$i][comment_cnt])
          $comment_cnt = " <a href=\"{$list[$i][comment_href]}\"><span class='commentFont'>{$list[$i][comment_cnt]}</span></a>";

        $list[$i][name] = preg_replace("/<img /", "<img style='display:none;' ", $list[$i][name]);
        $list[$i][name] = preg_replace("/> <span/", "><span", $list[$i][name]);
        $list[$i][name] = preg_replace("/class='member'/", "", $list[$i][name]);

        echo "<td width='{$td_width}%' valign=top style='word-break:break-all; padding:3px;'>";
        echo "<table align=center>";
        echo "<tr><td height=5></td></tr>";
        echo "<tr><td align=center><div style='float:left; border:1px solid #ccc; background:#fff; padding:3px; font-size:0; line-height:0;'><div class='gall'><a href='$g4[path]/data/file/$bo_table/$image'  title=".$list[$i][subject].">".makeThumbs($g4[path]."/data/file/$bo_table", $list[$i][file][0][file], $board[bo_1], $board[bo_2])."</a></div></div></td></tr>";
        //echo "<tr><td align=center style='font-size:11px; color:#888;'>Date.".$list[$i][datetime2]." / Hit.".$list[$i][wr_hit]."</td></tr>";
        echo "<tr><td align=center>";
        //if ($is_category) echo "<a href='{$list[$i][ca_name_href]}'>[{$list[$i][ca_name]}]</a> ";
        echo "<a href='{$list[$i][href]}'>{$list[$i][subject]}</a>";
        //echo " " . $list[$i][icon_new];
        //echo " " . $list[$i][icon_file];
        //echo " " . $list[$i][icon_link];
        //echo " " . $list[$i][icon_hot];
        //echo " " . $list[$i][icon_secret];
        echo "</td></tr>";
        if ($is_checkbox) echo "<tr><td align=center><input type=checkbox name=chk_wr_id[] value='{$list[$i][wr_id]}'></td></tr>";
        echo "</table></td>\n";
    }


    // 나머지 td
    $cnt = $i%$mod;
    if ($cnt)
        for ($i=$cnt; $i<$mod; $i++)
            echo "<td width='{$td_width}%'>&nbsp;</td>";
    ?>
</tr>
<tr><td colspan='<?=$mod?>' height=20></td></tr>

<? if (count($list) == 0) { echo "<tr><td colspan='$mod' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>

</table>
</div>

</form>

<div  style="margin-top:7px; height:31px;">
    <div style="float:left;">

    <? if ($is_checkbox) { ?>
    <span class="button"><a href="javascript:select_delete();">선택삭제</a></span>
    <span class="button"><a href="javascript:select_copy('copy');">선택복사</a></span>
    <span class="button"><a href="javascript:select_copy('move');">선택이동</a></span>
<? if ($is_checkbox) { ?>
<div>
<? if ($is_checkbox) { ?><input onclick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox> 전체 선택 <?}?>
</div>
<? } ?>
    <? } ?>
    </div>

    <div style="float:right;">
<? if ($admin_href) { ?><span class="button"><a href="<?=$admin_href?>">관리자</a></span><?}?>
<? if ($write_href) { ?><span class="button"><a href="<?=$write_href?>">글쓰기</a></span><? } ?>

    </div>
<div style="clear:both;"></div>
</div>


<!-- 페이지 -->
<div style="text-align:center;  margin:5px 0 10px 0; padding:5px 0;">

    <? if ($prev_part_href) { echo "<a href='$prev_part_href'><img src='$board_skin_path/img/page_search_prev.gif' border=0 align=absmiddle title='이전검색'></a>"; } ?>
    <?
    // 기본으로 넘어오는 페이지를 아래와 같이 변환하여 이미지로도 출력할 수 있습니다.
    //echo $write_pages;
    $write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
    $write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
    $write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
    $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
    $write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "<b><span style=\"color:#B3B3B3; font-size:12px;\">$1</span></b>", $write_pages);
    $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\" font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
    ?>
    <?=$write_pages?>
    <? if ($next_part_href) { echo "<a href='$next_part_href'><img src='$board_skin_path/img/page_search_next.gif' border=0 align=absmiddle title='다음검색'></a>"; } ?>

</div>

    <!-- 검색 -->
    <div class="board_search">
        <form name="fsearch" method="get">
        <input type="hidden" name="bo_table" value="<?=$bo_table?>">
        <input type="hidden" name="sca"      value="<?=$sca?>">
<input type="hidden" name="sop"      value="and">
        <select name="sfl">
            <option value="wr_subject">제목</option>
            <option value="wr_content">내용</option>
            <option value="wr_subject||wr_content">제목+내용</option>
<!--            <option value="mb_id,1">회원아이디</option>
            <option value="mb_id,0">회원아이디(코)</option>
            <option value="wr_name,1">글쓴이</option>
            <option value="wr_name,0">글쓴이(코)</option> -->
        </select>
        <input name="stx" style="height:16px; border:1px solid #ccc;" maxlength="15" itemname="검색어" required value='<?=stripslashes($stx)?>'>
        <input type="image" src="<?=$board_skin_path?>/img/btn_search.gif" border='0' align="absmiddle">

<input type="radio" name="sop" value="and">and
        <input type="radio" name="sop" value="or">or
       
</form>
    </div>


</td></tr></table>




<script type="text/javascript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$stx?>') {
    document.fsearch.sfl.value = '<?=$sfl?>';

    if ('<?=$sop?>' == 'and')
        document.fsearch.sop[0].checked = true;

    if ('<?=$sop?>' == 'or')
        document.fsearch.sop[1].checked = true;
} else {
    document.fsearch.sop[0].checked = true;
}
</script>


<? if ($is_checkbox) { ?>
<script type="text/javascript">
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 check_confirm(str) {
    var f = document.fboardlist;
    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(str + "할 게시물을 하나 이상 선택하세요.");
        return false;
    }
    return true;
}

// 선택한 게시물 삭제
function select_delete() {
    var f = document.fboardlist;

    str = "삭제";
    if (!check_confirm(str))
        return;

    if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
        return;

    f.action = "./delete_all.php";
    f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
    var f = document.fboardlist;

    if (sw == "copy")
        str = "복사";
    else
        str = "이동";
                     
    if (!check_confirm(str))
        return;

    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>
<? } ?>
<!-- 게시판 목록 끝 -->
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로