최근게시물에 제목이랑 가격을 표시하고 싶은데요.. 정보
최근게시물에 제목이랑 가격을 표시하고 싶은데요..본문
안녕하세요 그누보드 가족여러분들, 일교차가 심한 요즘
감기 조심하시고 하시는 모든일 항상 잘되시길 바래요
다름이 아니라 저는 최근게시물 스킨으로 gga_img_sero 을 사용하는데요
여기서 제목이랑 new, hot 아이콘은 잘 나오는데 가격을 추가하고 싶어요
(제목) (아이콘)
(가격)
이렇게요..근데 한 일주일을 붙잡고 노력해도 않되네요...ㅜㅜ 제가 왕 초보라
위와같이 하려면 어떻게 해야 하나요 소스는 아래와 같습니다. 그리고 게시판에
가격을 표시하는 필드값이라고 하나요? 여하튼 그거는 [wr_1] 이구요
도와주시면 정말 감사하겠습니다! 꾸벅~
---------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="80%" cellpadding=0 cellspacing=0 border=0><tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align="center">
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='150' height="95" border='0' style='padding:4px; border:#cdcdcd solid 1px;'><br>
<? } else { ?>
<img src='<?=$latest_skin_path?>/img/noimage.gif' width='150' height="95" border='0' style='padding:4px; border:#cdcdcd solid 1px;'><br>
<? } ?>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=comment_cnt>{$list[$i][comment_cnt]}</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_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
</table></td>
</tr></table>
-------------------------------------------------------------------------------------
감기 조심하시고 하시는 모든일 항상 잘되시길 바래요
다름이 아니라 저는 최근게시물 스킨으로 gga_img_sero 을 사용하는데요
여기서 제목이랑 new, hot 아이콘은 잘 나오는데 가격을 추가하고 싶어요
(제목) (아이콘)
(가격)
이렇게요..근데 한 일주일을 붙잡고 노력해도 않되네요...ㅜㅜ 제가 왕 초보라
위와같이 하려면 어떻게 해야 하나요 소스는 아래와 같습니다. 그리고 게시판에
가격을 표시하는 필드값이라고 하나요? 여하튼 그거는 [wr_1] 이구요
도와주시면 정말 감사하겠습니다! 꾸벅~
---------------------------------------------------------------------------------------
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="80%" cellpadding=0 cellspacing=0 border=0><tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td align="center">
<?
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) { ?>
<img src='<?=$g4[path]?>/data/file/<?=$bo_table?>/<?=$image?>' width='150' height="95" border='0' style='padding:4px; border:#cdcdcd solid 1px;'><br>
<? } else { ?>
<img src='<?=$latest_skin_path?>/img/noimage.gif' width='150' height="95" border='0' style='padding:4px; border:#cdcdcd solid 1px;'><br>
<? } ?>
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
if ($list[$i][is_notice])
echo "<font class=w_notice><strong>{$list[$i][subject]}</strong></font>";
else
echo "<font class=w_list>{$list[$i][subject]}</font>";
echo "</a>";
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span class=comment_cnt>{$list[$i][comment_cnt]}</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_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
</table></td>
</tr></table>
-------------------------------------------------------------------------------------
댓글 전체
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
이 부분에서 </tr> 아래 가격을 표시해주는 부분을 추가하면 되겠네요.
만약 제목 라인과 가격 라인에 가로줄 같은 선이 생긴다면
<br /><?=number_format($list[wr_1])?>이 코드만 아이콘 뒤에 붙여주는게 더 편할꺼에요
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<tr>
<td><?=number_format($list[wr_1])?></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
이 부분에서 </tr> 아래 가격을 표시해주는 부분을 추가하면 되겠네요.
만약 제목 라인과 가격 라인에 가로줄 같은 선이 생긴다면
<br /><?=number_format($list[wr_1])?>이 코드만 아이콘 뒤에 붙여주는게 더 편할꺼에요
echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
</td>
</tr>
<tr>
<td><?=number_format($list[wr_1])?></td>
</tr>
<? } ?>
<? if (count($list) == 0) { ?>
<? } ?>
정말 감사드립니다! 너무 너무 감사합니다~ 하시는 모든일 대박나세요!! ^^*