이미지 최신글 클릭시 이미지가 새창으로 팝업됩니다 ㅠㅠ

· 2010-09-18 (토) 18:46:47 · 2078 · 3
이미지 최신글에서 이미지 클릭하면 이미지가 새창으로 팝업되고
해당 게시물로 넘어가는건 왜 그러는거죠? ㅠㅠ
|

댓글 3개

스킨이 그렇게 되도록 만들어져서 가 아닌가요??
2010-09-18 (토) 23:14:04
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

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

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

$data_path = $g4[path]."/data/file/$bo_table";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#252525">
<tr>
<td align=left valign="top" bgcolor="#252525" style="padding:0px" height="0">

<!-- 최신글 제목 -->
<table width="770" 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'>
<?
include_once("$g4[path]/lib/thumb.lib.php");

$image = $list[$i][file][0][file]; //원본
$img=thumbnail($data_path. "/".$image, $imgwidth, $imgheight, 0, 1); //썸네일이 없을경우 원본출력

$str = $list[$i][icon_reply] . " ";
$str .= "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
$str .= "<tr><td valign='top' align='center'><a href='{$list[$i]['href']}'><img src='$img' align='absmiddle' style='width:{$imgwidth}px;height:{$imgheight}px;border:5px solid #444444; padding:0px'></a></td></tr>";
$str .= "<tr><td align='center' height='21'><a href='{$list[$i]['href']}'><span style='font-size:8pt; color:4D9AC4;'>{$list[$i]['subject']}</span></a></td></tr></table>";

echo resize_content($str, $imgwidth, $imgheight);
?>
</td>
<? } ?>

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

if (count($list) == 0) {
echo "<td align=center>게시물이 없습니다.</td>";
}
?>
</tr>
<tr>
<td width="1%" height="1" align="center" valign="top"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>


이코드인데...
소스상에는 타겟이 지정안되어있네요. 아마 다른 스크립트가 있을 지도 모르겟네요.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
10-09-19 조회 1,652
10-09-19 조회 2,007
10-09-19 조회 1,647
10-09-19 조회 1,640
10-09-19 조회 1,712
10-09-18 조회 2,062
10-09-18 조회 1,983
10-09-18 조회 1,815
10-09-18 조회 1,640
10-09-18 조회 1,760
10-09-18 조회 1,676
10-09-18 조회 1,649
10-09-18 조회 2,079
10-09-18 조회 1,673
10-09-18 조회 1,625
10-09-18 조회 1,612
10-09-18 조회 1,652
10-09-18 조회 2,485
10-09-18 조회 1,756
10-09-18 조회 1,844