[긴급질문]도와주세요... > 그누4 질문답변

그누4 질문답변

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

[긴급질문]도와주세요... 정보

[긴급질문]도와주세요...

본문

질문의 요지는 이렇습니다.
 
페이지의 상단의  인크루즈명령도 다 넣은 상태이구요....설치시 생성되어 있는 index.php페이지에는 이상이 없는데...
 
새로 만들어 올린 페이지 main.html에서는 외부로그인부터 모든 스킨이 보이지 않습니다.
 
무엇이 문제일까요...도움을 요청합니다.
 
아예 index.php문서에서도 문제가 있다면 어떻게 찾아보겠는데...
 
꼭 답변을 부탁드립니다....
 
페이지는 http://www.homeint.org/index.php 문제 없는 페이지...
             http://www.homeint.org/main.php 문제 있는 페이지...
  • 복사

댓글 전체

main.html을 만드셨다면 g4안에 있는 head.php 와 tail을 소환 해주셔야 되요
<?//=popular();?>검색 들어갈자리에
<?=outlogin("basic"); ?>외부로그인
<?=poll("basic"); // 설문조사 ?>
<?=visit("basic"); // 방문자수 ?>
<?=connect(); // 현재 접속자수 ?>
head.php에 있는 소스 입니다.


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>

<!-- 상단 배경 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td background="<?=$g4['path']?>/img/top_img_bg.gif">
        <table width="100%" height="52" cellspacing="0" cellpadding="0">
        <tr>
            <td><img src="<?=$g4['path']?>/img/top_img.gif" width="100%" height="52"></td>
        </tr>
        </table></td>
</tr>
</table>
<!-- 상단 배경 끝 -->

<!-- 상단 로고 및 버튼 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="57"></td>
    <!-- 로고 -->
    <td width="220"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/logo.jpg" width="220" height="57" border="0"></a></td>
    <td>
        <table width=100% border=0 cellpadding=0 cellspacing=0>
        <tr>
            <td>&nbsp;</td>
        </tr>
        </table>
    </td>
    <td width="390" align="right">
        <table border="0" cellspacing="0" cellpadding="0">
        <tr>
            <!-- 처음으로 버튼 -->
            <td width="78"><a href="<?=$g4['path']?>/"><img src="<?=$g4['path']?>/img/top_m01.gif" width="78" height="31" border="0"></a></td>

            <? if (!$member['mb_id']) { ?>
            <!-- 로그인 이전 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/login.php?url=<?=$urlencode?>"><img src="<?=$g4['path']?>/img/top_m02.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/register.php"><img src="<?=$g4['path']?>/img/top_m03.gif" width="78" height="31" border="0"></a></td>
            <? } else { ?>
            <!-- 로그인 이후 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/logout.php"><img src="<?=$g4['path']?>/img/top_m04.gif" width="78" height="31" border="0"></a></td>
            <td width="78"><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="<?=$g4['path']?>/img/top_m05.gif" width="78" height="31" border="0"></a></td>
            <? } ?>
           
            <!-- 최근게시물 버튼 -->
            <td width="78"><a href="<?=$g4['bbs_path']?>/new.php"><img src="<?=$g4['path']?>/img/top_m06.gif" width="78" height="31" border="0"></a></td>

        </tr>
        </table></td>
    <td width="35"></td>
</tr>
</table>
<!-- 상단 로고 및 버튼 끝 -->

<!-- 검색 시작 -->
<table width="<?=$table_width?>" cellspacing="0" cellpadding="0">
<tr>
    <td width="43" height="11"></td>
    <td width="220"></td>
    <td width=""></td>
    <td width="234"><img src="<?=$g4['path']?>/img/search_top.gif" width="234" height="11"></td>
    <td width="35"></td>
