바

게시판 시간과, new아이콘이 나오게 하고싶습니다. 어떻게 해야 하나요??

· 2010-12-09 (목) 17:56:16 · 1395 · 3
Untitled-1.jpg
밑에 기본소스에서 date_time, new 아이콘이 들어가지 않아서 넣으려고 하니 어떻게 해야 하는지
모르겠네요.. 어떻게 수정을 해야 하나요??

※ 소스

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>


<nobr style='display:block; overflow:hidden; width:160;'>

<img src='images/icon.gif' align=absmiddle>  
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?><?$list[$i][$date_time]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>

<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>

답변부탁드려요..ㅜ.ㅡ

첨부파일

Untitled-1.jpg (10 KB)
0회 2010-12-09 17:56
|

댓글 3개

대에충 아래처럼 수정해 보세요.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>


<nobr style='display:block; overflow:hidden; width:160;'>

<img src='images/icon.gif' align=absmiddle> 
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][$date_time]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>

<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>

만약 안나오면 소스 중에...
<nobr style='display:block; overflow:hidden; width:160;'> <=== 요 녀석 중에 'width' 길이를 더 넓게 해 보세요. ^.^*
2010-12-09 (목) 18:24:08
그래도 date_time 값이 안나오네요..ㅠㅠ
에고 지송...
위에 것만 그대로 복사해서리... 당연히 안나오네요.
다시 아래처럼 수정해 보세요.

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td width="5"></td>
<td height=22>


<nobr style='display:block; overflow:hidden; width:160;'>

<img src='images/icon.gif' align=absmiddle> 
<a href='<?=$list[$i][href]?>'><?=$list[$i][subject]?></a>
<span style='font-family:돋움; font-size:9pt; color:#9A9A9A;'><?=$list[$i][comment_cnt]?></span></a> <?=$list[$i][datetime]?> <?=$list[$i][icon_new]?></td>
</nobr>
</tr>
<? if ($i < $rows-1) { echo "<tr><td></td><td align=center background='images/line.gif'></td></tr>"; } ?>
<? } ?>

<? if (count($list) == 0) { ?>
<tr><td align=center height=30 background="<?=$latest_skin_path?>/img/board_bg_line.gif">게시물이 없습니다.</td></tr>
<? } ?>
</table>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
10-12-09 조회 1,396
10-12-09 조회 1,720
10-12-09 조회 1,060
10-12-09 조회 1,621
10-12-09 조회 1,643
10-12-09 조회 1,067
10-12-09 조회 1,577
10-12-09 조회 1,024
10-12-09 조회 1,038
10-12-09 조회 1,130
10-12-09 조회 1,066
10-12-09 조회 1,589
10-12-09 조회 1,072
10-12-09 조회 1,033
10-12-09 조회 901
10-12-09 조회 1,032
10-12-09 조회 926
10-12-09 조회 848
10-12-08 조회 819
10-12-08 조회 1,068