최신글 질문 정보
최신글 질문본문
<?
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)?> << 이것만 적용 시키면 되죠?
댓글 전체
/* <?=latest('스킨폴더명', '테이블명', 불러올게시물수, 글자수)?> */ << 이부분은 latest 함수에 대한 사용방법에 대해 기술한 부분이기때문에 적으셔도 되고 안적으셔도 됩니다.
어차피 주석처리 되어 있으니 상관없습니다.
참고로 "테이블명"은 필히 변수선언하셔서 적용하셔야 합니다.
어차피 주석처리 되어 있으니 상관없습니다.
참고로 "테이블명"은 필히 변수선언하셔서 적용하셔야 합니다.
네 출력 시키고 싶은 곳에
<?=latest('main_latest', '테이블명', 2, 39)?>
이것만 출력 시키시면 됩니다.
테이블 명은 강한남v님이 변수선언해서 적용하라고 하셨는데 유미스님께서 이해 못하실 까봐 부연 설명 적어 보겠습니다.
게시판 클릭 시 bo_table=notice 주소창에 이 부분 보이시면 여기서 notice 가 테이블명이 됍니다.
<?=latest('main_latest', 'notice', 2, 39)?>
이렇게 바꿔서 올리시면 됩니다. notice 부분을 출력하고 싶은 게시판 아이디로 변경만 해주시면 되겠네요.
<?=latest('main_latest', '테이블명', 2, 39)?>
이것만 출력 시키시면 됩니다.
테이블 명은 강한남v님이 변수선언해서 적용하라고 하셨는데 유미스님께서 이해 못하실 까봐 부연 설명 적어 보겠습니다.
게시판 클릭 시 bo_table=notice 주소창에 이 부분 보이시면 여기서 notice 가 테이블명이 됍니다.
<?=latest('main_latest', 'notice', 2, 39)?>
이렇게 바꿔서 올리시면 됩니다. notice 부분을 출력하고 싶은 게시판 아이디로 변경만 해주시면 되겠네요.
게시판 위쪽에 최신글을 올리려고 아무리 해봐도 되지 않네요.
아래 에러는 어떻게 해결할까요.
select * from g4_write_bbs where wr_is_comment = 0 order by wr_num limit 0, 8
1146 : Table 'ktkim3534.g4_write_bbs' doesn't exist
error file : /bbs/board.php
아래 에러는 어떻게 해결할까요.
select * from g4_write_bbs where wr_is_comment = 0 order by wr_num limit 0, 8
1146 : Table 'ktkim3534.g4_write_bbs' doesn't exist
error file : /bbs/board.php