게시판 최신글 그룹 최신글로 수정할때요.. > 그누4 질문답변

그누4 질문답변

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

게시판 최신글 그룹 최신글로 수정할때요.. 정보

게시판 최신글 그룹 최신글로 수정할때요..

본문

연후아빠님 스킨입니다.
개인적으로 디자인이 예뻐서 사용중인데요..
게시판이 아닌 그룹 최신글(사진)을 뽑을려면 어떻게 해야 하나요?
초보인지라 막막하네요.


짜집기 해보느라
맨위에
$gr = get_group($gr_id);  선언하고
링크를
/group.php?gr_id=<?=$gr_id?> 로 다 바꿧는데 안되네요..^^:
고수님들의 조언을 구합니다.

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

$cols  = 5; //  이미지 가로갯수 //  이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$imgwidth=70; //표시할 이미지의 가로사이즈
$imgheight=65; //표시할 이미지의 세로사이즈
$image_h  = 2; // 이미지 상하 간격

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

$data_path = $g4[path]."/data/file/$gr_id";
$thumb_path = $data_path.'/thumb';
?>
<style type="text/css">
<!--
.data  { font-size:8pt; color:#999999; }
-->
</style>

<center>
<table width="420" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="<?=$latest_skin_path?>/img/cc-1_01.gif" width="10" height="10" border="0"></td>
<td background="<?=$latest_skin_path?>/img/cc-1_02.gif" height="10" border="0"></td>
<td>
<img src="<?=$latest_skin_path?>/img/cc-1_03.gif" width="10" height="10" border="0"></td>
</tr>
<tr>
<td background="<?=$latest_skin_path?>/img/cc-1_04.gif" width="10" border="0"></td>
<td width="100%" border="0">

<table width=100% border=0 cellpadding='0' cellspacing='0' align='center'>

<!-- 최신글 제목 -->
<tr><td>

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>

          </tr>
          <tr bgcolor=#FAFAFA>
              <td width="10"></td>
                <!-- 제목 -->
              <td height="23"><strong><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><font color=#314662><?=$board[bo_subject]?></font></a></strong></td>
                <!-- more -->
              <td align="right"><a href='<?=$g4[bbs_path]?>/group.php?gr_id=<?=$gr_id?>'><img src="<?=$latest_skin_path?>/img/not02_more.gif" width="49" height="25" border="0"></a></td>
              <td width="5"></td>
          </tr>

      </table>

</td></tr>

<tr><td height='5'></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-size:9pt; color:#636363;";
    if ($list[$i][icon_new])
    $style = "style='font-size:9pt;' ";
$subject = "<span $style>".cut_str($list[$i][subject],12)."</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='100%' cellpadding='0' cellspacing='0' border='0'>";
echo " <tr><td valign='top' align='center'><a href='{$list[$i]['href']}'><img src='$img' width='{$imgwidth}' height='{$imgheight}' align='absmiddle' style='width:{$imgwidth}px;height:{$imgheight}px;border:1px solid #CCCCCC; padding:3px'></a></td></tr>";
echo " <tr><td align='center' height='21'><a href='{$list[$i]['href']}'>{$subject}</a></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/cc-1_06.gif" width="10" border="0"></td>
</tr>
<tr>
<td>
<img src="<?=$latest_skin_path?>/img/cc-1_07.gif" width="10" height="10" border="0"></td>
<td background="<?=$latest_skin_path?>/img/cc-1_08.gif" height="10" border="0"></td>
<td>
<img src="<?=$latest_skin_path?>/img/cc-1_09.gif" width="10" height="10" border="0"></td>
</tr>
</table>





<table width="100%" cellpadding=0 cellspacing=0>
<tr><td height=5></td></tr>
</table>

댓글 전체

전체 11 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT