최근갤러리에 게시판 아이콘 불러오기 > 그누4 질문답변

그누4 질문답변

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

최근갤러리에 게시판 아이콘 불러오기 정보

최근갤러리에 게시판 아이콘 불러오기

본문

http://ngvworld.hompyman.com/
위 홈의 최근게시물처럼 게시판에서 체크한 아이콘 최근글에서도 나타나게 하려면 어떻게 해야 하는지요?
게시판은 간이쇼핑몰 스킨을 사용하고 있습니다.

위 홈의 최근게시물에는 latest에 아래와 같은 내용을 추가했다는데..
저는 잘 안되네요.
계속적인 도움만 부탁드려 죄송스럽네요. 고수님들...
부탁합니다.

<img src="<?=$latest_skin_path?>/img/i<? if ($list[$i][wr_10] == "급매") echo "1"; else if ($list[$i][wr_10] == "협상") echo "2"; else if ($list[$i][wr_10] == "무사고") echo "3"; else if ($list[$i][wr_10] == "추천") echo "4"; else  echo "1";?>.gif" border="0" align="absmiddle">
  • 복사

댓글 전체

제가 사용하는 간이몰 스킨 게시판에 글을 올릴때 '신상품''추천''베스트'등의 옵션을 체크하면
갤러리 목록에서는 '신상품'아이콘이 반짝반짝 하고 품명 옆에 표시되거든요.
이것을 목진철님의 제품소개 최근 게시물 스킨을 쓰는데
목진철님이 설정해 놓은 '뉴'아이콘만 뜨잖아요.
그런데
저는 '뉴'아이콘은 빼고
위 홈에서 쓰는 최근글처럼
------게시판에서 체크한 '신상품'이나 '추천' 같은 아이콘이
최근글 품명옆에 나타나게 하고
싶어요.-------
엑스엠엘님, 참 부지런하시군요...
사방에 도와주세요에 없는 곳이 없군요.... 수퍼맨 같습니다.
초보자들에게 큰 도움이 되는것 같군요.
아~ 난, 언제나 뽀빠이 같은 역할을 할 수 있을까....
제가 다운받은 최신글
latest.skin 입니다.
http://san.isfreeweb.com/gnuboard4/만들고 있는 홈페이지고요.
'야생화'란 게시판은 '간이쇼핑몰'스킨입니다.
게시판에 상품을 올릴때 '신상품'을 체크하고 글 쓰면 최근게시에 보여질때도 '신상품' 아이콘이
나타나게 하고 싶다고요. 물론 '추천'을 체크하면 최근게시에도 '추천'이란 아이콘이 나타나야겠지요.
아무것도 체크안하면 아무아이콘도 뜨지 않고요.

질답 등의 게시판 돌아다니다 보니 어떤분이 latest에 처음 말씀드린 위 소스를 넣었다는 것 같아서요.
제가 잘못 이해했나요?
다른 곳을 고쳐야 하는 것인지요???

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

$cols  = 4; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$image_h  = 10; // 이미지 상하 간격

$col_width = (int)(99 / $cols);

$data_path = $g4[path]."/data/file/$bo_table";
$thumb_path = $data_path.'/thumb';
?>

<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
  <tr>
    <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
    <td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
    <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
  </tr>
  <tr>
    <td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
    <td valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td valign="top" style="padding-bottom:5px"><table width="100%" height="22" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="<?=$latest_skin_path?>/img/box_bullet01.gif" width="9" height="9" align="absmiddle">
                  <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
                <td width="47" align="right"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/box01_more.gif" width="47" height="13" border="0"></a></td>
              </tr>
            </table></td>
        </tr>
<tr><td height=1 bgcolor=#FFCC00></td></tr>
<tr><td height='7'></td></tr>
        <tr>
          <td valign="top">
 
  <!-- <table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
              <tr>
                <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tl.gif" width="5" height="5"></td>
                <td background="<?=$latest_skin_path?>/img/box01_top.gif"></td>
                <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_tr.gif" width="5" height="5"></td>
              </tr>
              <tr>
                <td background="<?=$latest_skin_path?>/img/box01_left.gif"></td>
                <td valign="top" style="padding:5px"> -->

