포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

QA

포인트랭킹 최신글스킨으로 게시글 최신글 랭킹을 만들려고 하는데 호출이2개밖에 안되네요.

본문

<?php
if (!defined('_GNUBOARD_')) exit; //개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
include_once("./_common.php");
// 스넵이미지 생성함수
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<div style="background: #eee;height: 38px;border-top: 1px solid #e8e3ec;border-left: 1px solid #e8e3ec;border-right: 1px solid #e8e3ec;">
<li style="list-style-type: none;background: #fff;padding: 8px;width: 140px;height: 38px;border-top: 3px solid #2c3d47;text-align: center;">
            <a style="font-size: 16px;"href=""><?php echo $bo_subject; ?><?php echo $sca ?> - TOP10</strong></a>
                <div class="clear"></div>
</li>   
</div>
<div class="latest_jw_ga_bbs_01_box">
  <div style="margin-top: 0;height:180px;border: 1px solid #e8e3ec;padding: 10px 0px 5px 0px;">
    <li class="latest_jw_ga_bbs_01_cop">
<?php
$rank_rows = 10; //출력 수
$sql = " select * from {$g5[member_table]} where mb_point > '{$row[mb_point]}' {$sql_common} order by mb_point desc, mb_today_login desc limit {$rank_rows} ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    $rank = number_format($i + 1);
    if ($rank == 1) {
        $rank_bg = ' rank_bg';
    } else if ($rank <= 3) {
        $rank_bg = ' rank_bg';
    } else {
        $rank_bg = '';
    }
?>
        <span class="cop_txt">
            <span style="width: 25px;height: 20px;font-size: 12px;line-height: 20px;text-align: center;background: #2c3d47;color: #fff;margin: 0px 5px 0px 1px;float: left;"><?php echo $rank; ?></span>
            <a style="line-height:23px;margin: 0px 10px 0px 2px;"class="txt_blck" href="<?=$list[$i]['href']?>"><?php echo $list[$i]['subject'];?></a> <? echo $list[$i]['datetime']; ?>
        </span><?php } ?>
        </li>
    </div>
</div>
 

이 질문에 댓글 쓰기 :

답변 3

mb_today_login 로그인한 회원인지 오늘 또는 일주일등등 기간인지 체크해보시고 늘리거나 빼면 전체다 나올듯합니다

답변을 작성하시기 전에 로그인 해주세요.
전체 43
QA 내용 검색

회원로그인

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