최근게시물 게시판 위에 한문이 나오네요. 정보
최근게시물 게시판 위에 한문이 나오네요.본문
최근게시물 위에 한문이 나오는데 오류가 어디서 발생하는지 몇시간째 찾지를 못하겠네요.
답변좀 부탁드리겠습니다.
수고하십시오.
latest.skin.php (아래소스)
----------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "310"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-family:굴림; font-size:8pt; color:#636363;line-height:90%;}
</style>
<table width='<?=$latest_width?>' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td height='3' colspan='3'></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width='20' height='25' style='padding-left:2px; padding-top:2px;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' width='9' height='9' border='0'></td>
<td width='<?=$latest_width-90?>' style='padding-top:3px;' class='la_he'>
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;text-decoration:none;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;text-decoration:none;' ";
$subject = "<span $style>".cut_str($list[$i][subject],57)."</span>"; //제목 글자수 자르기
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
// echo " " . $list[$i][icon_new];
echo "</a>";
?>
</td>
<td width='70' align='center' class='la_he' style='padding-top:3px;'><span style='font-size:8pt; color:#999999;'><?=$list[$i][datetime]?></span>
</td>
</tr>
<tr><td height='1' colspan='3' background='<?=$latest_skin_path?>/img/line.gif'></td></tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=3 align=center height=100><font color=#6A6A6A>게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
-------------------------------------------------------
아래 tab.php 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/tab_img"; //이미지 경로
$tab_bo1 = "1004"; //처음 출력될 게시판 ID
$tab_bo2 = "1004yoj"; //공지 게시판 ID
//$tab_bo3 = "news"; //질답 게시판 ID
//$tab_bo4 = "after"; //질답 게시판 ID
?><head>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 2; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.jpg";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.jpg";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
</head>
<style>
.la { font-family:굴림; font-size:9pt; color:#636363;}
</style>
<table width="320" border=0 cellpadding=0 cellspacing=0>
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>">
<img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.jpg" width="72" height="29" border="0">
</a></td>
<td valign="top"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>">
<img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.jpg" width="64" height="29" border="0"></a></td>
<td valign="top">
<img src="<?=$tab_img?>/ratest_left_03.jpg" width="184" height="29" alt=""></td>
</tr>
<tr>
<td colspan='8'>
<div id="tab_view1">
<?=latest('dada_latest',$tab_bo1, 5, 100); //제목길이는 최신글 스킨에서 수정요 ?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('dada_latest',$tab_bo2, 5, 100);?>
</div>
</td>
</tr>
</table>
답변좀 부탁드리겠습니다.
수고하십시오.
latest.skin.php (아래소스)
----------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$latest_width = "310"; //탭메뉴 폭과 같게
?>
<style>
.la_he { font-family:굴림; font-size:8pt; color:#636363;line-height:90%;}
</style>
<table width='<?=$latest_width?>' cellpadding='0' cellspacing='0' border='0'>
<tr>
<td height='3' colspan='3'></td>
</tr>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width='20' height='25' style='padding-left:2px; padding-top:2px;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' width='9' height='9' border='0'></td>
<td width='<?=$latest_width-90?>' style='padding-top:3px;' class='la_he'>
<?
$style = "font-family:돋움; font-size:9pt; color:#636363;text-decoration:none;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;text-decoration:none;' ";
$subject = "<span $style>".cut_str($list[$i][subject],57)."</span>"; //제목 글자수 자르기
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}' title='{$list[$i][subject]}' onfocus='this.blur()'>{$subject}";
if ($list[$i][comment_cnt])
echo " <span style='font-size:8pt; color:#9A9A9A;'>{$list[$i][comment_cnt]}</span>";
// echo " " . $list[$i][icon_new];
echo "</a>";
?>
</td>
<td width='70' align='center' class='la_he' style='padding-top:3px;'><span style='font-size:8pt; color:#999999;'><?=$list[$i][datetime]?></span>
</td>
</tr>
<tr><td height='1' colspan='3' background='<?=$latest_skin_path?>/img/line.gif'></td></tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=3 align=center height=100><font color=#6A6A6A>게시물이 없습니다.</font></td></tr><? } ?>
</tr>
</table>
-------------------------------------------------------
아래 tab.php 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/tab_img"; //이미지 경로
$tab_bo1 = "1004"; //처음 출력될 게시판 ID
$tab_bo2 = "1004yoj"; //공지 게시판 ID
//$tab_bo3 = "news"; //질답 게시판 ID
//$tab_bo4 = "after"; //질답 게시판 ID
?><head>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 2; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.jpg";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.jpg";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
</head>
<style>
.la { font-family:굴림; font-size:9pt; color:#636363;}
</style>
<table width="320" border=0 cellpadding=0 cellspacing=0>
<tr>
<td><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo1?>">
<img id="tab_bar1" style="cursor:pointer;" onMouseOver="tab_img_change(1)" src="<?=$tab_img?>/tab1_on.jpg" width="72" height="29" border="0">
</a></td>
<td valign="top"><a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo2?>">
<img id="tab_bar2" style="cursor:pointer;" onMouseOver="tab_img_change(2)" src="<?=$tab_img?>/tab2_off.jpg" width="64" height="29" border="0"></a></td>
<td valign="top">
<img src="<?=$tab_img?>/ratest_left_03.jpg" width="184" height="29" alt=""></td>
</tr>
<tr>
<td colspan='8'>
<div id="tab_view1">
<?=latest('dada_latest',$tab_bo1, 5, 100); //제목길이는 최신글 스킨에서 수정요 ?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('dada_latest',$tab_bo2, 5, 100);?>
</div>
</td>
</tr>
</table>
댓글 전체
저 한자를 복사해서 전체 문서에서 찾기해도 안나온다면
보통 인코딩에 문제가 있어서 그런거 아닐까요?
가령 스킨은 euc-kr인데 호스팅은 UTF-8이라던지....
암튼 그런게 호환안되서 생기는거 같네여.
보통 인코딩에 문제가 있어서 그런거 아닐까요?
가령 스킨은 euc-kr인데 호스팅은 UTF-8이라던지....
암튼 그런게 호환안되서 생기는거 같네여.
문자셋에 대해서 잘 모르겠다면 모든 주석의 한글 삭제