최신갤러리 이미지를 누르면 그페이지로 가게끔 하려면.. 정보
최신갤러리 이미지를 누르면 그페이지로 가게끔 하려면..본문
질문속에 답이 보이네요.
* 새로운팝업창
* popup
>
>
> 안녕하세요
> 최신갤러리의 이미지를 누르면 새로운팝업창으로 그 이미지 있는 페이지가 뜹니다.
> 이것을 그페이지로 이동해서(self로) 열리게끔 하려면 어떻게 해야 하는지요?
>
> 스킨내용입니다.(아래부분에 어디를 수정해야 하는지요?
>
> <?
> if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
> $mod = 4; // 한행당 몇개씩?
> $image_width = 120; // 이미지 폭
> $image_height = 80; // 이미지 높이
>
> //현재 최신글 내용을 창을띄워 보기로 되어있음
> ?>
>
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr><td height="10" colspan=<?=$mod?>></td></tr>
> <tr>
> <? for ($i=0; $i<count($list); $i++) { ?>
> <td align="center" style='padding-right:7px;'>
> <?
> // 갤러리용이므로 노이미지는 없습니다.
> echo $list[$i][icon_reply] . " ";
> echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=0, top=0, width=700, height=500, scrollbars=1,resizable=no')\">";
> // echo "<a href='{$list[$i][href]}'>"; // 바로 내용보기
> // echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table'>"; // 목록으로
> $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='$image_width' height='$image_height' border='0'alt='{$list[$i][subject]}' style='border:1 solid #777777;'>\n";
> echo "<br>";
> echo "<font color='#BCCFCD'>▒</font> <font style=color:#393939;'>{$list[$i][subject]}</font> <font color='#BCCFCD'>▒</font> ";
> echo " " . $list[$i][icon_new];
> echo "</a>";
> }
> ?>
> </td>
> <? } ?>
>
> <? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>
> </tr>
> <tr><td height="7" colspan=<?=$mod?>></td></tr>
> <tr><td height="1" colspan=<?=$mod?> bgcolor="#F2F2F2"></td></tr>
> </table>
>
* 새로운팝업창
* popup
>
>
> 안녕하세요
> 최신갤러리의 이미지를 누르면 새로운팝업창으로 그 이미지 있는 페이지가 뜹니다.
> 이것을 그페이지로 이동해서(self로) 열리게끔 하려면 어떻게 해야 하는지요?
>
> 스킨내용입니다.(아래부분에 어디를 수정해야 하는지요?
>
> <?
> if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
> $mod = 4; // 한행당 몇개씩?
> $image_width = 120; // 이미지 폭
> $image_height = 80; // 이미지 높이
>
> //현재 최신글 내용을 창을띄워 보기로 되어있음
> ?>
>
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr><td height="10" colspan=<?=$mod?>></td></tr>
> <tr>
> <? for ($i=0; $i<count($list); $i++) { ?>
> <td align="center" style='padding-right:7px;'>
> <?
> // 갤러리용이므로 노이미지는 없습니다.
> echo $list[$i][icon_reply] . " ";
> echo "<a href=\"javascript:popup_window('$g4[bbs_path]/board.php?bo_table=$board[bo_table]&wr_id={$list[$i][wr_id]}','winBoard','left=0, top=0, width=700, height=500, scrollbars=1,resizable=no')\">";
> // echo "<a href='{$list[$i][href]}'>"; // 바로 내용보기
> // echo "<a href='$g4[bbs_path]/board.php?bo_table=$bo_table'>"; // 목록으로
> $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='$image_width' height='$image_height' border='0'alt='{$list[$i][subject]}' style='border:1 solid #777777;'>\n";
> echo "<br>";
> echo "<font color='#BCCFCD'>▒</font> <font style=color:#393939;'>{$list[$i][subject]}</font> <font color='#BCCFCD'>▒</font> ";
> echo " " . $list[$i][icon_new];
> echo "</a>";
> }
> ?>
> </td>
> <? } ?>
>
> <? if (count($list) == 0) { echo "<td colspan=$mod align=center>게시물이 없습니다.</td>"; } ?>
> </tr>
> <tr><td height="7" colspan=<?=$mod?>></td></tr>
> <tr><td height="1" colspan=<?=$mod?> bgcolor="#F2F2F2"></td></tr>
> </table>
>
댓글 전체