까꿍♥전체 댓글 출력 최근게시물 아쿠아 스타일 정보
최근게시물 까꿍♥전체 댓글 출력 최근게시물 아쿠아 스타일
관련링크
http://www.ggaggung.co.kr
290회 연결
http://www.ollehnews.com
284회 연결
첨부파일
본문
이 스킨은
RINIX 님이 만드신 스킨을 수정한 스킨입니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=84959&sca=%C3%D6%B1%D9%B0%D4%BD%C3%B9%B0&sfl=wr_subject&stx=%C4%DA%B8%E0%C6%AE&sop=and
------------------------------------------------------------------
압축해제하시면 폴더에 fixing.lib.php 와 comment.lib.php 파일 2개가 있으며
basic폴더가 있습니다.
[설치]
압축해제후 lib 파일은 lib 폴더에 업로드 하신후 comment.lib.php 파일을 인클루드 하세요.
include_once("$g4[path]/lib/comment.lib.php ");
전 skin 폴더에 newcomment 폴더를 만들고 그 안에 basic를 넣었습니다.
호출은
<?=newcomment("전체최근코멘트", "basic", 5,24)?> 입니다.
fixing.lib.php 파일을 적용하신분은 중간생략하셔도 됩니다.
common.php 파일 350줄 근처로 보시고 아래와 같이 수정하세요.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 보드 설정값을 불러 저장
include_once("$g4[path]/lib/fixing.lib.php");
if (isset($bo_table)) {
//$board = sql_fetch(" select * from {$g4['board_table']} where bo_table = '$bo_table' ");
$num = $g4_board[num][$bo_table];
$board = $g4_board[$num];
if ($board['bo_table']) {
$gr_id = $board['gr_id'];
$write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$comment_table = $g4['write_prefix'] . $bo_table . $g4['comment_suffix']; // 코멘트 테이블 전체이름
if ($wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
}
if (isset($gr_id)){
//$group = sql_fetch(" select * from {$g4['group_table']} where gr_id = '$gr_id' ");
$num = $g4_group[num][$gr_id];
$group = $g4_group[$num];
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
위내용에서 실질적으로는 include_once("$g4[path]/lib/fixing.lib.php"); 만있으면됩니다.
그외 내용은 fixing.lib.php 파일에서 저장한 내용을 디비에서 다시 불러들이는 내용이여서 위와 같이 수정하시면 쿼리를 줄일수 있습니다.
그외 latest.lib.php 파일의 수정은 아래 소스를 붙여 넣기 하세요.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
global $g4, $g4_board;
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);
$num = $g4_board[num][$bo_table];
$board = $g4_board[$num];
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
// 위의 코드 보다 속도가 빠름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num 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;
}
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latest.lib.php 파일 또한 수정을 안해도 됩니다.
수정하신경우 다량으로 최신글이 불러지는 페이지에서 불러진최신글의 수만큼 쿼리수가 줄어듭니다.
함수 호출은 head.php 파일 에서 원하시는 위치에서 <?=comment("타이틀", "스킨명", 목록수, 제목길이)?> 를 적어주시면 됩니다.
[기능]
1. 전체 최신 코멘트 보기
2. 비밀글 작성자나 최고관리자만 보여짐.
RINIX 님이 만드신 스킨을 수정한 스킨입니다.
http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=84959&sca=%C3%D6%B1%D9%B0%D4%BD%C3%B9%B0&sfl=wr_subject&stx=%C4%DA%B8%E0%C6%AE&sop=and
------------------------------------------------------------------
압축해제하시면 폴더에 fixing.lib.php 와 comment.lib.php 파일 2개가 있으며
basic폴더가 있습니다.
[설치]
압축해제후 lib 파일은 lib 폴더에 업로드 하신후 comment.lib.php 파일을 인클루드 하세요.
include_once("$g4[path]/lib/comment.lib.php ");
전 skin 폴더에 newcomment 폴더를 만들고 그 안에 basic를 넣었습니다.
호출은
<?=newcomment("전체최근코멘트", "basic", 5,24)?> 입니다.
fixing.lib.php 파일을 적용하신분은 중간생략하셔도 됩니다.
common.php 파일 350줄 근처로 보시고 아래와 같이 수정하세요.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 보드 설정값을 불러 저장
include_once("$g4[path]/lib/fixing.lib.php");
if (isset($bo_table)) {
//$board = sql_fetch(" select * from {$g4['board_table']} where bo_table = '$bo_table' ");
$num = $g4_board[num][$bo_table];
$board = $g4_board[$num];
if ($board['bo_table']) {
$gr_id = $board['gr_id'];
$write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$comment_table = $g4['write_prefix'] . $bo_table . $g4['comment_suffix']; // 코멘트 테이블 전체이름
if ($wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
}
if (isset($gr_id)){
//$group = sql_fetch(" select * from {$g4['group_table']} where gr_id = '$gr_id' ");
$num = $g4_group[num][$gr_id];
$group = $g4_group[$num];
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
위내용에서 실질적으로는 include_once("$g4[path]/lib/fixing.lib.php"); 만있으면됩니다.
그외 내용은 fixing.lib.php 파일에서 저장한 내용을 디비에서 다시 불러들이는 내용이여서 위와 같이 수정하시면 쿼리를 줄일수 있습니다.
그외 latest.lib.php 파일의 수정은 아래 소스를 붙여 넣기 하세요.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?
if (!defined('_GNUBOARD_')) exit;
// 최신글 추출
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
global $g4, $g4_board;
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);
$num = $g4_board[num][$bo_table];
$board = $g4_board[$num];
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
//$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
// 위의 코드 보다 속도가 빠름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num 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;
}
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
latest.lib.php 파일 또한 수정을 안해도 됩니다.
수정하신경우 다량으로 최신글이 불러지는 페이지에서 불러진최신글의 수만큼 쿼리수가 줄어듭니다.
함수 호출은 head.php 파일 에서 원하시는 위치에서 <?=comment("타이틀", "스킨명", 목록수, 제목길이)?> 를 적어주시면 됩니다.
[기능]
1. 전체 최신 코멘트 보기
2. 비밀글 작성자나 최고관리자만 보여짐.
추천
5
5
댓글 전체
찾던 자료네요.감사합니다.
올 컨셉
딱 찾던 자료네요..^^
쾅 추천~
감사합니다.

감사합니다
전체 댓글 출력 최근게시물