테스트 사이트 - 개발 중인 베타 버전입니다

레벨출력 문의 .. 채택완료

천년만년 11년 전 조회 8,588
여기있는 레벨 사용중이구요....
 
포인트 랭킹에 적용할려고 했으나.. 도저히...안되서 어쩔수없이 문의드립니다.....
아무리 해도 답이 없네요.
<?=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개

채택된 답변
+20 포인트
11년 전
포인트 랭킹 소스 ------------------------------------------------
<?
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 파일 수정하셨나요?
수정하셨으면 그것도 올려보세요.
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

천년만년
11년 전
안녕하세요? 김처로님.. 감사드립니다 꾸벅.!! 잘 적용됩니다~

그리고 히로1님께도 감사드립니다~

댓글을 작성하려면 로그인이 필요합니다.

11년 전
<? echo level_icon($list[$i][mb_id]); ?>
넣은거 다시 빼시고 아래 출력되는부분 이름앞에 넣어보세요
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

천년만년
11년 전
말씀데로 해봤지만.. 레벨은 안나오고 빈 공간 아이콘 레벨만 다 나옵니다..

댓글을 작성하려면 로그인이 필요합니다.

11년 전
이렇게한번 해보세욘 빨간색추가
 
 
 
포인트 랭킹 소스 ------------------------------------------------
<?
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");
?>
로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

천년만년
11년 전
헐... 빠른답변 감사드립니다.. 아래 포인트 랭킹 주소입니다..^^

http://mulim.woweb.net/page/help/point_sum_ranking.php
그대로 추가해서 넣었더니 이런식으로 나오네요

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인