겔러리게시판 최신글(이미지) 팝업으로.. 질문입니다 정보
질문 겔러리게시판 최신글(이미지) 팝업으로.. 질문입니다본문
겔러리 게시판의 최신글일 경우 최신글에 섬네일을 불러 오게 되어 있는데.
(참고로 최신글 스킨은 http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=g4_skin&page=1&wr_id=285
을 사용하려 합니다.)
섬네일을 클릭 하게 되면 새창으로 원본 이미지를 띄우게 할 수 있는 방법을 알고 싶습니다.
워낙 php 초보라서 잘 안돼네요..
도와주세요..
///////////// 바꾸어야 할 부분은 이곳 같은뎅..
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='45' height='45' border='0'>"; // 이미지크기
} else
echo "<img src='$board_skin_path/img/no_image.jpg' alt='이미지 없음' width='45' height='45' border='0'>"; ?></td></tr></table></td>
<td width="97%" align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" style="border-bottom:#f1f1f1 solid 1px">
<? 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>";
(참고로 최신글 스킨은 http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=g4_skin&page=1&wr_id=285
을 사용하려 합니다.)
섬네일을 클릭 하게 되면 새창으로 원본 이미지를 띄우게 할 수 있는 방법을 알고 싶습니다.
워낙 php 초보라서 잘 안돼네요..
도와주세요..
///////////// 바꾸어야 할 부분은 이곳 같은뎅..
<?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";
$image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
echo "<img src='$g4[path]/data/file/$bo_table/$image' width='45' height='45' border='0'>"; // 이미지크기
} else
echo "<img src='$board_skin_path/img/no_image.jpg' alt='이미지 없음' width='45' height='45' border='0'>"; ?></td></tr></table></td>
<td width="97%" align="center"><table width="95%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" style="border-bottom:#f1f1f1 solid 1px">
<? 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>";
댓글 전체