7쟁이님 최근게시물 에러좀 봐주세요? > 그누4 질문답변

그누4 질문답변

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

7쟁이님 최근게시물 에러좀 봐주세요? 정보

7쟁이님 최근게시물 에러좀 봐주세요?

본문


7쟁이님 최근게시물 에러가 납니다.
 
 
제대로 경로 설치했는데..
전혀 안뜹니다.
 
몇일 고생하고 있는데 도저히 몰라서 url주소 올렸습니다!
 
<? include_once("$g4[path]/test/my_view.php");?>
이렇게 했는데 에러만...
 
===============================================================================
my_view.php 안에 파일...
 
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
 <td width="7" height="7"><img src="<?=$g4[path]?>/test/img/line_mid_p1.gif"></td>
 <td background="<?=$g4[path]?>/test/img/line_mid_p5.gif"></td>
 <td width="7"><img src="<?=$g4[path]?>/test/img/line_mid_p2.gif"></td>
  </tr>
  <tr>
 <td background="<?=$g4[path]?>/test/img/line_mid_p8.gif"></td>
 <td>
<?
// ³ªÀÇ ÃֱٰԽù°
if ($member[mb_id])
{
    $new_count = 5;
    $cnt = 0;
    $sql = " select bo_table, wr_parent from $g4[board_new_table] a
              where mb_id = '$member[mb_id]'
                -- and a.wr_id = a.wr_parent
                group by bo_table, wr_parent
                order by bn_id desc
                limit $new_count ";
    $res = sql_query($sql);
    echo "<table width=95% cellpadding=0 cellspacing=0 align=center>";
    echo "<tr height=25><td><img src='$g4[path]/test/img/list_icon.gif'> <a href='$g4[bbs_path]/new.php?view=w&mb_id=$member[mb_id]'><span style='color:#333333;'><b>³ªÀÇ ÃֱٰԽù°</b></span></a></td></tr><tr><td height=1 bgcolor=#FF9900></td></tr>";
    for ($i=0; $row=sql_fetch_array($res), $i<$new_count; $i++)
    {
        if (!$row[bo_table])
        {
            continue;
        }
        $tmp_table = $g4[write_prefix].$row[bo_table];
        $sql2 = " select wr_subject, wr_comment from $tmp_table where wr_id = '$row[wr_parent]' ";
        $row2 = sql_fetch($sql2);
        $subj = get_text($row2[wr_subject]);
        $comment = "";
        if ($row2[wr_comment])
            $comment = "<span class=small>($row2[wr_comment])</span>";
        echo "<tr height=23><td class=bg_menu2 title='$subj'>";
        echo "<nobr style='display:block;overflow:hidden;width:160px;'>";
        echo "<img src='$g4[path]/test/img/list_icon2.gif'> <a href='$g4[bbs_path]/board.php?bo_table=$row[bo_table]&wr_id=$row[wr_parent]'>";
        echo "<span style='color:#666666;'>$comment $subj</span></a>";
        echo "</nobr></td></tr>";
        $cnt++;
    }
    if (!$cnt)
        echo "<tr><td><span style='color:gray;'>°Ô½Ã±ÛÀÌ ¾ø½À´Ï´Ù.</span></td></tr>";
    echo "</table>\n";
}
?>
</td>
 <td background="<?=$g4[path]?>/test/img/line_mid_p6.gif"></td>
  </tr>
  <tr>
 <td height="7"><img src="<?=$g4[path]?>/test/img/line_mid_p4.gif"></td>
 <td background="<?=$g4[path]?>/test/img/line_mid_p7.gif"></td>
 <td><img src="<?=$g4[path]?>/test/img/line_mid_p3.gif"></td>
  </tr>
</table>
  • 복사

댓글 전체

저도 마침 필요해서 설치해 봤는데요 .... 잘 됩니다.

tools 라는 폴더를 만들고 my_view.php 파일과 img 폴더를 tools에 업로드 했습니다.

<? include_once("$g4[path]/tools/my_view.php");?> 를 head.php 적절한 곳에

넣어 줬구요.


my_view.php 에서 이미지 경로만 /tools/img 로 수정해 줬더니

http://blinken.hubweb.net/test/my_view.php 에서 보여주신것 처럼

보여 지더군요. 이 상태에서 로그인을 해보니 작성한 최신글이 보여 졌습니다.

비로그인시는 깨어진 이미지만 보여 지더군요. (혹시 로그인 안하시고 테스트 하신건 아니
시지요?)

해당 스킨의 아래쪽으로 보시면 김샨님이 올리신 비로그인시 아무것도 보이지
않게 하기가 있습니다. 그걸로 마무리 하시면 될듯 합니다.

결론은 아주 잘됩니다.
http://blinken.hubweb.net/test/

head.php 부분에..
<? include_once("$g4[path]/test/my_view.php");?>
이렇게 띄우면..이런 에러만...
참고로 라인 159은...<? include_once("$g4[path]/test/my_view.php");?> 이겁니다.

Warning: main(./test/my_view.php): failed to open stream: 그런 파일이나 디렉토리가 없음 in /home/blinken/public_html/test/head.php on line 159

Warning: main(): Failed opening './test/my_view.php' for inclusion (include_path='.:/usr/lib/php/pear') in /home/blinken/public_html/test/head.php on line 159
test 라는 폴더에 my_view.php 가 있는지 확인해 보시구요.
있다면 삭제 후 재 업로드 해 보시기 바랍니다.


http://okpcas.co.kr/cart/search_g4test.php

id: test1
password: test1

이전에 남긴 답변처럼 그대로 해본겁니다.
© SIRSOFT
현재 페이지 제일 처음으로