메인페이지 최신글 제어가 안되네요...ㅠㅠ 정보
메인페이지 최신글 제어가 안되네요...ㅠㅠ본문
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"> </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");
고수님들 부탁드립니다.
위 사이트로 들어가 보시면 최신글 목록이 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"> </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";
}
?>
이 부분을
// 최신글
$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++) {
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++) {
맨토님 답변 감사드립니다...^^