최신글인데 탭으로 표시되는 겁니다.
그런데 이코드중에 출력시 최신글 하단에 1이 계속 나오더군요..
아무리 찾아봐도 1은 없는데 아래 코드중에서 1로 출력될만한 코드가 있나요?
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=84631&sca=%C3%D6%BD%C5%B1%DB&page=2 이건 제가 다운받은 원본스킨입니다.
아래코드는 1이 최신글 하단에 표시되는 PHP파일의 코드부분입니다.
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$tab_img = "{$g4[path]}/tab_img"; //이미지 경로
$tab_width = "428"; //탭메뉴 폭
$tab_gr = "커뮤니티"; //그룹명 또는 아무끼나 맴대루
$tab_bo1 = "bj"; //처음 출력될 게시판 ID
$tab_bo2 = "sh"; //공지 게시판 ID
$tab_bo3 = "kj"; //질답 게시판 ID
$tab_bo4 = "lu"; //질답 게시판 ID
?><head>
<script language="javascript">
function tab_img_change(t){
for(var i = 1; i <= 4; i++) {
img = document.getElementById('tab_bar'+i);
img.src = "<?=$tab_img?>/tab"+i+"_off.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="none";
if ( t == i ) {
img.src = "<?=$tab_img?>/tab"+i+"_on.gif";
eval("document.getElementById('tab_view"+i+"')").style.display="";
}
}
}
</script>
</head>
<style>
.la { font-family:굴림; font-size:9pt; color:#636363;}
</style>
<table width='<?=$tab_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<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_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<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.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo3?>">
<img id="tab_bar3" style="cursor:pointer;" onMouseOver="tab_img_change(3)" src="<?=$tab_img?>/tab3_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width=74 background='<?=$tab_img?>/tabbar_bg.gif'>
<a href="<?=$g4['bbs_path']?>/board.php?bo_table=<?=$tab_bo4?>">
<img id="tab_bar4" style="cursor:pointer;" onMouseOver="tab_img_change(4)" src="<?=$tab_img?>/tab4_off.gif" width="74" height="26" border="0">
</a>
</td>
<td width='<?=$tab_width-296?>' background='<?=$tab_img?>/tabbar_bg.gif' style='padding-top:3px;' class='la'><b><?//=$tab_gr?></b></td>
</tr>
<tr>
<td colspan='5'>
<div id="tab_view1">
<?=latest('bara_latest',$tab_bo1, 5, 100);?>
</div>
<div id="tab_view2" style="display: none">
<?=latest('bara_latest',$tab_bo2, 5, 100);?>
</div>
<div id="tab_view3" style="display: none">
<?=latest('bara_latest',$tab_bo3, 5, 100);?>
</div>
<div id="tab_view4" style="display: none">
<?=latest('bara_latest',$tab_bo4, 5, 100);?>
</div>
</td>
</tr>
</table>
댓글 4개
에디터(해당 응용프로그램) error입니다.
다운받으신 파일을 에디터플러스에서 unix모드로 변경후 다시저장해서 ftp올려놓으면 해결됩니다.
새로 저장하는걸 말씀하시는건가요?
그스킨을 받으신 다른분들도 같은증상이 있으시다고 하시던데요.
그리고 숫자 1이 기호로 사용되었다는 분도 계셨는데 무슨소린지 모르겠네요.