최근 이미지 게시물 소스 좀 봐주세요. ㅠㅠ 정보
최근 이미지 게시물 소스 좀 봐주세요. ㅠㅠ
본문
원치 까막눈이라 답변 좀 부탁드릴께요. ㅠㅠ
<?=latest("g4_gallery", "freeboard", 2, 100, 120, 1);?>
---------------- -------------- --- ----- ----- -----
스킨명 게시판명 갯수 가로폭 세로폭 세로줄 // 한줄에 그림2개 보이기 안되던데요? 사용 방법 좀 부탁드릴께요/
그리구... 이미지 클릭시... 새창으로 뜨게 하려면 어케해요^^?
<?
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<!-- <?=$board[bo_subject]?> (<?=$board[bo_table]?>) 최신글 -->
<table width='300' cellpadding='0' cellspacing='0' border='0' align='left'>
<tr><td align='center'>
<table width='300' cellpadding='0' cellspacing='0' border='0' align='left'>
<tr><td align='center'>
<table width='300' border='0' cellspacing='0' cellpadding='0' align='left'>
<tr>
<td width='226'> <img src='<?=$latest_skin_path?>/img/icon.gif' align='absmiddle'> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color=#000000><?=$board[bo_subject]?></font></a></strong></td>
<td width='49'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
</tr>
<tr>
<td colspan=2 height=2 background='<?=$latest_skin_path?>/img/bar1.gif'></td>
</tr>
</table>
<tr>
<td width='226'> <img src='<?=$latest_skin_path?>/img/icon.gif' align='absmiddle'> <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><font color=#000000><?=$board[bo_subject]?></font></a></strong></td>
<td width='49'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/more.gif' border=0></a></td>
</tr>
<tr>
<td colspan=2 height=2 background='<?=$latest_skin_path?>/img/bar1.gif'></td>
</tr>
</table>
</td></tr>
<tr><td align='center'>
<table width='95%'>
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
<tr>
<?
for ($i=0; $i<count($list); $i++)
{
if ($i > 0)
echo '<td width=20> </td>';
$title = get_text($list[$i][wr_subject]);
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
$content = cut_str(get_text($list[$i][wr_content]), 80);
$img = "$g4[path]/data/file/$bo_table/".urlencode($list[$i][file][0][file]);
if (!file_exists($img) || !$list[$i][file][0][file])
$img = "$latest_skin_path/img/no_image.gif";
$href = "$g4[bbs_path]/board.php?bo_table=$bo_table";
echo <<<HEREDOC
<td width='120' valign='top' align='center'>
<table width='120' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='120' height='5' align='center'></td>
</tr>
<td width='120' valign='top' align='center'>
<table width='120' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td width='120' height='5' align='center'></td>
</tr>
<tr>
<td width='120' height='100' align='center'>
<div style='width:120px;height:100px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='120' height='100' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<td width='120' height='100' align='center'>
<div style='width:120px;height:100px;border:1px solid #CCCCCC;padding:3px' align='center'>
<a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'><img src='{$img}' width='120' height='100' border='0' align='absmiddle' title='$title'></a>
</div>
</td>
</tr>
<tr>
<td width='120' height='5' align='center'></td>
</tr>
<td width='120' height='5' align='center'></td>
</tr>
<tr>
<td width='120' height='20' align='center'><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<td width='120' height='20' align='center'><a href='$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id={$list[$i][wr_id]}'>{$list[$i][subject]}</a></td>
</tr>
</table>
</td>
HEREDOC;
}
?>
</tr>
<? if (count($list) == 0) { ?>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
<tr><td colspan=2 align='center' height=25>게시물이 없습니다.</td></tr>
<? } ?>
</table>
</td></tr>
</table>
댓글 전체
깜찍한악마 님 스킨을 사용하면 최신 게시물 이미지가 짤려서 나오던데 왜 그런가요?
어떡게 수정해야 하나요?
어떡게 수정해야 하나요?
아 어렵네요.