E

레벨 제한 도와주세요 ㅠㅠ

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";
?>
<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
 <td background="<?=$g4[path]?>/service/recommend/img/box01.gif" width="200" height="7" colspan="3"></td>
</tr>
<tr>
 <td bgcolor="#d8d8d8" width="1"></td>
 <td width="198" align="center">
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
 <td height="20" colspan="2"><img src="<?=$g4[path]?>/service/recommend/img/title.gif" align="absmiddle"></td>
</tr>
<tr>
 <td height="5" colspan="2"></td>
</tr>
<tr>
 <td background="<?=$g4[path]?>/service/recommend/img/dot.gif" height="1" colspan="2"></td>
</tr>
<tr>
 <td height="5" colspan="2"></td>
</tr>
<?
$sql = " select *, count(*) as cnt from $g4[member_table] where mb_recommend != '' group by mb_recommend order by cnt desc limit 0, 10 ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql2 = " select * from $g4[member_table] where mb_id = '$row[mb_recommend]' ";
$row2 = sql_fetch($sql2);
$name = get_sideview($row2[mb_id], $row2[mb_nick], $row2[mb_email], $row2[mb_homepage]);
$re_cnt = number_format($row[cnt]);
$id_chk = get_member($row2[mb_id]);
if ($id_chk) {
?>
<tr height="28">
<td><img src="<?=$g4[path]?>/service/recommend/img/rank_<?=$i?>.gif" width="12" height="11" align="absmiddle"> <?=$name?></td>
<td align=right><font style=font-size:8pt; color=#777777><?=$re_cnt?>명</font></td>
</tr>
<? }} ?>
</table></td>
 <td bgcolor="#d8d8d8" width="1"></td>
</tr>
<tr>
 <td background="<?=$g4[path]?>/service/recommend/img/box02.gif" width="200" height="7" colspan="3"></td>
</tr>
</table>


위 소스에서 레벨 10이상 분들은 표시 안함해주시게 만들어주세요 ㅠㅠ
|

댓글 2개

무엇을 표시안함으로 한다는 것인가요?
어쨌던 회원 레벨을 추출해 와야하니
$id_chk = get_member($row2[mb_id]); 를 수정

$id_chk = get_member($row2[mb_id],"mb_id, mb_level");

if ($id_chk) { 을 수정

if ($id_chk[mb_level]<10) {
이 부분은 레벨 9 이하인 회원만 보이는 부분이 됩니다
<?}?>
... 카운터 숫자가 운영진을 제외해서

123이래야한느데
234이렇게 되네요 ㅠㅠ
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
16년 전 조회 866
16년 전 조회 1,624
16년 전 조회 1,614
16년 전 조회 1,337
16년 전 조회 1,026
16년 전 조회 884
16년 전 조회 1,528
16년 전 조회 1,216
16년 전 조회 833
16년 전 조회 925
16년 전 조회 1,660
16년 전 조회 2,055
16년 전 조회 783
16년 전 조회 1,107
16년 전 조회 853
16년 전 조회 1,203
16년 전 조회 969
16년 전 조회 773
16년 전 조회 953
16년 전 조회 964