꼭 문제 해결해 주세요.부탁드립니다. > 그누4 질문답변

그누4 질문답변

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

꼭 문제 해결해 주세요.부탁드립니다. 정보

꼭 문제 해결해 주세요.부탁드립니다.

본문

그누보드가 좋아서 배우고 있는 왕초보입니다..
이곳에서 배너 계시판을 다운로드받아서 설치를 했는데..

http://sir.co.kr/bbs/board.php?bo_table=g4_sir_skin&wr_id=621&page=&sca=&sfl=&stx=&spt=0&cwin=#c_2079

저에게 필요한 거거든요..

설치 후 몇가지 문제가 발생해서 이렇게 문의 드립니다,

질문 1>그림에서와 같이 계시판 화면에서 제목 부분에 배너가 나와야 하는데 이상하게 나오지 않네요.

한줄 살며시 보이기만 가고있습니다. 왜 그렇까요?

list.skin.php의 제목 소스를 보면

<?
        echo $nobr_begin;

        //print_r2($list[$i]);

        //echo $list[$i][reply];
        //echo $list[$i][icon_reply];
        echo "<a href='{$list[$i][href]}'>";
        if ($list[$i]['is_notice'])
            echo "<font color='#FF6600'><strong>{$list[$i][subject]}</strong></font>";
        else
        {
            ;
        }

        //if ($list[$i]['comment_cnt']) echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-size:7pt;'>{$list[$i][comment_cnt]}</span></a>";

        echo "<img src='{$list[$i][file][0][path]}/{$list[$i][file][0][file]}' width='$imgw' height='$imgh' border='0' title='{$list[$i][subject]}'>";
        echo "</a>";

        // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
        // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

        //echo " " . $list[$i][icon_new];
        //echo " " . $list[$i][icon_file];
        //echo " " . $list[$i][icon_link];
        //echo " " . $list[$i][icon_hot];
        //echo " " . $list[$i][icon_secret];
        echo $nobr_end;
        ?> 이렇게 되어있습니다. 어디서 수정을 해야하는지....

질문 2> 두번째 그림에서와 같이 배너 부분을 클릭을 하면 링크가 걸려있는 곳으로 가는게 아니고

그림화면이 나옵니다..원래  배너 클릭시 링크된곳으로 이동하게 할려면 어디서 수정하여야 하나요?

<td style='padding-left:20px; height:45px;'>· target link</td>
    <td>
        <input type='text' class=ed style="width:99%;" name='wr_link1' itemname='target link' required value='<?=$write['wr_link1']?>'>
        <br/>배너를 클릭하면 이동하는 웹주소
    </td>
</tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>


<? if ($is_file) { ?>
<tr>
    <td style='padding-left:20px; height:30px;'>· 배너 이미지</td>
    <td style='padding:5 0 5 0;'><table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
        <script language="JavaScript">
        var flen = 0;
        function add_file(delete_code)
        {
            var upload_count = <?=(int)$board[bo_upload_count]?>;
            if (upload_count && flen >= upload_count)
            {
                alert("이 게시판은 "+upload_count+"개 까지만 파일 업로드가 가능합니다.");
                return;
            }

            var objTbl;
            var objRow;
            var objCell;
            if (document.getElementById)
                objTbl = document.getElementById("variableFiles");
            else
                objTbl = document.all["variableFiles"];

            objRow = objTbl.insertRow(objTbl.rows.length);
            objCell = objRow.insertCell(0);

            objCell.innerHTML = "<input type='file' class=ed size=32 name='bf_file[]' id='bf_file_"+flen+"' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
            if (delete_code)
                objCell.innerHTML += delete_code;
            else
            {
                <? if ($is_file_content) { ?>
                objCell.innerHTML += "<br><input type='text' class=ed size=50 name='bf_content[]' title='업로드 이미지 파일에 해당 되는 내용을 입력하세요.'>";
                <? } ?>
                ;
            }

            flen++;
        }

        <?=$file_script; //수정시에 필요한 스크립트?>

        function del_file()
        {
            // file_length 이하로는 필드가 삭제되지 않아야 합니다.
            var file_length = <?=(int)$file_length?>;
            var objTbl = document.getElementById("variableFiles");
            if (objTbl.rows.length - 1 > file_length)
            {
                objTbl.deleteRow(objTbl.rows.length - 1);
                flen--;
            }
        }
        </script>
        배너 사이즈는 <b><?=$board['bo_1']?></b> (폭x높이) 입니다. 파일 용량은 <b><?=number_format($board['bo_upload_size'])?>바이트</b> 이하입니다.
        </td>

질문 3> 배너 계시판을 원하는 곳에 부쳐놓을 수 있다고 해서 head.php부분에 붙여서 놓았더니.
세번째 그림처럼 나의 최신글과 전체 최신글에서 라인 62에서 에러가 난다고 합니다. 왜 그런가요?
head.php를 원래대로 수정을 해도 마찬가지 입니다.

고수님!!! 완초보에게는 아직 너무 어렵네요...

자세한 답변을 꼭 부탁드립니다.. 가능한 정말로 자세히 부탁드려요...
  • 복사

댓글 전체

여유필드 1에서 폴 * 높이를 지정하였는 데 폭은 지정은 되나 높이가 지정이 되지않고 한줄로만 나옴니다. 즉 높이가 먹이히 않는다는 뜻이네요..왜 그럴까요?
© SIRSOFT
현재 페이지 제일 처음으로