</tr>
<tr>
    <td height="33"><img src="<?=$g4['path']?>/img/bar_01.gif" width="43" height="33"></td>
    <td><img src="<?=$g4['path']?>/img/bar_02.gif" width="220" height="33"></td>
    <td background="<?=$g4['path']?>/img/bar_03.gif" width="472" height="33"><table width=100% cellpadding=0 cellspacing=0><tr><td width=25>&nbsp;</td><td><?//=popular();?></td></tr></table></td>
    <td>
        <table width="100%" height="33" cellspacing="0" cellpadding="0">
        <form name="fsearchbox" method="get" action="javascript:fsearchbox_submit(document.fsearchbox);">
        <!-- <input type="hidden" name="sfl" value="concat(wr_subject,wr_content)"> -->
        <input type="hidden" name="sfl" value="wr_subject||wr_content">
        <input type="hidden" name="sop" value="and">
        <tr>
            <td width="25" height="25"><img src="<?=$g4['path']?>/img/search_01.gif" width="25" height="25"></td>
            <td width="136" valign="middle" bgcolor="#F4F4F4"><INPUT name="stx" maxlengt=20 style="BORDER : 0px solid; width: 125px; HEIGHT: 20px; BACKGROUND-COLOR: #F4F4F4" maxlength="20"></td>
            <td width="12"><img src="<?=$g4['path']?>/img/search_02.gif" width="12" height="25"></td>
            <td width="48"><input type="image" src="<?=$g4['path']?>/img/search_button.gif" width="48" height="25" border="0"></td>
            <td width="13"><img src="<?=$g4['path']?>/img/search_03.gif" width="13" height="25"></td>
        </tr>
        <tr>
            <td width="234" height="8" colspan="5"><img src="<?=$g4['path']?>/img/search_down.gif" width="234" height="8"></td>
        </tr>
        </form>
        </table></td>
    <td></td>
</tr>
</table>

<script language="JavaScript">
function fsearchbox_submit(f)
{
    if (f.stx.value == '')
    {
        alert("검색어를 입력하세요.");
        f.stx.select();
        f.stx.focus();
        return;
    }

    /*
    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++)
    {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }

    if (cnt > 1)
    {
        alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
        f.stx.select();
        f.stx.focus();
        return;
    }
    */

    f.action = "<?=$g4['bbs_path']?>/search.php";
    f.submit();
}
</script>
<!-- 검색 끝 -->

<div style='height:18px;'></div>

<style type="text/css">
#middiv {
width:<?=$table_width?>px;
position:relative;
margin:0px auto;
    vertical-align:top;
    float:left;
}
#middiv #mleft  { width:220px; float:left; padding:0 0 0 43; }
#middiv #mright { width:683px; float:left; padding:0 0 0 15; }
</style>

<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
    <td width=43></td>
    <!-- 왼쪽 메뉴 -->
    <td width=220 valign=top>
        <?=outlogin("basic"); // 외부 로그인 ?>

        <div style='height:10px;'></div>

        <?=poll("basic"); // 설문조사 ?>

        <div style='height:10px;'></div>

        <?=visit("basic"); // 방문자수 ?>

        <div style='height:10px;'></div>

        <?=connect(); // 현재 접속자수 ?>
    </td>
    <td width=18></td>
    <!-- 중간 -->
    <td width=683 valign=top>
혹시 tail.php 도 확인할수 있을까요? 현재 홈페이지상의 소스로는 전혀 이상이 없어서 나와야 하는데 안나온다면
tail쪽의 테이블 구조에서 잘못되서 그럴수도 있습니다.
<?
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>
이렇게 해보세요^^
<table width='<?=$table_width?>' cellpadding=0 cellspacing=0 border=0>
<tr>
    <td width=43></td> <<< 이부분 삭제하고
    <!-- 왼쪽 메뉴 -->
    <td width=220 valign=top>
        <?=outlogin("basic"); // 외부 로그인 ?>

        <div style='height:10px;'></div>

        <?=poll("basic"); // 설문조사 ?>

        <div style='height:10px;'></div>

        <?=visit("basic"); // 방문자수 ?>

        <div style='height:10px;'></div>

        <?=connect(); // 현재 접속자수 ?>
    </td>
    <td width=18></td> <<< 여기도 삭제하고
    <!-- 중간 -->
    <td width=683 valign=top>

위의 두곳의 테이블을 삭제한 후 두개의 칸으로만 나누어서 해보세요. 삭제하는 부분이 양 옆의 테두리 역활을 하게 만드신거 같은데 혹시 테이블의 구조때문에 그럴수 있습니다. 테이블 구조가 안맞게 되면 안맞는곳의 테이블은 무시하고 넘어가게 되니까요..
화일 상단에서 경로 오류 입니다..

