레벨출력 문의 ..

레벨출력 문의 ..

QA

레벨출력 문의 ..

본문

여기있는 레벨 사용중이구요....
 
포인트 랭킹에 적용할려고 했으나.. 도저히...안되서 어쩔수없이 문의드립니다.....
아무리 해도 답이 없네요.
<?=level_icon($row[mb_id])?> 이렇게 해도 안되네요..
 
 
포인트 랭킹 소스 ------------------------------------------------
<?
include_once("_common.php");
include_once("$g4[path]/lib/mw.builder.lib.php");
$g4[title] = "누적 포인트순위";
include_once("_head.php");
$rows = 100;
$sql = "select mb_id, sum(po_point) as point from $g4[point_table] where po_point > 0 group by mb_id order by point desc";
$qry = sql_query($sql);
$i = 0;
$list = array();
while ($row = sql_fetch_array($qry)) {
    $mb = get_member($row[mb_id]);
    if ($row[mb_id] == $config[cf_admin]) continue;
    if ($mb[mb_level] < 2) continue;
    if ($mb[mb_leave_datel] != "") continue;
    if ($mb[mb_intercept_datel] != "") continue;
    $list[$i][rank] = $i+1;
    $list[$i][name] = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email]. $mb[mb_homepage]);
    $list[$i][point] = number_format($row[point]);
    if (++$i >= $rows) break;
}
$list_count = sizeof($list);
//$paging = get_paging($rows, $page, $total_page, "?page=");
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<style type="text/css">
.info { height:25px; margin:0 0 0 10px; font-size:13px; }
.line { border-top:1px solid #ddd; margin:10px 0 10px 0; }
.point-ranking { }
.point-ranking .head { font-weight:bold; text-align:center; height:30px }
.point-ranking .body { height:30px; padding:0; }
.point-ranking .body .rank { width:50px; text-align:right; }
.point-ranking .body .name { width:150px; text-align:left; padding-left:5px; }
.point-ranking .body .point { width:100px; text-align:right; }
.paging { clear:both; height:50px; text-align:center; margin:30px 0 0 0; }
</style>
<strong><?=$g4[title]?></strong> : - 포인트를 제외한 + 포인트값 순위입니다.
<div class="line"></div>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=0; $i<$rows/2 && $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="name">.<?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=$rows/2; $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
</tr>
</table>
<div class="line"></div>
<div class="paging"><?=$paging?></div>
<?
include_once("_tail.php");
?>
 

이 질문에 댓글 쓰기 :

답변 3

포인트 랭킹 소스 ------------------------------------------------
<?
include_once("_common.php");
include_once("$g4[path]/lib/mw.builder.lib.php");
$g4[title] = "누적 포인트순위";
include_once("_head.php");
$rows = 100;
$sql = "select mb_id, sum(po_point) as point from $g4[point_table] where po_point > 0 group by mb_id order by point desc";
$qry = sql_query($sql);
$i = 0;
$list = array();
while ($row = sql_fetch_array($qry)) {
    $mb = get_member($row[mb_id]);
    if ($row[mb_id] == $config[cf_admin]) continue; 
    if ($mb[mb_level] < 2) continue;
    if ($mb[mb_leave_datel] != "") continue;
    if ($mb[mb_intercept_datel] != "") continue;
    $list[$i][rank] = $i+1;
    $list[$i][mb_id] = $row[mb_id];
    $list[$i][name] = get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email]. $mb[mb_homepage]); 
    $list[$i][point] = number_format($row[point]);
    if (++$i >= $rows) break;
}
$list_count = sizeof($list);
//$paging = get_paging($rows, $page, $total_page, "?page=");
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<style type="text/css">
.info { height:25px; margin:0 0 0 10px; font-size:13px; }
.line { border-top:1px solid #ddd; margin:10px 0 10px 0; }
.point-ranking { }
.point-ranking .head { font-weight:bold; text-align:center; height:30px }
.point-ranking .body { height:30px; padding:0; }
.point-ranking .body .rank { width:50px; text-align:right; }
.point-ranking .body .name { width:150px; text-align:left; padding-left:5px; } 
.point-ranking .body .point { width:100px; text-align:right; }
.paging { clear:both; height:50px; text-align:center; margin:30px 0 0 0; }
</style>
<strong><?=$g4[title]?></strong> : - 포인트를 제외한 + 포인트값 순위입니다.
<div class="line"></div>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=0; $i<$rows/2 && $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="lvicon"><? level_icon($list[$i][mb_id]); ?></div> </td>
     <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=$rows/2; $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="lvicon"><? level_icon($list[$i][mb_id]); ?></div> </td>
     <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
</tr>
</table>
<div class="line"></div>
<div class="paging"><?=$paging?></div>
<?
include_once("_tail.php");
?>

이렇게 하면 어떠려나요.
ps. developer.lib.php 파일 수정하셨나요?
수정하셨으면 그것도 올려보세요.
이렇게한번 해보세욘 빨간색추가
 
 
 
포인트 랭킹 소스 ------------------------------------------------
<?
include_once("_common.php");
include_once("$g4[path]/lib/mw.builder.lib.php");
$g4[title] = "누적 포인트순위";
include_once("_head.php");
$rows = 100;
$sql = "select mb_id, sum(po_point) as point from $g4[point_table] where po_point > 0 group by mb_id order by point desc";
$qry = sql_query($sql);
$i = 0;
$list = array();
while ($row = sql_fetch_array($qry)) {
    $mb = get_member($row[mb_id]);
    if ($row[mb_id] == $config[cf_admin]) continue;
    if ($mb[mb_level] < 2) continue;
    if ($mb[mb_leave_datel] != "") continue;
    if ($mb[mb_intercept_datel] != "") continue;
    $list[$i][rank] = $i+1;
    $list[$i][name] = level_icon($mb[mb_id]).get_sideview($mb[mb_id], $mb[mb_nick], $mb[mb_email]. $mb[mb_homepage]);     
    $list[$i][point] = number_format($row[point]);
    if (++$i >= $rows) break;
}
$list_count = sizeof($list);
//$paging = get_paging($rows, $page, $total_page, "?page=");
?>
<script type="text/javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<style type="text/css">
.info { height:25px; margin:0 0 0 10px; font-size:13px; }
.line { border-top:1px solid #ddd; margin:10px 0 10px 0; }
.point-ranking { }
.point-ranking .head { font-weight:bold; text-align:center; height:30px }
.point-ranking .body { height:30px; padding:0; }
.point-ranking .body .rank { width:50px; text-align:right; }
.point-ranking .body .name { width:150px; text-align:left; padding-left:5px; }
.point-ranking .body .point { width:100px; text-align:right; }
.paging { clear:both; height:50px; text-align:center; margin:30px 0 0 0; }
</style>
<strong><?=$g4[title]?></strong> : - 포인트를 제외한 + 포인트값 순위입니다.
<div class="line"></div>
<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=0; $i<$rows/2 && $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="name">.<?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
    <td width="50%" valign="top">
 <table border=0 cellpadding=0 cellspacing=0 class="point-ranking">
 <? for ($i=$rows/2; $i<$list_count; $i++) { ?>
 <tr>
     <td class="body"> <div class="rank"><?=$list[$i][rank]?>.</div> </td>
     <td class="body"> <div class="name"><?=$list[$i][name]?></div> </td>
     <td class="body"> <div class="point"><?=$list[$i][point]?> 점</div> </td>
 </tr>
 <? } ?>
 </table>
    </td>
</tr>
</table>
<div class="line"></div>
<div class="paging"><?=$paging?></div>
<?
include_once("_tail.php");
?>
<? echo level_icon($list[$i][mb_id]); ?>
넣은거 다시 빼시고 아래 출력되는부분 이름앞에 넣어보세요
답변을 작성하시기 전에 로그인 해주세요.
전체 123,674 | RSS
QA 내용 검색

회원로그인

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