블로그 최신게시물을 스킨화 하기.

· 18년 전 · 3090
< 있는지 모르고 만들었습니다. >
 
1. 블로그의 최신게시물을 넣고 싶은곳에  아래 코드를..
 
 
        <!------------------블로그 최신글-------->
        <?
        echo latest_blog("basic", "블로그최근게시물","5", "$dv_id", "");
        ?>
  <!-----------------//블로그 최신글---->
 
 
 
2. expand 에 아래를 넣어 놓으세요.
 
 <?
// 블로그 최신글 축출
function latest_blog($skin_dir="", $blog_subjec ="", $blog_row, $options="", $options2="")
{
    global $current, $gb4, $config, $member, $g4, $urlencode, $is_admin;
    include_once("$g4[path]/lib/blog.lib.php");
    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/blog_latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/blog_latest/basic";
      //
   $dv_id = $options;
        if ($dv_id)
            $sql_dv_id = " and division_id='$dv_id' ";
        $sql = " select * from {$gb4['post_table']} where secret=1 $sql_dv_id order by id desc limit 15 ";
        $result = sql_query($sql);
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}
 
?>
 
 
 
3. 스킨을 다운받으셔서 아래의 경로에 올려놓으세요.
 
g4/skin/blog_latest/basic
 
 
 
이상입니다.

첨부파일

blog_latest.zip (21.4 KB) 52회 2007-05-13 02:11
gblog_cf.extend.php (832 bytes) 21회 2007-05-13 02:34
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 플러그인

그누보드에는 여러가지 기능 추가가 쉽도록 제작 되었습니다. 플러그인의 저작권은 해당 플러그인 제작자님께 있으며, 그누보드의 저작권과 다를 수 있습니다. 플러그인 다운로드시 좋아요와 감사의 코멘트를 남기시면 제작자에게 큰 힘이됩니다. ^^y

+
제목 글쓴이 날짜 조회
18년 전 조회 1,730
18년 전 조회 1,243
18년 전 조회 1,719
18년 전 조회 4,517
18년 전 조회 1,559
18년 전 조회 1,270
18년 전 조회 3,798
18년 전 조회 3,091
18년 전 조회 1,562
18년 전 조회 2,582
18년 전 조회 1,534
18년 전 조회 2,603
18년 전 조회 6,052
18년 전 조회 1,903
18년 전 조회 1,428
🐛 버그신고