현재 적용상태...
$g4_path = ".";   
include_once("$g4[path]/_common.php"); //여기에서 $g4[path] 가 잘못된 것입니다....



$g4_path = ".";   
include_once("$g4_path/common.php");
또는
//$g4_path = ".";   
include_once("./_common.php");
로 바꾸어 보세요...
안돼요...울것같아요...혹 서버의 문제일 수 있나요?
근데 그누보드의 index.php에서는 이상이 없는데...index.php파일안에 main.html의 테이블안의 것을 넣어도 안되요...

도와주세요..
뭐가 안되죠...? 위에 알려드린대로 수정 하셨나요...?
소스보기를 해보면 그냥
<?
$g4_path = ".";   
include_once("$g4[path]/_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?> 
나옵니다.

<?php
$g4_path = ".";   
include_once("$g4_path/common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>
게 고쳐 보셨나요...?
main.html을 아래것을 긁어다가 넣어 보세요...

<?php
//$g4_path = ".";   
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");

//print_r2(get_defined_constants());

// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.

$table_width = 1004;
?>
<script language="javascript" src="http://www.homeint.org/InsertFlash.js"></script>
<link rel="stylesheet" href="http://www.homeint.org/link.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<table width="980"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top"><div align="center">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><div align="center">
              <table width="980" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </div></td>
          </tr>
          <tr>
            <td align="center" valign="top"><table width="980"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
<!--메뉴플래시 적용 부분-->
<SCRIPT LANGUAGE="JavaScript">flashWrite('Flash/main.swf',980,300,'','#ffffff','')</SCRIPT>
<!--/메뉴플래시 적용 부분--> </td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><div align="center">
              <table width="980" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td><table width="980" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="243" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="93%" height="16" background="image/line1.gif"><img src="image/line1.gif" width="227" height="16"></td>
                              <td width="7%" align="right" valign="top"><img src="image/line2.gif" width="16" height="16"></td>
                            </tr>
                            <tr>
                              <td align="right"> <?php echo outlogin("basic"); // 외부 로그인 ?> </td>
                              <td align="right" valign="top" background="image/line3.gif"><img src="image/line3.gif" width="16" height="18"></td>
                            </tr>
                            <tr>
                              <td background="image/line5.gif"><img src="image/line5.gif" width="227" height="18"></td>
                              <td align="right" valign="top"><img src="image/line4.gif" width="16" height="18"></td>
                            </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td valign="top">ccac</td>
                        </tr>
                        <tr>
                          <td valign="top"><?php echo connect("connect"); // 현재 접속자수 ?></td>
                        </tr>
                      </table></td>
                      <td width="737" valign="top">&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td> <?php echo outlogin("basic"); // 외부 로그인 ?> </td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </div></td>
          </tr>
        </table>
    </div></td>
  </tr>
</table>
<?php
include_once("$g4[path]/tail.sub.php");
?>
님 링크 확인 해 봤습니다. 프레임 을 noframe로 나눠서 사용하시고 계시고 처음 체이지가 인트로이고 인트로의 경로가
../../ex.html로 되어 있군요. ex.html을 보면
55번째 라인즈음에 img 태그로 이미지를 넣어뒀는데 그 부분 백그라운드로
<td width="75" background="<?=$g4[path]?>/image/left.jpg"> 이렇게 처리하고
이미지 태그 넣은 부분을 <?=outlogin("basic"); // 외부 로그인 ?>  이렇게 해보세요
소스상으로는 로그인부분 들어간 곳이 없습니다.
그리고 소스의 6번줄 부분에 <?  이 헤드테그가 하나 더 들어가 있네요
이거 수정하니 잘 됩니다.
http://www.mindbank.co.kr/test.php
이게 님 소스 그대로 긁어다 붙여논 후 아웃 로그인 부분만 위에 한것처럼 한겁니다.
그럼 수고하세요
모든 분께 감사드립니다. 헐랭이님 말씀처럼 서버에서 html문서를 php문서로 인식하지 못하였습니다.
서버가 미국의 IBM본사의 서버인데 그러네요... 저는 미국에 있기에....

다시 한번 머리 숙여 감사드립니다.
© SIRSOFT
현재 페이지 제일 처음으로