새글 다시한번봐주세요. > 그누3질답

그누3질답

새글 다시한번봐주세요. 정보

그누보드 새글 다시한번봐주세요.

본문

3.XX 버전은 되는데요.
2.65버전은
$wr_name = gblayer($value->mb_id, $value->wr_name, $value->wr_email);
이걸 적용시키니까 페이지오류나네요...
작성자를 빼면 잘돌아가구요....

해결방법없을까요 자꾸 무렁 죠송해여 새글 전부 다해봤지만

$wr_name = gblayer($value->mb_id, $value->wr_name, $value->wr_email);
이부분이 꼭 문제네여 어딜 만져죠야 작성자 까지 나오게하는건지 부탁함당,

저의 소스(그누보드 게시판에서 어느분의 소스엿슴다.)
<?
$gnu_path = "./";
include($gnu_path . 'config.php');
include($gnu_path . 'lib.php');

$html_title = "▒ 그누보드 ▒";
include($gnu_path . 'head.sub.php');
include($gnu_path . 'head.php');
?>

<table width=100% cellpadding=0 cellspacing=0>
<tr>
    <td width='' valign=top>

<?
if ($hours < 1 || $hours > 168) {
    $hours = 7;
}
$intime = date("Y-m-d H:i:s", time() - (int)(60 * 60 * $hours));

$sql = " select a.bo_subject, a.bo_table, b.gr_subject
          from $cfg[table_board] a, $cfg[table_group] b
          where a.gr_id = b.gr_id
          order by b.gr_id, a.bo_table ";
$result = sql_query_error($sql);
while ($row = mysql_fetch_array($result)) {
    $tbl = "{$cfg[write_table_prefix]}{$row[bo_table]}";
    $sql2 = " select a.wr_id,
                    a.wr_parent_id,
                    a.mb_id,
                    a.wr_name,
                    a.wr_email,
                    a.wr_num,
                    a.wr_subject,
                    a.wr_comment,
                    a.wr_commentcnt,
                    a.wr_datetime,
                    b.mb_icon
                from $tbl a left join $cfg[table_member] b on (a.mb_id = b.mb_id)
              where a.wr_datetime >= '$intime'
              order by a.wr_id desc ";
    $result2 = sql_query_error($sql2);
    for ($i = 0; $row2 = mysql_fetch_array($result2); $i++) {
        if ($row2[wr_comment] > 0) {
            $sql3 = " select wr_subject
                        from $tbl
                      where wr_comment = 0
                        and wr_parent_id = '$row2[wr_parent_id]' ";
            $row3 = sql_fetch_array($sql3);
            $wr_subject = $row3[wr_subject];
        } else {
            $wr_subject = $row2[wr_subject];
        }
        $wr_subject = get_text($wr_subject);

        $key = $row2[wr_datetime] . $row[bo_table] . $row2[wr_id];
        $list[$key]->bo_table = $row[bo_table];
        $list[$key]->mb_id = $row2[mb_id];
        $list[$key]->mb_icon = $row2[mb_icon];
        $list[$key]->wr_id = $row2[wr_id];
        $list[$key]->wr_parent_id = $row2[wr_parent_id];
        $list[$key]->wr_email = $row2[wr_email];
        $list[$key]->wr_name = get_text(cut_str($row2[wr_name],12));
        $list[$key]->wr_subject = get_text(cut_str($wr_subject,65,'…'));
        $list[$key]->wr_comment = $row2[wr_comment];
        $list[$key]->wr_commentcnt = $row2[wr_commentcnt];
        $list[$key]->wr_datetime = $row2[wr_datetime];
    }
    mysql_free_result($result2);
}
mysql_free_result($result);
?>
<table width=100%>
<tr><td colspan=3 background='<?=$gnu_path?>/image/line_width.gif'></td></tr>
<tr>
    <td height=30 bgcolor=EEEEEE colspan=3 align=center>&nbsp; <b><font color=1079DE><?=$hours?> 시간 이내에 올라온 새글</font></b></td>
</tr>
<tr><td colspan=3 background='image/line_width.gif'></td></tr>
<?
if (count($list) > 0) {
    krsort($list);
    foreach ($list as $key=>$value) {
        $comment = "";
        $atag_comment = "";
        if ($value->wr_comment > 0) {
            $comment = "<span style='font-size:8pt;'>[c]</span> ";
            $atag_comment = "#c{$value->wr_id}";
        }

        $commentcnt = "";
        if ($value->wr_commentcnt > 0)
            $commentcnt = "<font size=-2>({$value->wr_commentcnt})</font>";

        $wr_name = gblayer($value->mb_id, $value->wr_name, $value->wr_email);      <==이거 삭제하면 페이지오류가 없네여>

        echo "<tr>";
        echo "<td width=130 align=center><font color=gray>[".$value->wr_datetime."]</font></td>";
        echo "<td>&nbsp; <a href='{$gnu_path}/bbs/gnuboard.php?bo_table=".$value->bo_table."&wr_id=".$value->wr_parent_id."$atag_comment'>";
        echo "<font color=#222222>$comment{$value->wr_subject} {$commentcnt}</font></a></td>";
        echo "<td width=120 align=center>$mb_icon$wr_name$admin_icon</td>";
        echo "</tr>";

        echo "<tr><td colspan=3 background='{$gnu_path}/image/line_width.gif'></td></tr>";
    }
} else
    echo "<td height=25 align=center>등록된 글이 없습니다.</td>";
?>
</table>

<p>
&nbsp;
<a href='<?=$gnu_path?>newlist.php?hours=1'>1시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=2'>2시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=3'>3시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=6'>6시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=12'>12시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=24'>24시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=48'>48시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=72'>72시간</a> |
<a href='<?=$gnu_path?>newlist.php?hours=168'>1주일</a>
<p>

</td>
</tr>
</table>

<?
include($gnu_path . 'tail.php');
include($gnu_path . 'tail.sub.php');
?>

댓글 전체

전체 9,564
그누3질답 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT