메인페이지 최신글 제어가 안되네요...ㅠㅠ > 그누4 질문답변

그누4 질문답변

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

메인페이지 최신글 제어가 안되네요...ㅠㅠ 정보

메인페이지 최신글 제어가 안되네요...ㅠㅠ

본문

http://shuangliu.cafe24.com/
위 사이트로 들어가 보시면 최신글 목록이 4개가 있습니다.
두개만 내 보이고 싶은데 어디서 수정을 해 줘야할지 잘 모르겠습니다.
index.php 파일에 소스는 아래와 같습니다.

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<style type="text/css">
<!--
body {
 background-image: url(http://shuangliu.cafe24.com/new/main/img/main_bg.gif);
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style>

<!-- 메인화면 최신글 시작 -->
<table bgcolor="white" width="0" border="0" cellspacing="0" cellpadding="0">
  <tr valign="bottom">
    <th scope="row"><img src="http://shuangliu.cafe24.com/new/main/img/sl_main_13.gif" width="490" height="499" /></th>
    <td><table bgcolor="white" width="0" border="0" cellspacing="0" cellpadding="0">
      <tr height="120">
        <th scope="row"><?
//  최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
    echo latest("basic", $row['bo_table'], 3, 60);
    echo "<p>\n";
}
?></th>
      </tr>

      <tr height="120">
        <th scope="row">&nbsp;</th>
      </tr>
      <tr valign="bottom" height="101">
        <th scope="row" width="427"><img src="http://shuangliu.cafe24.com/new/main/img/sl_main_21.gif" width="427" height="101" /></th>
      </tr>
    </table></td>
    <td><img src="http://shuangliu.cafe24.com/new/main/img/sl_main_15.gif" width="83" height="499" /></td>
  </tr>
</table>
<?
include_once("./new/main/main_bottom.php");

고수님들 부탁드립니다.

댓글 전체

<?
//  최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
    echo latest("basic", $row['bo_table'], 3, 60);
    echo "<p>\n";
}
?>
이 부분을
<?  latest("basic", $row['bo_table'], 3, 60);
      latest("basic", $row['bo_table'], 3, 60); ?>

 ( basic ( 최신글 스킨 변경 안하셔도 됩니다, ) , $row['bo_table'] ( 원하는 게시판 2개 각각 쓰세요)
, 3 ( 최신글 갯수 ) , 60 ( 최신글 제목 글자수 ) ) 를 수정 하시면 됩니다.

이것이 어려 우시면

for ($i=0; $row=sql_fetch_array($result); $i++) { 를
for ($i=0; 2; $i++) {
전체 66,558 |RSS
그누4 질문답변 내용 검색

회원로그인

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