갤러리 view.skin.php 에서 이미지를 클릭하면 원하는 지정해둔 파일로 새창 열리게 하는 방법 좀 알려주세요. > 그누4 질문답변

그누4 질문답변

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

갤러리 view.skin.php 에서 이미지를 클릭하면 원하는 지정해둔 파일로 새창 열리게 하는 방법 좀 알려주세요. 정보

갤러리 view.skin.php 에서 이미지를 클릭하면 원하는 지정해둔 파일로 새창 열리게 하는 방법 좀 알려주세요.

본문

안녕하세요.
제가 초보라서 해보다가 도저히 되지 않아서 질문을 좀 드립니다.

갤러리 view.skin.php 에서 이미지를 클릭하면 원본이미지 보기를 나름대로 꾸밀 수 있게 하려고
합니다.
지정해둔 파일로 새창 열리게 하는 방법 좀 알려주세요.

갤러리 이미지를 클릭하면 같은 스킨에 있는 aaa.php 파일을 뛰우고 싶거든요.
(첨부파일 참조)
그렇게 하려면 어떻게 수정을 해야 하는지 좀 알려주시면 감사하겠습니다.
부탁 드립니다.

현재 view.skin.php 원본입니다.



<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" >
  <tr>
    <td align="right" style="color:#999999; ">Date : <?=date("y-m-d H:i", strtotime($view[wr_datetime]))?></td>
  </tr>
</table>
<table width="100%" >
  <tr>
    <td height="1"></td>
  </tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909"><table width="100%" >
      <tr>
        <td width="5">&nbsp;</td>
        <td height="25" style="color:#FFCC33; font-size:14px; font-family:Dotum; font-weight:bold;"><?=cut_hangul_last(get_text($view[wr_subject]))?></td>
      <td>&nbsp;</td>
  <? if ($scrap_href) {?>
      <td width="60" align="right">
  <table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center" style="font-size:10px; "><a href="javascript:;" onclick="win_scrap('<?=$scrap_href?>');" style="color:#336699 ">Scrap</a></td>
  </tr>
</table></td>
<? }?>
<? if ($trackback_url) { ?>
      <td width="60" align="right">
  <table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center" style="font-size:10px; "><a href="javascript:trackback_send_server('<?=$trackback_url?>');" style="letter-spacing:0; color:#336699" title='주소 복사'>Trackback</a></td>
  </tr>
</table>
  </td>
  <? }?>
      </tr>
    </table></td>
  </tr>
</table>

<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0">
  <tr><td height="1" bgcolor="000000"></td></tr>
  <tr>
    <td bgcolor="#111111" onMouseOver=this.style.backgroundColor='#161616' onMouseOut=this.style.backgroundColor=''>
<table width="100%" >
  <tr>
    <td width="5">&nbsp;</td>
    <td style="color:#666666;">Name : <?=$view[wr_name]?> <? if ($is_ip_view) {?>(<?=$ip?>)<? }?></td>
  <td align="right" style="color:#666666;">Hit : <?=number_format($view[wr_hit])?>
        <? if ($is_good) { ?> &nbsp; Good : <?=number_format($view[wr_good])?><? } ?>
        <? if ($is_nogood) { ?> &nbsp; Nogood : <?=number_format($view[wr_nogood])?><? } ?></td>
    <td width="5">&nbsp;</td>
  </tr>
</table>

</td>
  </tr>
  <tr><td height="1" bgcolor="000000"></td></tr>
  <tr><td height="1" bgcolor="222222"></td></tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%">
<? // 링크
$cnt = 0;
for ($i=1; $i<=$g4[link_count]; $i++) {
if ($view[link][$i]) { $cnt++; $link = cut_str($view[link][$i], 70); ?>
<tr><td style="font-family:Dotum; font-size:11px; color:#666666; ">Link<?=$i?> :
<a href='<?=$view[link_href][$i]?>' target="_blank" style="font-family:Dotum; font-size:11px; color:#666633; "><?=$link?></a> Click:<?=$view[link_hit][$i]?>
</td></tr>
<? }} ?>
</table>
</td></tr>
<tr><td align="center" ><table width="100%">
<? // 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
if ($view[file][$i][source] && !$view[file][$i][view]) { $cnt++; ?>
<tr><td style="font-family:Dotum; font-size:11px; color:#666666; ">File<?=$i?> :
<a href="javascript:file_download('<?=$view[file][$i][href]?>', '<?=$view[file][$i][source]?>');" title='<?=$view[file][$i][content]?>' style="font-family:Dotum; font-size:11px; color:#666633; "><?=$view[file][$i][source]?> (<?=$view[file][$i][size]?>)</a>
Download:<?=$view[file][$i][download]?> Date:<?=$view[file][$i][datetime]?>
</td></tr>
<? }}?>
</table>
</td>
  </tr>
</table>

<table width="100%" >
  <tr>
    <td height="1"></td>
  </tr>
</table>
<table width="<?=$width?>" align="center">
  <tr>
    <td align="center" style="color:#999999; line-height:20px;">
<table cellpadding="0" cellspacing="0" <? if ( $view[file][0][image_width] > 480 or $view[file][1][image_width] > 480) echo ""; else echo "align='left'";?> >
      <tr>
        <td align="center" ><table cellpadding="5" cellspacing="5">
          <? for ($i=0; $i<=count($view[file]); $i++) { if ($view[file][$i][view]) {?>
          <tr>
  <!-- 이미지 테두리 넣기 수정 (2010.07.02) -->
            <td style='border:1 #E7E7E7 solid'><?=$view[file][$i][view]?></td>
          </tr>
          <? }}?>
        </table></td>
        <td width="10"></td>
      </tr>
      <tr>
        <td height="10"></td>
        <td></td>
      </tr>
    </table>
<span id="writeContents">
<?=$view[content];?>
</span>
    <!-- 테러 태그 방지용 -->
    </xml></xmp><a href=""></a><a href=''></a></td>
  </tr>
  <tr>
    <td style="color:#999999; line-height:18px;">&nbsp;</td>
  </tr>
</table>

<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0">
  <tr><td height="1" bgcolor="000000"></td></tr>
  <tr>
    <td bgcolor="#111111" onMouseOver=this.style.backgroundColor='#161616' onMouseOut=this.style.backgroundColor=''>&nbsp; </td>
  </tr>
  <tr><td height="1" bgcolor="000000"></td></tr>
  <tr><td height="1" bgcolor="222222"></td></tr>
</table>
<table width="100%" >
  <tr>
    <td height="1"></td>
  </tr>
</table>
<table width="<?=$width?>" align="center" cellpadding="0" cellspacing="0" >
  <tr>
  <td>&nbsp;</td>
<? if ($copy_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$copy_href?>" style="font-size:11px; color:#336699">Copy</a></td>
  </tr>
</table>
</td>
<? }?>
<? if ($move_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$move_href?>" style="font-size:11px; color:#336699">Move</a></td>
  </tr>
</table>
</td>
<? }?>
<? if ($search_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$search_href?>" style="font-size:11px; color:#336699">Search</a></td>
  </tr>
</table>
</td>
<? }?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$list_href?>" style="font-size:11px; color:#336699">List</a></td>
  </tr>
</table>
</td>
<? if ($update_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$update_href?>" style="font-size:11px; color:#336699">Modify</a></td>
  </tr>
</table>
</td>
<? }?>
<? if ($delete_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$delete_href?>" style="font-size:11px; color:#336699">Delete</a></td>
  </tr>
</table>
</td>
<? }?>
<? if ($reply_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$reply_href?>" style="font-size:11px; color:#336699">Reply</a></td>
  </tr>
</table>
</td>
<? }?>
<? if ($write_href) {?>
<td width="55" align="right">
<table width="50" cellpadding="3" cellspacing="1" bgcolor="222222">
  <tr>
    <td bgcolor="090909" align="center"><a href="<?=$write_href?>" style="font-size:11px; color:#336699">Write</a></td>
  </tr>
</table>
</td>
<? }?>
  </tr>
</table>

<table width="100%" >
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<script language="JavaScript">
function file_download(link, file) {
    <? if ($board[bo_download_point] < 0) {?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board[bo_download_point])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<? }?>
    document.location.href=link;
}
</script>

<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">
window.onload=function() {
    resizeBoardImage(<?=(int)$board[bo_image_width]?>);
    drawFont();
}
</script>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT