head.php오류문제 > 그누4 질문답변

그누4 질문답변

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

head.php오류문제 정보

head.php오류문제

본문

지금 head.php문제로 며칠째 고생하고 있는데요
일단 직접코딩한 top.php를 head.php로 이름을 바꾸고 인쿠르드 시킬려고하는데요..
$g4[title] = "";
include_once("$g4[path]/head.php");
이렇게 하면 플래쉬가 나오질않습니다...
<? include"head.php";?>이런식으로 하면 나오는데요..
왜그런지 모르겠습니다.소스 올려드릴테니 한번 보시고 고쳐야할곳이 어딘지 부탁드립니다.
 
head.php
==============================================================================
<table width="996" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="169" height="227" valign="top" style="background-image:url(/images/top_logo_bg.jpg); background-repeat:no-repeat;">
 <script language="javascript">ShowFlash('../swf/index_logo.swf', 169, 96)</script>
 </td>
    <td><table width="835" height="227" border="0" cellpadding="0" cellspacing="0" style="background-image:url(/images/top_nevi_bg.jpg); background-repeat:no-repeat;">
      <tr>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="right" style="padding-right:7px;"><table height="29" border="0" cellpadding="0" cellspacing="0">
              <tr>
    
                <td><a href="include/."><img src="/images/top_btn_home.gif" width="31" height="28" border="0" /></a></td>
                <td><a href="../bbs/login.php?url=/bbs/register.php"><img src="/images/top_btn_login.gif" width="45" height="28" border="0" /></td>
                <td><a href="bbs/register.php"><img src="/images/top_btn_join.gif" width="56" height="28" border="0" /></a></td>
                <td><img src="/images/top_btn_cart.gif" width="56" height="28" border="0" /></td>
                <td><img src="/images/top_btn_delivery.gif" width="75" height="28" border="0" /></td>
                <td><img src="/images/top_btn_faq.gif" width="36" height="28" border="0" /></td>
                <td><img src="/images/top_btn_mypage.gif" width="66" height="28" /></td>
                <td><img src="/images/top_btn_favorite.gif" width="59" height="28" border="0" /></td>
              </tr>
            </table></td>
            <td width="249" height="28" style="background-image:url(/images/search_bg.gif); background-repeat:no-repeat;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <form id="form1" name="form1" method="post" action="">
              <tr>
                <td width="75"> </td>
                <td valign="top">
                  <input name="textfield" type="text" style="width:110px; height:18px;" />
               </td>
                <td width="58"><img src="/images/search_btn.gif" width="49" height="19" /></td>
              </tr> </form>
            </table></td>
          </tr>
        </table></td>
        <td width="7"> </td>
      </tr>
      <tr>
        <td><script language="javascript">ShowFlash('/swf/index_menu.swf', 829, 200)</script>
  </td>
        <td> </td>
      </tr>
    </table>
 </td>
  </tr>
</table>
  • 복사

댓글 전체

실질적으로 적용된 페이지를 보여주시면 이해가 더 빠를것같구요.
혹시 제가 발견한 부분이 맞다면, index_logo.swf 파일의 경로는 index_menu.swf의 경로 표시방법과 다르게 된것같군요.

혹시 index_logo.swf 파일은 g4[path] 함수로 호출하신게 아닌지,
최상단에 include_once("_common.php"); 를 해주셔야합니다^^
_common.php는, 그누보드디렉토리안에있는 common.php를 찾아주는 역할을 하는것입니다.

common.php는 가장기본적인 그누보드의 공통부분이 모여있습니다.
예를들어, 쿠키,세션, 기타 공통라이브러리 등이 있습니다^^

그렇기때문에, 경로를 지정하는 문제도. $g4[path] 변수를 로드시키는 common.php를 불러들여야 적용이 됩니다^^
© SIRSOFT
현재 페이지 제일 처음으로