멤버랭킹에서 관리자와 특정아이디 숨기는 법은 없나요?

계급스킨과 회원랭킹 노출 스킨을 이용하고 있는데요.
main_class_rank.php를 수정하여 관리자 아이디인 admin 는 노출이 안됩니다만,
그 외에 운영용 몇개 아이디들도 노출 안하고 싶습니다. 방법이 없을까요?
아래는 main_class_rank.php 소스입니다.
어딜 어떻게 손봐야할지^^;
알려주세요..

<style type="text/css">
<!--
td { font-family:굴림; font-size:8pt; }
.text { font-size:8pt; font-family:굴림; color:#999999; }
.text2 { font-size:8pt; font-family:굴림; color:#333333; }
-->
</style>

<table cellpadding="5" cellspacing="5" width="75%">
<tr>

<td valign=top>
<table cellpadding="0" cellspacing="0">
<tr>

<?
$sql = " select count(*) as cnt from $g4[member_table] where mb_id <> '".$config[cf_admin]."'";
$row = sql_fetch($sql);
$total_count = $row[cnt];

$rows = 10;
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함

$mod = 48;
$tbl_col =2 ;

$tbl_col_sep = (int)($mod / $tbl_col) + ($mod % $tbl_col) ;
$sql2 = " select * from $g4[member_table]
where mb_id <> '".$config[cf_admin]."'
order by mb_point desc, mb_today_login desc
limit $from_record, 10 ";

$result2 = sql_query($sql2);

for ($i=0; $row=sql_fetch_array($result2); $i++)
{
// if ($i && $i%$mod==0)
// echo "</td><td valign=top>";

$rank = (($page - 1) * $rows) + $i + 1;
$name = get_sideview($row[mb_id], $row[mb_id], $row[mb_name], $row[mb_email], $row[mb_homepage]);
//$name = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$point = number_format($row[mb_point]);
$id = $row[mb_id];


?>


<tr height=10 >
<td width="5%" align="center"><span class="text2"><?=$rank?></span></td>
<td width="40%"><span class="text2">&nbsp;<?=$row[mb_nick]?></span></td>
<td width="40%" align="right"><span class="text2">
<?=$point?>&nbsp;점</span></td>
<td width="10%" align="center">&nbsp;
<!-- 계급장 보이는 부분 -->
<?=level_icon($row[mb_id])?>
<!-- 계급장 보이는 부분 끝-->
</td>
<tr>
<td colspan="4" height="1" background="img/dot_line2.gif"></td>
</tr>
<?
if ($i==$tbl_col_sep) {
?>

<? }
} ?>
</table>
</td>
</tr>
</table>
|

댓글 6개

$sql = " select count(*) as cnt from $g4[member_table] where mb_id <> '".$config[cf_admin]."'";
이걸
$sql = " select count(*) as cnt from $g4[member_table] where mb_level<10'";
이렇게해서 레벨 10은 안보이게 하면 어떨까요? 관리용 아이디라는게 전부 레벨10이라는 전제하에.. ^^;
아래쪽 sql문도 같은 방법으로 수정하면 되겠죠.
먼지손님 답변 고마워요... 근데 제가 php를 잘 몰라서요^^; 두번째 sql문은 어떻게 해야할까요? 그냥 2번째줄을 똑같이 다 지우고 알려주신걸로 바꾸나요?
$sql2 = " select * from $g4[member_table]
where mb_id<10
order by mb_point desc, mb_today_login desc
limit $from_record, 10 ";
php는 모르시더라도 원문과 수정문을 보시면 차이점을 발견하실 수 있을거에요.. ^^;;
먼지손님^^; 하라는대로 했는데 에러가 나서요.

select count(*) as cnt from g4_member where mb_level<10'
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1

error file : /index.php

보니까 '나 "가 하나 빠진거같은데.. 혹시 이거때문에 생기는 오류인가요?
자꾸 귀찮게 해서 죄송ㅎㅎ
아.. 이번게 아니고 저번거에서 홑따옴표가 들어갔었네요.. 죄송합니다 ^^;
$sql = " select count(*) as cnt from $g4[member_table] where mb_level<10";
먼지손님 덕분에 깔끔하게 완료했습니다^^
디지인만 할줄 알다보니 PHP 잘하시는 분들 보면 정말 부러워요..^^;
고맙고 또 고맙습니다.
새해 복 많이 받으세여!
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 957
14년 전 조회 960
14년 전 조회 846
14년 전 조회 965
14년 전 조회 967
14년 전 조회 2,020
14년 전 조회 958
14년 전 조회 960
14년 전 조회 1,572
14년 전 조회 1,166
14년 전 조회 743
14년 전 조회 955
14년 전 조회 744
14년 전 조회 939
14년 전 조회 3,248
14년 전 조회 784
14년 전 조회 933
14년 전 조회 1,521
14년 전 조회 840
14년 전 조회 514
🐛 버그신고