j

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

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


짜집기 해보느라
맨위에
$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%> </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>
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
08-04-03 조회 3,585
08-03-27 조회 1,631
08-03-19 조회 1,813
08-12-10 조회 1,637
08-12-10 조회 820
08-12-10 조회 836
08-12-10 조회 869
08-12-10 조회 1,599
08-12-10 조회 1,581
08-12-10 조회 914
08-12-10 조회 865
08-12-06 조회 827
08-12-06 조회 806
08-12-05 조회 812
08-12-04 조회 814
08-12-03 조회 830
08-12-02 조회 1,010
08-12-01 조회 946
08-12-01 조회 2,189
08-12-01 조회 901