봐주세요... > 그누4 질문답변

그누4 질문답변

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

봐주세요... 정보

봐주세요...

본문

그누보드폴더는 루트안에 gnuboard4로 들어있어요

<?
$g4_path = "./gnuboard4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
?>

<? echo latest("default", "notice_donu", 4, 18)?>


요렇게 넣었는데요
회색테두리는 나왔는데 안의 내용은 없고 사진처럼 오류메시지만 나와요...
이게 탭형식최근게시물인데...어떤어떤 테이블을 출력하는건지 그건 어디에다 넣는건가요?
잘은 모르지만 그걸 안넣어서 그런것 같은데...

출력하고 싶은 테이블명은 notice_donu하고 freeboard_donu 에요...


latest.list.skin.php 파일은 ↓ 아래에....

<?
@header('Content-Type: text/html; charset=euc-kr');
include_once("./_common.php");
?>
<ul class="txt_list1">
<?
$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";

$tmp_write_table = $g4['write_prefix'].$bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows";
$result = sql_query($sql);
$num = @mysql_num_rows($result);


for ($i=0; $row = sql_fetch_array($result); $i++){
 $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
?>
<li>
<?
 echo $list[$i]['icon_reply']." ";
 echo "<a href='{$list[$i]['href']}'>";
 if ($list[$i]['is_notice'])
  echo "<strong>{$list[$i]['subject']}</strong>";
 else
  echo "{$list[$i]['subject']}";
 echo "</a>";

 if ($list[$i]['comment_cnt'])
  echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:9px;font-family:verdana;color:#c4c4c4;font:bold;margin-top:0px;'><img src='$latest_skin_path/img/icon_comment.gif' border='0' align='absmiddle'> {$list[$i]['comment_cnt']}</span></a> ";

 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'];
?>
</li>
<? } ?>
<? if (count($list) == 0) { ?>
<li>등록된 게시물이 없습니다.</li><? } ?>
</ul>

댓글 전체

<? echo latest("default", "notice_donu",freeboard_donu 4, 18)?>

요렇게 .. 그게 안되면.. <?=latest("dafault","notice_donu","4","18");?> 요렇게 ..

가운데정렬로 하려면 .. <tr><td align="center"><?=latest("dafault","notice_donu","4","18");?></td></tr>

요렇게 .. ~^^ 안돼시면 말씀좀..
문제는 파일명부터 있습니다.. ㅅ=;
latest.list.skin.php 는 원래 latest.skin.php 이어야하며, 이 파일내에서 sql을 따로 안불러도 됩니다.

$latest_skin_path = "$g4[path]/skin/latest/$skin_dir";

$tmp_write_table = $g4['write_prefix'].$bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows";
$result = sql_query($sql);
$num = @mysql_num_rows($result);

이부분 빼시구요

$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);

이부분도 빼시구요

@header('Content-Type: text/html; charset=euc-kr');
include_once("./_common.php");

이부분도 빼세요

basic 최근게시물 스킨을 참조하셔서 만드세요 ^^
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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