코멘트 첨부파일을 새창에서 다운받는 방법.. 다시 질문 !!! > 그누4 질문답변

그누4 질문답변

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

코멘트 첨부파일을 새창에서 다운받는 방법.. 다시 질문 !!! 정보

코멘트 첨부파일을 새창에서 다운받는 방법.. 다시 질문 !!!

본문

지금 여러가지로 건들여 봤는데 지금 딱 하나만 막히고 있는 상태입니다 ㅜㅜ

코멘트 파일 다운로드 링크
<?=$board_skin_path?>/mw.proc/comment.download.popup.skin.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&bf_no=0

그리고 저 위에 comment.download.popup.skin.php 의 소스 입니다.
<?
/**
 * Bechu-Basic Skin for Gnuboard4
 *
 * Copyright (c) 2008 Choi Jae-Young <www.miwit.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  *** 개인정보보호를 위한 전화번호 노출방지 ***  USA
 */

include_once("_common.php");
include_once("$board_skin_path/mw.lib/mw.skin.basic.lib.php");

//if (!$is_member) alert_close("회원만 이용 가능합니다.");

include_once("$g4[path]/head.sub.php");
?>
<style type="text/css">
.ci_title { font-size:15px; font-weight:bold; background-color:#efefef; padding:10px; }
.ci_info { margin:20px 0 0 20px; line-height:20px; font-size:13px; }
.ci_file { border-top:1px solid #9a9a9a; border-left:1px solid #9a9a9a; border-right:1px solid #d8d8d8; border-bottom:1px solid #d8d8d8; height:20px; font-size:12px; padding:2px; }
.ci_button { background-color:#efefef; cursor:pointer; }
.ci_buttons { text-align:center; margin:20px 0 0 0; height:50px; }
</style>

<div class="ci_title"> ▶ 파일다운로드 </div>
<br><SCRIPT TYPE="TEXT/JAVASCRIPT">
<!--
 function countInit() {
  var cnt = 11;
  var count = document.getElementById("count");
  return function(){
  count.innerText = --cnt + "초 후 다운로드 시작됩니다.";
  setTimeout("countdown()",1000);
  }
 }
 var countdown = null;
 window.onload = function(){
  countdown = countInit();
  countdown();
 }
 document.write("<center><h2><div id='count'>&nbsp;</div></h2></center>");
//-->
</SCRIPT>

<div class="ci_info">
    <?=$mw_basic[cf_download_popup_msg]?>

    <script type="text/javascript">

setTimeout("location.href='<?=$board_skin_path?>/mw.proc/mw.comment.download.php?bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&bf_no=0'",10000);
</script>
 

</div>
<script type="text/javascript">
 setTimeout("location.href='javascript:window.close();'",11000);
 </script>
<?
include_once("$g4[path]/tail.sub.php");
?>


이렇게 해서 코멘트(댓글) 파일을 선택하면 10초 후 다운로드 된다는 문구와 함께 창이 뜨긴 합니다
그런데 ..

10초 후에 링크가
사이트주소/skin/board/mw.basic.utf8/mw.proc/mw.comment.download.php?bo_table=보드명&wr_id=&bf_no=0

이렇게 뜨는데 ..!!(사이트와 보드명은 죄송하지만 바꿧습니다 ..)
여기서 딱 wi_di= 에서 숫자가 안뜨는 겁니다 ㅜㅜ

코멘트 첨부파일을 눌렀을 땐
사이트주소/skin/board/mw.basic.utf8/mw.proc/comment.download.popup.skin.php?bo_table=보드명&wr_id=7506&bf_no=0

이렇게 뜨는데 말이죠 ㅜㅜ 어떻게 하면 다운로드 팝업창에서도 wr_id= 의 숫자를 뜨게 할 수 있을까요 ??.....
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로