최신글 질문 정보
최신글 질문본문
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.latset_main_wrap {width:236px; }
.latest_main_title {float:left;width:100%; height:28px; line-height:28px;font-size:13pt;}
.latest_main_title_more {float:right; margin-top:-14px;}
</style>
<div class='latest_main_wrap'>
<div style='cursor:pointer;' onclick="javascript:location.href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'">
<div class='latest_main_title'>
<strong> <?=$board[bo_subject]?></strong>
</div>
<div class='latest_main_title_more'><a>more</a></div>
<div class='clear'></div>
</div>
<hr style='border:1px solid black;'/>
<? for ($i=0; $i<10; $i++) { ?>
<div style='float:left; width:100%;padding:3px 0;' title='by. <?=$list[$i]['wr_name']?>'>
<div style='float:left;'>·
<?
if($list[$i]['subject']) {
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
echo " " . $list[$i]['icon_new'];
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
} else {
echo "게시글이 없습니다.";
}
?>
</div>
<div style='float:right;'><?=$list[$i]['datetime2']?>
</div>
</div>
<? } ?>
<div class='clear'></div>
</div>
latest.skin.php 파일 내용인데요.
스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=132778&sca=%EC%B5%9C%EC%8B%A0%EA%B8%80&page=8
입니다.
여기서
/* <?=latest('스킨폴더명', '테이블명', 불러올게시물수, 글자수)?> */
<?=latest('main_latest', '테이블명', 2, 39)?>
이부분을 어디에다가 적용을 시켜야 하나요?
/* <?=latest('스킨폴더명', '테이블명', 불러올게시물수, 글자수)?> */ << 이부분은 빼고
<?=latest('main_latest', '테이블명', 2, 39)?> << 이것만 적용 시키면 되죠?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<style>
.latset_main_wrap {width:236px; }
.latest_main_title {float:left;width:100%; height:28px; line-height:28px;font-size:13pt;}
.latest_main_title_more {float:right; margin-top:-14px;}
</style>
<div class='latest_main_wrap'>
<div style='cursor:pointer;' onclick="javascript:location.href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'">
<div class='latest_main_title'>
<strong> <?=$board[bo_subject]?></strong>
</div>
<div class='latest_main_title_more'><a>more</a></div>
<div class='clear'></div>
</div>
<hr style='border:1px solid black;'/>
<? for ($i=0; $i<10; $i++) { ?>
<div style='float:left; width:100%;padding:3px 0;' title='by. <?=$list[$i]['wr_name']?>'>
<div style='float:left;'>·
<?
if($list[$i]['subject']) {
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";
echo " " . $list[$i]['icon_new'];
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
} else {
echo "게시글이 없습니다.";
}
?>
</div>
<div style='float:right;'><?=$list[$i]['datetime2']?>
</div>
</div>
<? } ?>
<div class='clear'></div>
</div>
latest.skin.php 파일 내용인데요.
스킨은
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=132778&sca=%EC%B5%9C%EC%8B%A0%EA%B8%80&page=8
입니다.
여기서
/* <?=latest('스킨폴더명', '테이블명', 불러올게시물수, 글자수)?> */
<?=latest('main_latest', '테이블명', 2, 39)?>
이부분을 어디에다가 적용을 시켜야 하나요?
/* <?=latest('스킨폴더명', '테이블명', 불러올게시물수, 글자수)?> */ << 이부분은 빼고
<?=latest('main_latest', '테이블명', 2, 39)?> << 이것만 적용 시키면 되죠?
Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, null given in /home/kagla/new-sir/old/lib/common.lib.php:2339 Stack trace: #0 /home/kagla/new-sir/old/lib/common.lib.php(2339): mysqli_fetch_assoc() #1 /home/kagla/new-sir/old/skin/board/v16/view.skin.php(795): sql_fetch_array() #2 /home/kagla/new-sir/old/bbs/view.php(403): include_once('...') #3 /home/kagla/new-sir/old/bbs/board.php(300): include_once('...') #4 {main} thrown in /home/kagla/new-sir/old/lib/common.lib.php on line 2339