index.php 를 홈피 메인으로 쓰려고 하는데요 정보
index.php 를 홈피 메인으로 쓰려고 하는데요본문
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "아이티포커스";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$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++) {
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?
// 최신글
$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("", $row['bo_table'], 12, 70);
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
// latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("", $row['bo_table'], 12, 70);
echo "<p>\n";
}
?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
----------------------------------------------------
news_web 이라는 스킨을 다운받고 news 라는 게시판을 생성하여
아래와 같이 소스를 바꿨는데요...
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "아이티포커스";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<table width="100%" cellpadding=0 cellspacing=0><tr><td valign=top>
<?=latest('news_web','news', 12, 70); // 최신글스킨명 게시판명 라인줄수 제목글자수길이?>
</td></tr></table>
<!-- 메인화면 최신글 끝 -->
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
-------------------------------------------------
이렇게 바꾸고 나니...
Warning: latest(./skin/latest/news_web/latest.skin.php): failed to open stream: No such file or directory in /home/btile/www/lib/latest.lib.php on line 29
Warning: latest(./skin/latest/news_web/latest.skin.php): failed to open stream: No such file or directory in /home/btile/www/lib/latest.lib.php on line 29
Warning: latest(): Failed opening './skin/latest/news_web/latest.skin.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/btile/www/lib/latest.lib.php on line 29
Warning: latest(./skin/latest/news_web/latest.skin.php): failed to open stream: No such file or directory in /home/btile/www/lib/latest.lib.php on line 29
Warning: latest(): Failed opening './skin/latest/news_web/latest.skin.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home/btile/www/lib/latest.lib.php on line 29
라는 오류메시지가 뜨는군요.... 초보라서 잘 이해가 안됩니다. 도와주시면 감사하겠습니다.
댓글 전체
<?=latest("최신게시물스킨",게시판아이디, 출력라인, 글자수);?>
이렇게 되는것인데요..
조세환님의 경우에는 최신게시물스킨이 없는경우인것 같습니다..
게시판 스킨이 아니고 그누보드/skin/latest <----여기안에 최신게시물 스킨 넣어야합니다
아마
<?=latest('news_web','news', 12, 70); // 최신글스킨명 게시판명 라인줄수 제목글자수길이?>
이부분을
<?=latest('basic','news', 12, 70); // 최신글스킨명 게시판명 라인줄수 제목글자수길이?>
이렇게하면 잘될것입니다^^
이렇게 되는것인데요..
조세환님의 경우에는 최신게시물스킨이 없는경우인것 같습니다..
게시판 스킨이 아니고 그누보드/skin/latest <----여기안에 최신게시물 스킨 넣어야합니다
아마
<?=latest('news_web','news', 12, 70); // 최신글스킨명 게시판명 라인줄수 제목글자수길이?>
이부분을
<?=latest('basic','news', 12, 70); // 최신글스킨명 게시판명 라인줄수 제목글자수길이?>
이렇게하면 잘될것입니다^^