팝업창도 조회수 올리기 > 그누4 질문답변

그누4 질문답변

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

팝업창도 조회수 올리기 정보

팝업창도 조회수 올리기

본문

현제 게시판을 보면 팝업뷰가 있고 상세보기가 있습니다.

팝업뷰로 들어가면 조회수가 안올라가네요... 조회수 같이 올릴라면 어떻게 하면될까요?

답변주시면 감사하겠습니다 (_ _)


http://busanhouse.net/bbs/board.php?bo_table=o_y_o

해당게시판입니다.
  • 복사

댓글 전체

팝업용 링크를 보니까, bbs/board.php 를 이용하지 않고, 스킨 화일을 직접 이용하네요.
이런 경우라면, 해당 스킨 화일안에서, 조회수를 직접 올리셔야 할것 같습니다.

bbs/board.php 120-123 줄을 참조하세요.

http://gnuboard.org/read/%EA%B7%B8%EB%88%84%EB%B3%B4%EB%93%9C/%EC%86%8C%EC%8A%A4%EC%BD%94%EB%93%9C/bbs/board.php#line120
지금 뭔가 실험해 보시나 보네요. 아까는 안나던 워닝들이 ^^;

간단하게는,

    $ss_name = "ss_view_{$bo_table}_{$wr_id}";
    if (!get_session($ss_name))
    {
        sql_query(" update $write_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");
    }

를 수행하는 것입니다.
위를 수행하기 위해서는, 가장 쉬운 방법이 common.php를 include 하는 것입니다.
(아마 지금 이부분을 하시는 것 같네요.)
해보시고 안되면, 해당 코드를 올려주세요. 한번 들어다 볼께요. ^^
아무리 해도 너무안되네요 ㅠ.ㅠ

팝업창 소스는


<?
$g4_path = "../../.."; // common.php 의 상대 경로
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");

$view = get_view($write, $board, $board_skin_path, 255);

$file = array();
$n=0;
for ($i=0; $i<count($view[file]); $i++) {
if(!$view[file][$i][file]) continue;
$file[$n] = $view[file][$i][path]."/".$view[file][$i][file];
$n++;
}
$popup_small = 500;
$popup_big = 1000;

$ex1_filed = explode("|",$view[wr_1]);
$ext1_00  = $ex1_filed[0]; // 전화번호
$ext1_01  = $ex1_filed[1]; //
$ext1_02  = $ex1_filed[2]; //
$ext1_03  = $ex1_filed[3]; //
$ext1_04  = $ex1_filed[4]; //
$ext1_05  = $ex1_filed[5]; //
$ext1_06  = $ex1_filed[6]; //
$ext1_07  = $ex1_filed[7]; //
$ext1_08  = $ex1_filed[8]; //
$ext1_09  = $ex1_filed[9]; //
$ext1_10  = $ex1_filed[10]; //
$ext1_11  = $ex1_filed[11]; //
$ext1_12  = $ex1_filed[12]; //
$ext1_13  = $ex1_filed[13]; //
$ext1_14  = $ex1_filed[14]; //
$ext1_15  = $ex1_filed[15]; //
$ext1_16  = $ex1_filed[16]; //
$ext1_17  = $ex1_filed[17]; //
$ext1_18  = $ex1_filed[18]; //
$ext1_19  = $ex1_filed[19]; //
$ext1_20  = $ex1_filed[20]; //
$ext1_21  = $ex1_filed[21]; //
$ext1_22  = $ex1_filed[22]; //
$ext1_23  = $ex1_filed[23]; //
$ext1_24  = $ex1_filed[24]; //
$ext1_25  = $ex1_filed[25]; //
$ext1_26  = $ex1_filed[26]; //
$ext1_27  = $ex1_filed[27]; //
$ext1_28  = $ex1_filed[28]; //
$ext1_29  = $ex1_filed[29]; //
$ext1_30  = $ex1_filed[30]; //
$ext1_31  = $ex1_filed[31]; //
$ext1_32  = $ex1_filed[32]; //
$ext1_33  = $ex1_filed[33]; //
$ext1_34  = $ex1_filed[34]; //
$ext1_35  = $ex1_filed[35]; //
$ext1_36  = $ex1_filed[36]; //

$ex3_filed = explode("|",$view[wr_3]);
$ext3_00  = $ex3_filed[0];
$ext3_01  = $ex3_filed[1];
$ext3_02  = $ex3_filed[2];
$ext3_03  = $ex3_filed[3];
$ext3_04  = $ex3_filed[4];
$ext3_05  = $ex3_filed[5];
$ext3_06  = $ex3_filed[6];
$ext3_07  = $ex3_filed[7];
$ext3_08  = $ex3_filed[8];
$ext3_09  = $ex3_filed[9];

