최근 게시물을 조금수정해서.. 추천베스트, 조회수 베스트,,, > 그누4 스킨

그누4 스킨

스킨의 저작권은 해당 스킨 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다.
스킨 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y
그누보드와 관련이 있지만 스킨과 빌더가 아니면 플러그인 게시판에 올려주세요.

최근 게시물을 조금수정해서.. 추천베스트, 조회수 베스트,,, 정보

최근게시물 최근 게시물을 조금수정해서.. 추천베스트, 조회수 베스트,,,

첨부파일

chuchun.zip (22.2K) 574회 다운로드 2006-04-22 18:08:07

본문

설명 사진
처음으로 스킨을 올려보내요...^.^

다음 텔존 게시판을 보고 만들었습니다...

게시판 상단에 항상 따라다니는 추천베스트, 조회수베스트...

/skin/latest/ 폴더에 chuchun 폴더를 업로드하시구

홈페이지 루트 폴더에 best5.php 파일을 업로드 하시고

/bbs/board_head.php

파일을

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

// 게시판 관리의 상단 파일 경로
if ($board[bo_include_head])
    @include ($board[bo_include_head]);

// 게시판 관리의 상단 이미지 경로
if ($board[bo_image_head])
    echo "<img src='$g4[path]/data/file/$bo_table/$board[bo_image_head]' border='0'>";

아래 부분만 추가
####################################################
// cheditor 스킨만 추천글 나오게
if($board_skin_path=='../skin/board/cheditor') { // cheditor 스킨만 추천글나오게
@include ("../best5.php");
}
####################################################
// 게시판 관리의 상단 내용
if ($board[bo_content_head])
    echo stripslashes($board[bo_content_head]);
?>

이렇게 수정하시면 링크1에 있는거 처럼 게시판 어디에서나 베스트 추천과 베스트 조회가 나옵니다..

데모사이트  http://www.7korea.net/bbs/board.php?bo_table=board_1_1
추천
4

댓글 전체

오잉~~
왜 난 안되지?? 흑흑
시킨대로 안해서 그런가???
저는 아래처럼 나오네요...왜 그럴까요?

http://www.damoa.biz/g40619/bbs/board.php?bo_table=damoa_biz&wr_id=15

제가 바꾼건 cheditor글이 없어서 rookie로 바꿧거든요.
best5.php 33번줄에
<td colspan="3"><img src="/skin/latest/chuchun/img/best_bottom.jpg" width="553">
이걸
<td colspan="3"><img src="/g40619/skin/latest/chuchun/img/best_bottom.jpg" width="553">
이걸로 바꿔주시구요,.,..

47줄에 /image/banner/hit1004_142_200.gif 이 이미지 경로를
http://www.7korea.net/image/banner/hit1004_142_200.gif  이경로로 바꿔주시면 나올겁니다..

다운받을 파일 수정된거 올릴께요..
$titles 이변수는

best5.php에 있는

## latest1("chuchun", $bo_table, 5, 36, "wr_hit", 30, 2);##

이부분의 마직 숫자 2가 적용되는 변수입니다..

1이면 추천수 베스트이구요
2이면 조회수 베스트에요..^.^
아~~ 제가 그걸 안올린거 같네요...

/lib/lastest.lib.php

여기에

// 최신글 추출
function latest1($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options, $before_day, $titles)
{
$before_time = date("Y-m-d H:i:s", mktime() - (86400 * $before_day));
global $g4;

    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";

    $list = array();

    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);

    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 and wr_datetime >= '$before_time' order by $options desc limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();

    return $content;
}

?>
이걸 추가하시면 됩니다... 깜빡했었네요...^.^
좋은스킨 멋진 팁이군요 감사합니다

스킨이 게시판목록, 보기, 쓰기 페이지에도 다 나오네요
게시판목록에 한번만 노출되면 좋을거 같네요

####################################################
// cheditor 스킨만 추천글 나오게
if($board_skin_path=='../skin/board/cheditor') { // cheditor 스킨만 추천글나오게
@include ("../best5.php");
}
####################################################

이 부분을  /bbs/board_head.php에 삽입하지 말고
/skin/board/cheditor/list.skin.php 첫줄에 삽입하면 한번만 나오더군요
좋은 자료 감사합니다^^*
근데 혹시 갤러리이미지에서 추천이미지만 따로 상단에 출력할수는 없나요???
무진장 궁금합니다~~~~~~!!
전체 2 |RSS

회원로그인

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