최근게시물 적용
본문
안녕하세요
반응형 홈페이지 메인에 겔러리 최근게시물 을 나오게 하려고 적용 했는대 계속 오류만 나오고 있어요
테마에 를 적용 하여 제작했는대 다른 게시판 스킨을 넣고 싶어 적용 했더니 나오고 있지안습니다
최근게시물 나오는곳에 이렇게 작성 했구요
<!-- 메인화면 최신글 시작 -->
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/gallery-sol', 'notice', 4, 40);
?>
<div class="li_gall">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수, 캐시타임, option);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
$options = array(
'thumb_width' => 400, // 썸네일 width
'thumb_height' => 250, // 썸네일 height
);
echo latest('theme/gallery-sol', 'recruit', 4, 55, 1, $options);
?>
</div>
<!-- 메인화면 최신글 끝 -->
이렇게 작성했는대
오류메시지가
Warning: include(/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php): failed to open stream: No such file or directory in /host/home5/kmlo/html/lib/latest.lib.php on line 101
Warning: include(/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php): failed to open stream: No such file or directory in /host/home5/kmlo/html/lib/latest.lib.php on line 101
Warning: include(): Failed opening '/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /host/home5/kmlo/html/lib/latest.lib.php on line 101
Warning: include(/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php): failed to open stream: No such file or directory in /host/home5/kmlo/html/lib/latest.lib.php on line 101
Warning: include(/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php): failed to open stream: No such file or directory in /host/home5/kmlo/html/lib/latest.lib.php on line 101
Warning: include(): Failed opening '/host/home5/kmlo/html/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /host/home5/kmlo/html/lib/latest.lib.php on line 101
이렇게 나옵니다
혹스 스킨을 잘못업로드했나요?
답변 2
head 에 포함되어 있지만, head를 부르지 않았다면
상단에 include_once(G5_LIB_PATH.'/latest.lib.php'); 넣어주셔야 합니다.
/theme/companyBts2/skin/latest/gallery-sol/latest.skin.php 파일이 없다는 의미인 것 같습니다.
gallery-sol 디렉토리 및 그 안의 파일들이 /theme/companyBts2/skin/latest 에 올려져 있는지 확인하여,
없다면 ftp 로 업로드하면 될 듯 합니다.