$ex4_filed = explode("|",$write[wr_4]);
$ext4_00  = $ex4_filed[0];
$ext4_01  = $ex4_filed[1];
$ext4_02  = $ex4_filed[2];
$ext4_03  = $ex4_filed[3];
$ext4_04  = $ex4_filed[4];
$ext4_05  = $ex4_filed[5];

$ex5_filed = explode("|",$view[wr_5]);
$ext5_00  = $ex5_filed[0];
$ext5_01  = $ex5_filed[1];

$ex6_filed = explode("|",$view[wr_6]);
$ext6_00  = $ex6_filed[0];
$ext6_01  = $ex6_filed[1];
$ext6_02  = $ex6_filed[2];

$ex7_filed = explode("|",$view[wr_7]);
$ext7_00  = $ex7_filed[0];
$ext7_01  = $ex7_filed[1];
$ext7_02  = $ex7_filed[2];
$ext7_03  = $ex7_filed[3];
$ext7_04  = $ex7_filed[4];
$ext7_05  = $ex7_filed[5];
$ext7_06  = $ex7_filed[6];
$ext7_07  = $ex7_filed[7];
$ext7_08  = $ex7_filed[8];
$ext7_09  = $ex7_filed[9];
$ext7_10  = $ex7_filed[10];
$ext7_11  = $ex7_filed[11];
$ext7_12  = $ex7_filed[12];
 

$ex8_filed = explode("|",$view[wr_8]);
$ext8_00  = $ex8_filed[0];
$ext8_01  = $ex8_filed[1];
$ext8_02  = $ex8_filed[2];
$ext8_03  = $ex8_filed[3];



if($ext8_03=="단기") $ext8_03_icon = "<img src='$board_skin_path/img/dada_3.gif' border='0' align='absmiddle'>";
else if($ext8_03=="무보증") $ext8_03_icon = "<img src='$board_skin_path/img/dada_4.gif' border='0' align='absmiddle'>";
else if($ext8_03=="복층") $ext8_03_icon = "<img src='$board_skin_path/img/dada_5.gif' border='0' align='absmiddle'>";
else if($ext8_03=="베란다") $ext8_03_icon = "<img src='$board_skin_path/img/dada_6.gif' border='0' align='absmiddle'>";

$ex10_filed = explode("|",$write[wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];

?>
<?
if ($write_href) {
?>

<div style="clear:both; height:30px;">
    <div style="float:center;">
    <?
    ob_start();
    ?>
 
    <? if ($search_href) { echo "<a href=\"$search_href\"><img src='$board_skin_path/img/btn_list_search.gif' border='0' align='absmiddle'></a> "; } ?>
    <? echo "<a href=\"$list_href\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
    <? if ($update_href) { echo "<a href=\"$update_href\"><img src='$board_skin_path/img/btn_modify.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($delete_href) { echo "<a href=\"$delete_href\"><img src='$board_skin_path/img/btn_delete.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($reply_href) { echo "<a href=\"$reply_href\"><img src='$board_skin_path/img/btn_reply.gif' border='0' align='absmiddle'></a> "; } ?>
    <? if ($write_href) { echo "<a href=\"$write_href\"><img src='$board_skin_path/img/btn_write.gif' border='0' align='absmiddle'></a> "; } ?>
    <?
    $link_buttons = ob_get_contents();
    ob_end_flush();
    ?>
    </div>
</div>
<?
}
?>
<!-- 게시판 목록 시작 -->
<form name="fboardlist" method="post" style="margin:0;">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl'  value='<?=$sfl?>'>
<input type='hidden' name='stx'  value='<?=$stx?>'>
<input type='hidden' name='spt'  value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw'  value=''>
<div style="height:50px; line-height:1px; font-size:1px;"><br>
<br>

<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr><td height="39"><img src="<?=$board_skin_path?>/img/icon_title.gif" width="203" height="39"><b>
                    <?=cut_str($view['wr_subject'],100)?>
<font style="font:normal 11px 돋움; color:#BABABA;">조회 :</font><font style="font:normal 11px tahoma; color:#BABABA;"> <?=$view[wr_hit]?>&nbsp;&nbsp;&nbsp;&nbsp;</font>
                    </b></td>
<tr>
  </table></div>

<table border="0" cellspacing="0" cellpadding="0" WIDTH=100%>

                    <tr>

                      <td width="7" height="7"><img src="<?=$board_skin_path?>/img/box_a_01.gif" width="7" height="7"></td>

                      <td background="<?=$board_skin_path?>/img/box_a_02.gif"></td>

                      <td width="6"><img src="<?=$board_skin_path?>/img/box_a_03.gif" width="6" height="7"></td>

                    </tr>

                    <tr>

                      <td background="<?=$board_skin_path?>/img/box_a_04.gif"></td>

                      <td valign="top" bgcolor="#efefef">
<table width="95%" align="center" cellpadding=10 cellspacing=0 border=0 >
<tr>
    <td bgcolor="#efefef">
<?
$total = count($file);
if(!$page) $page=1;
$rows = 10;
$total_page  = ceil($total / $rows);
?>
<table width="95%" align="center" cellpadding="0" cellspacing="0" border="0" >
        <tr>
            <td width="527" align="left" valign="top" id="photo_main" >
<?if($file[$rows*($page-1)]){?>
<img id="preview1" src="<?=$file[$rows*($page-1)]?>" oncontextmenu="return false" width="400" height="280" style="display:none;">

            <marquee width="400" direction="left" behavior="alternate" scrollamount="4" truespeed id="preview2">
<?
for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
?>
<img src="<?=$file[$i]?>" oncontextmenu="return false" width="400" height="280">
<?}?>
</marquee>
<?}?>

