최신글 관련 질문... 정보
그누보드 최신글 관련 질문...본문
음..진짜 초보가 여기저기 올라온 자료 보구 짜집기 해서 만든 최신글입니다..
제가 만드는 것은 그림과 같이 카테고리와 new 아이콘, 날짜 등을 모은 최신글입니다..
함수(?)나 변수(?)도 모르구 그냥 쪼금씩 고치면서 하루걸러 원하는것을 만들긴 했는데
도저히 이미지에 있는 빨간 원안에 있는 라인을 날짜까지 연장하는 것은 모르겠습니다..
부디 보시구 어찌 고쳐야 하는지 상세히 알려 주셨으면 합니다...
* 하두 몰라서 게시판에 올라온 여러 고수님들의 소스들을 짜집기 했습니다..
다운 받느라 인사도 못 드리구....
부디 용서해 주시기를 ...^ ^
* 소스는 아래와 같습니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="370" cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td colspan=4>
<table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
<tr>
<?
if($list[$i][icon_new]){
echo "<td width=30 align=center> <img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center> <img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>
<td width=60 align=center>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
[ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
</td>
<td width='' height=20>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>
<td align=right>[ <?=$list[$i][date]?> ]</td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=2 height=5></td></tr>
</table></td>
</tr>
</table>
제가 만드는 것은 그림과 같이 카테고리와 new 아이콘, 날짜 등을 모은 최신글입니다..
함수(?)나 변수(?)도 모르구 그냥 쪼금씩 고치면서 하루걸러 원하는것을 만들긴 했는데
도저히 이미지에 있는 빨간 원안에 있는 라인을 날짜까지 연장하는 것은 모르겠습니다..
부디 보시구 어찌 고쳐야 하는지 상세히 알려 주셨으면 합니다...
* 하두 몰라서 게시판에 올라온 여러 고수님들의 소스들을 짜집기 했습니다..
다운 받느라 인사도 못 드리구....
부디 용서해 주시기를 ...^ ^
* 소스는 아래와 같습니다..
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="370" cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td colspan=4>
<table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
<tr>
<?
if($list[$i][icon_new]){
echo "<td width=30 align=center> <img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center> <img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>
<td width=60 align=center>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
[ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
</td>
<td width='' height=20>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>
<td align=right>[ <?=$list[$i][date]?> ]</td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=2 height=5></td></tr>
</table></td>
</tr>
</table>
댓글 전체
이쁘게 잘 적용 하셨네요....^_^
우와... 됩니다....
정말...감사합니다...^ ^
정말...감사합니다...^ ^
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="370" cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td align=center>
<table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=4 height=1 background='$latest_skin/dot_line.gif' border=0></td></tr>"; } ?>
<tr>
<?
if($list[$i][icon_new]){
echo "<td width=30 align=center> <img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center> <img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>
<td width=60 align=center>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
[ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
</td>
<td width='' height=20>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>
<td align=right>[ <?=$list[$i][date]?> ]</td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=4 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=4 height=5></td></tr>
</table></td>
</tr>
</table>
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="370" cellpadding=0 cellspacing=0 align=center border=0>
<tr>
<td align=center>
<table width="360" bgcolor=#FFFFFF cellpadding=0 cellspacing=0 border=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=4 height=1 background='$latest_skin/dot_line.gif' border=0></td></tr>"; } ?>
<tr>
<?
if($list[$i][icon_new]){
echo "<td width=30 align=center> <img src='$latest_skin/icon_new.gif' align=absmiddle></td>";
}else{
echo "<td width=30 align=center> <img src='$latest_skin/icon_li.gif' align=absmiddle></td>";
}
?>
<td width=60 align=center>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&sselect=ca_id&stext={$list[$i][ca_id]}"?>'>
[ <?=get_category_name($cfg[write_table_prefix] . $bo_table, $list[$i][ca_id])?> ]
</td>
<td width='' height=20>
<a href='<?="./index.php?doc=bbs/gnuboard.php&bo_table=$bo_table&wr_id={$list[$i][wr_id]}"?>'><span class=content><?=$list[$i][subject]?> <span style='font-size:8pt;'><?=$list[$i][commentcnt]?></span></span></a></td>
<td align=right>[ <?=$list[$i][date]?> ]</td>
</tr>
<? } ?>
<? if (count($list) == 0) { echo "<tr><td colspan=4 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=4 height=5></td></tr>
</table></td>
</tr>
</table>
위의 4로 바꾸라고 한곳의 그림의 width와 height 7은 지우세요
<? if (count($list) == 0) { echo "<tr><td colspan=2 align=center height=50>자료가 없습니다.</td></tr>"; } ?>
<tr><td colspan=2 height=5></td></tr>
여기도 마찬가지고 제일 상단에 있는 6번째 줄에 있는 colspan=4는 지우세요
<tr><td colspan=2 height=5></td></tr>
여기도 마찬가지고 제일 상단에 있는 6번째 줄에 있는 colspan=4는 지우세요
<? for ($i=0; $i<count($list); $i++) { ?>
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
에서 colspan=2 를 4로 바꾸어 주시고요
<? if ($i) { echo "<tr><td colspan=2 height=1 background='$latest_skin/dot_line.gif' width=7 height=7></td></tr>"; } ?>
에서 colspan=2 를 4로 바꾸어 주시고요
음.. 그래두 2, 3, 4 다 바꾸어 봤는데두 안됩니다...
부디 도와주세요...
부디 도와주세요...
td colspan=3 td가 3개인데....2이나 4로 해서 그런듯 싶네요...