최근게시물에 대한 질문이에요 ;;
그누보드에 최초에 깔려잇는스킨을 제멋대로 굴엇는데요 ;;
나오는글 갯수를 5줄로 하고싶은데 ... 가능할까요 ?
---------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table id="__01" width="355" height="165" border="0" cellpadding="0" cellspacing="0" valign=top>
<tr>
<td colspan="2" valign=top>
<img src='<?=$latest_skin_path?>/img/test_01.jpg'></td>
</tr>
<tr>
<td>
<img src='<?=$latest_skin_path?>/img/test_02.jpg'></td>
<td>
<img src='<?=$latest_skin_path?>/img/test_03.jpg'></td>
</tr>
<tr>
<td>
<img src='<?=$latest_skin_path?>/img/test_04.jpg'></td>
<td background='<?=$latest_skin_path?>/img/test_14.jpg'>
<p><table width=100% cellpadding=0 cellspacing=0 valign=top>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center valign=top>
<table width=100%>
<tr>
<td height=15>
<?
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>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
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'];
?></td></tr>
<tr></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?></p>
나오는글 갯수를 5줄로 하고싶은데 ... 가능할까요 ?
---------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table id="__01" width="355" height="165" border="0" cellpadding="0" cellspacing="0" valign=top>
<tr>
<td colspan="2" valign=top>
<img src='<?=$latest_skin_path?>/img/test_01.jpg'></td>
</tr>
<tr>
<td>
<img src='<?=$latest_skin_path?>/img/test_02.jpg'></td>
<td>
<img src='<?=$latest_skin_path?>/img/test_03.jpg'></td>
</tr>
<tr>
<td>
<img src='<?=$latest_skin_path?>/img/test_04.jpg'></td>
<td background='<?=$latest_skin_path?>/img/test_14.jpg'>
<p><table width=100% cellpadding=0 cellspacing=0 valign=top>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center valign=top>
<table width=100%>
<tr>
<td height=15>
<?
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>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
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'];
?></td></tr>
<tr></tr>
</table></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?></p>
댓글 1개
미운오리스키
13년 전
<? for ($i=0; $i<5; $i++) { ?> 요렇게 바꿔주셔도 되긴하는데 이렇게 하시면 안되구요.. ;;
이 파일말고 실제로 최신글을 출력하는 파일있죠?
예를들어 index.php 파일이라면
해당파일을 여셔서 <?=latest('B001', 5, 20);?> 이런식으로 출력해주시면 됩니다.
B001 : 게시판테이블명
5 : 출력갯수
20 : 출력글자 길이
이 파일말고 실제로 최신글을 출력하는 파일있죠?
예를들어 index.php 파일이라면
해당파일을 여셔서 <?=latest('B001', 5, 20);?> 이런식으로 출력해주시면 됩니다.
B001 : 게시판테이블명
5 : 출력갯수
20 : 출력글자 길이
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66254 |
alexseo
|
11년 전 | 1823 | |
| 66253 | 11년 전 | 1593 | ||
| 66252 | 11년 전 | 1768 | ||
| 66251 |
aerts
|
11년 전 | 1830 | |
| 66250 |
|
11년 전 | 1741 | |
| 66249 |
하프의정령
|
11년 전 | 1716 | |
| 66248 | 11년 전 | 1580 | ||
| 66247 |
|
11년 전 | 2779 | |
| 66246 | 11년 전 | 2353 | ||
| 66245 |
포인트적립
|
11년 전 | 1765 | |
| 66244 | 11년 전 | 8402 | ||
| 66243 | 11년 전 | 4161 | ||
| 66242 |
그누초보님
|
11년 전 | 2030 | |
| 66241 |
kimch
|
11년 전 | 2186 | |
| 66240 |
하프의정령
|
11년 전 | 6367 | |
| 66239 |
하프의정령
|
11년 전 | 1973 | |
| 66238 |
cycix
|
11년 전 | 2514 | |
| 66237 | 11년 전 | 1775 | ||
| 66236 |
bismute
|
11년 전 | 1600 | |
| 66235 | 11년 전 | 1527 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기