</td>
            <td width="36" rowspan="2" align="center" valign="middle">&nbsp;</td>
            <td width="295" rowspan="2" valign="top">
                <table width="100%" cellpadding="0" cellspacing="0">
                <?
                for ($i=$rows*($page-1); $i<$rows*$page; $i++) {
if(!$file[$i]) break;
                if($i%2==0) echo "<tr>";
                ?>
                <td align="right" valign="top" style="padding:1px">
                    <img src="<?=$file[$i]?>" width="110" height="65" border="0" style="cursor:hand" onMouseOver="view_photo('<?=$file[$i]?>',1)">
                </td>
                <?
                if($i%2==1) echo "</tr>";
                }
                ?>
                </table>
                <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        <?
$qstr = "bo_table=$bo_table&wr_id=$wr_id";
$write_pages = get_paging(5, $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");
                        $write_pages = str_replace("처음", "<img src='$board_skin_path/img/page_begin.gif' border='0' align='absmiddle' title='처음'>", $write_pages);
                        $write_pages = str_replace("이전", "<img src='$board_skin_path/img/page_prev.gif' border='0' align='absmiddle' title='이전'>", $write_pages);
                        $write_pages = str_replace("다음", "<img src='$board_skin_path/img/page_next.gif' border='0' align='absmiddle' title='다음'>", $write_pages);
                        $write_pages = str_replace("맨끝", "<img src='$board_skin_path/img/page_end.gif' border='0' align='absmiddle' title='맨끝'>", $write_pages);
                        //$write_pages = preg_replace("/<span>([0-9]*)<\/span>/", "$1", $write_pages);
                        $write_pages = preg_replace("/<b>([0-9]*)<\/b>/", "<b><span style=\"color:#4D6185; font-size:12px; text-decoration:underline;\">$1</span></b>", $write_pages);
                        ?>
                        <?=$write_pages?>
                    </td>
                </tr>
                </table>
            </td>
        </tr>

        </table>
    </td>
</tr>
</table><table width='95%' align='center' cellpadding=0 cellspacing=0 border=0 >
  <colgroup width='20%' nowrap>
<colgroup width='30%'>
<colgroup width='20%' nowrap>
<colgroup width='30%'>
  <tr height="24">
    <td width="50%" height="50" colspan="2" ><img src="<?=$board_skin_path?>/img/title_01.gif" width="69" height="17" border=0 id="btn_list"></td>
    <td width="50%" ><img src="<?=$board_skin_path?>/img/title_03.gif" width="82" height="17" border=0 id="btn_list"></td>
  </tr>
  <tr><td colspan=4 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td height="10" colspan="3" >&nbsp;</td>
    </tr>
  <tr height="24">
    <td height="10" colspan="2" ><table width='95%' border="0" align='center' cellpadding="0" cellspacing="0" >
  <tr height="24">
    <td width="17%" ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list" />&nbsp;<b><font color="#333333">위치</b></td>
    <td width="33%" bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><? if ($is_category) { echo ($category_name ? "[$view[ca_name]] " : ""); } ?>
      <?=$ext3_00?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list" />&nbsp;<b><font color="#333333">면적</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$view[wr_2]?>
      평</td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list4" />&nbsp;<span class="write_head"><b><font color="#333333">입주여부</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext3_05?></td>
  </tr><tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list5" />&nbsp;<span class="write_head"><b><font color="#333333">전세</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #06F;'><?if($ext7_00) echo "<img src='$board_skin_path/img/dadada_1.gif' align='absmiddle'> $ext7_00";?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list6" />&nbsp;<span class="write_head"><b><font color="#333333">월세</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #F30;'><?if($ext7_10) echo "<img src='$board_skin_path/img/dadada_bo.jpg' align=absmiddle >&nbsp;$ext7_10";?>
      만원 <?if($ext7_11) echo "<img src='$board_skin_path/img/dadada_2.gif' align=absmiddle >&nbsp;$ext7_11";?>
      만원</td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list7" />&nbsp;<span class="write_head"><b><font color="#333333">테마</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext8_03_icon?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list8" />&nbsp;<span class="write_head"><b><font color="#333333">주차</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext6_00?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list9" />&nbsp;<span class="write_head"><b><font color="#333333">건물층수</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext3_06?>
      층 건물에
      <?=$ext3_07?>
      층</td>
    <?if($ext8_03){?>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list10" />&nbsp;<span class="write_head"><b><font color="#333333">인근지하철</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext10_00?>
      호선
      <?=$ext10_01?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <?}?>
  <?if($ext7_12){?>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list2" />&nbsp;<span class="write_head"><b><font color="#333333">인근대학교</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext7_12?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <?}?>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" width="13" height="13" border="0" id="btn_list3" />&nbsp;<span class="write_head"><b><font color="#333333">간단 설명</b></span></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=cut_hangul_last(get_text($view[wr_subject]))?></td>
  </tr>

</table></td>
    <td height="10" valign="top" bgcolor="#efefef" >
    <?if($is_admin){?>
    <table width='95%' border=0 align='center' cellpadding=0 cellspacing=0 >
  <tr height="24">
    <td width="20%" ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">상호</b></td>
    <td width="30%" bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #06F;'><?=$ext3_02?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">담당자</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #09F;'><?=$ext3_03?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">연락처</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #F60;'><?=$ext3_01?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">주소</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'><?=$ext7_06?>
      <?=$ext7_07?></td>
  </tr>
</table>
<?}else{?>
<table width='95%' border=0 align='center' cellpadding=0 cellspacing=0 >
  <tr height="24">
    <td width="20%" ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">상호</b></td>
    <td width="30%" bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #06F;'><?=$ext3_02?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">담당자</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #09F;'><?=$ext3_03?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>

  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">연락처</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px; color: #F60;'><?=$ext3_01?></td>
  </tr>
  <tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
  <tr height="24">
    <td ><img src="<?=$board_skin_path?>/img/icon_14.gif" alt="" width="13" height="13" border=0 id="btn_list">&nbsp;<b><font color="#333333">위치</b></td>
    <td bgcolor='#efefef' style='padding-left:5px; padding-right:5px;'>
   
    <?=$view[ca_name]?><?=$ext3_00?>
    </td>
  </tr>
</table>
<?}?>
    <table width="95%" align="center" cellpadding=0 cellspacing=0 style='border:1px solid #cccccc'>
        <tr>
          <td align="center" valign="middle">
           
           
            <div style = "padding:2px; border-width:0px; border-color:rgb(170,170,170); border-style:solid;">
            <div s>
              <? $map = trim($ext7_06) ." ". $ext7_07 ;
if ($map) {
include_once "$board_skin_path/map.php";
?>
              <? } ?>
            </div>
          </td>
        </tr>
       
    </table></td>
    </tr>

  <script>
function cb_popup(url){
window.open(url,"popup","menubars=no,toolbars=no,location=no,status=no,scrollbars=yes,width=600,height=700");
}
</script>
      <tr height="24">
    <td height="80" colspan="4" align="center" ><a href='javascript:;' onClick="cb_popup('/bbs/write.php?bo_table=a_test_a&popup=1')"><img src="<?=$board_skin_path?>/img/btn_moving.gif" border=0 id="btn_list"></a><?if($view[wr_link1]){?>&nbsp;<a href="javascript://" onClick="window.open('<?=$view[wr_link1]?>', '', 'left=100,top=100,width=600,height=400,scrollbars=1,resizable=1');" title='동영상보기'><img src="<?=$board_skin_path?>/img/btn_moving_1.gif" border=0 id="btn_list"></a><?}?></td>
  </tr>


<?
// 가변 파일
$cnt = 0;
for ($i=0; $i<count($view[file]); $i++) {
    if ($view[file][$i][source] && !$view[file][$i][view]) {
        $cnt++;
        echo "
        <tr height='24'><td >&nbsp;+&nbsp;다운로드</td>
<td colspan='3' bgcolor='#FFFFFF' style='padding-left:5px; padding-right:5px;'>
<img src='{$board_skin_path}/img/icon_file.gif' align=absmiddle>&nbsp;<span class='v1'>FILE #{$cnt}&nbsp;:</span>&nbsp;<a class='v1' href='{$view[file][$i][href]}' title='{$view[file][$i][content]}'>{$view[file][$i][source]} </a> <span class='v2'>({$view[file][$i][size]}), Down:{$view[file][$i][download]}, {$view[file][$i][datetime]}</span></td></tr>
";

    }
}
?>

</table></td>

                      <td background="<?=$board_skin_path?>/img/box_a_05.gif"></td>

                    </tr>

                    <tr>

                      <td height="7"><img src="<?=$board_skin_path?>/img/box_a_06.gif" width="7" height="7"></td>

                      <td background="<?=$board_skin_path?>/img/box_a_07.gif"></td>

                      <td><img src="<?=$board_skin_path?>/img/box_a_08.gif" width="6" height="7"></td>

                    </tr>

</table></form>
              <br /><br />
    </td>
</tr>
</table>

<div style="height:10px; line-height:1px; font-size:1px;">&nbsp;</div>
<script language="JavaScript">
function check_confirm(str) {
var f = document.fboardlist;
var chk_count = 0;

for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}

if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}
function select_delete() {
var f = document.fboardlist;

str = "삭제";
if (!check_confirm(str))
return;

if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;

f.action = "./delete_all.php";
f.submit();
}
function view_tab(no){
//document.getElementById("tab1").style.display = "none";
//document.getElementById("tab2").style.display = "none";
//document.getElementById("tab3").style.display = "none";
//document.getElementById("tab4").style.display = "none";
//document.getElementById("tab"+no).style.display = "block";
location.href="#tab"+no;
}
function view_photo(url,no){
//document.getElementById("photo_main").innerHTML= "<img src='"+url+"' width='500' style='border:3px solid #F60' style='cursor:hand' onclick=view_popup('"+url+"','<?=$popup_big?>')>";
if(no==1){
document.getElementById("preview1").src = url;
document.getElementById("preview1").style.display = "block";
document.getElementById("preview2").style.display = "none";
}else{
document.getElementById("preview1").style.display = "none";
document.getElementById("preview2").style.display = "block";
}

}

</script>


이렇습니다 ㅠ.ㅠ 뭐가 문제일까요 ㅠ.ㅠ 헤공
음.. 지금나오는 워닝들에 대한 문제인가요?

보통 저런 에러는, 파일 맨위 <? 위나 맨 아래 ?> 다음에 스페이스가 들어가는 경우입니다.
한번 확인해 보세요.

제가 알려드렸던 부분에서, $write_table 대신 $g4[write_prefix]$bo_table 로 사용하시면 될듯 한데요..

    $ss_name = "ss_view_{$bo_table}_{$wr_id}";
    if (!get_session($ss_name))
    {
        sql_query(" update $g4[write_prefix]$bo_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");
    }
글쎄요.. $ss_name은 그냥 변수일뿐인데..
get_session 함수도 그누에서 일반적으로 사용하는 함수이고요..

카운터를 올리시는 것이 중요하면,
if( ... ) 부분없이 그냥 sql_query(...) 만 적용하셔도 될듯..
제가 혹여나 착각했을까바 여쭤볼께요.

현제 popup.php 상단에

<?
$ss_name = "ss_view_{$bo_table}_{$wr_id}";
    if (!get_session($ss_name))
    {
        sql_query(" update $g4[write_prefix]$bo_table set wr_hit = wr_hit + 1 where wr_id = '$wr_id' ");
    }
?>

를 집어넣으라는 말씀이 맞는거죠?? 혹시 제가 잘못알고 있는건가요??
네.
지금 사용하시는 팝업코드가  위에 올리신 코드가 아닌가요? (popup.php 가 따로 있나요?)

아니라면, 올리신 코드에서
$view = get_view($write, $board, $board_skin_path, 255);
다음쯤에 넣으면 될것 같은데요.. ^^;
© SIRSOFT
현재 페이지 제일 처음으로