<!-- 제품리스트시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<!-- <tr><td height='10'></td></tr> -->
<tr>
<td align='center'>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>

<? for ($i=0; $i<count($list); $i++) {
  if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>

<td width="<?=$col_width?>%" align="center" valign='top'>

<?
$image = $list[$i][file][0][file]; //원본
$img=$data_path. "/".$image;  //썸네일이 없을경우 원본출력
$thumb = $thumb_path. "/". $list[$i][wr_id];

  if ( file_exists($thumb) )
$img = $thumb;
 
$style = "font-family:돋움; font-size:9pt; color:#636363;";
if ($list[$i][icon_new])
$style = "style='font-family:돋움; font-size:9pt; color:#006F00;' ";
$subject = "<span $style>".$list[$i]['subject']."</span>"; //제목 글자수 자르기

$bg = "";  //새글?
if ($list[$i][icon_new])
$bg="la_top_2.gif";
else
$bg="la_top_1.gif";

echo $list[$i][icon_reply] . " ";

echo "<table width='92' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><table cellpadding='1' cellspacing='1' bgcolor='#CCCCCC'><tr><td bgcolor='white'><a href=\"javascript:;\" OnClick=\"popupImage('$g4[path]/data/file/$bo_table/$image')\" onFocus=\"this.blur();\" title=\"{$list[$i][subject]}\"><img src='$img' width='90' border='0'></a></td></tr></table></td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'>{$subject}</a>&nbsp;{$list[$i]['icon_new']}</td></tr>";
echo " <tr><td height='21' align='center'><a href='{$list[$i]['href']}'><font color='RED'>판매가 : ".number_format($list[$i][wr_price])." 원</font></td></tr></table>";
?>
</td>
<? } ?>

<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%>&nbsp;</td>";
}
?>

  <? if (count($list) == 0) { echo "<td height=80 align=center>상품이 등록 준비중입니다.</td>"; } ?>
  </tr>
</table></td>
</tr>
</table>
<!-- 제품리스트끝 -->
 
  </td>
                <!-- <td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
              </tr>
              <tr>
                <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
                <td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
                <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
              </tr>
            </table> -->

</td>
        </tr>
      </table></td>
    <td background="<?=$latest_skin_path?>/img/box01_right.gif"></td>
  </tr>
  <tr>
    <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_bl.gif" width="5" height="5"></td>
    <td background="<?=$latest_skin_path?>/img/box01_bottom.gif"></td>
    <td width="5" height="5"><img src="<?=$latest_skin_path?>/img/box01_br.gif" width="5" height="5"></td>
  </tr>
  <tr><td height=10></td></tr>
</table>


<script language="javascript">
function popupImage(imageURL){
imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=no,resizable=no,width=100,height=100,top=0,left=0");
  imageHandle.document.write("<title>  </title>");
  imageHandle.document.write("<style>");
  imageHandle.document.write("*{margin:0;padding:0;border:0;}");
  imageHandle.document.write("</style>");
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+6,this.height+55);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"클릭하면 닫힙니다.\">");
}
</script>
?><img src="<?=$latest_skin_path?>/img/i<? if ($list[$i][wr_10] == "급매") echo "1"; else if ($list[$i][wr_10] == "협상") echo "2"; else if ($list[$i][wr_10] == "무사고") echo "3"; else if ($list[$i][wr_10] == "추천") echo "4"; else  echo "1";?>.gif" border="0" align="absmiddle"><?php


$subject = "<span $style>".$list[$i]['subject']."</span>"; //제목 글자수 자르기
???????
엑스엠엘님! 늘 여러분들에게 많은 도움이 되고 있는것과 제게도 도움을 주시고자 함에 감사드리고
있습니다.
그런데 위와 같이 말씀해 주시면
저같이 컴과 안친한 사람들은 이해하기 어렵답니다.
줘도 못먹지요....ㅠㅠ
좀 쉽게 떠 먹여 주시면 고맙겠습니다.
© SIRSOFT
현재 페이지 제일 처음으로