이것좀 봐주세요.ㅠㅠ

그누 쓰고있는데,

이름출력부분에

아래 소스 보면은

레벨 (2) -> 회원은

색상 랜덤

비회원 (1)은 #cecece

그리고 그 밑에

회원아이디가 'bot' 인 아이디느
초록으로


마지막으로 ( is_admin ) 최고관리자는

색상이 빨간색으로 표시

---------
인데, 계속 안되네요.

뭐가 잘못되었나요?

--------

<?php
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>

<? if($member[mb_level] == 2){ ?>
<font color="<?=$str[$no]?>"><?=$list[$i][wr_name]?></font>
<? } ?>

<? if($member[mb_level] == 1){ ?>
<font color="cecece"><?=$list[$i][wr_name]?></font>
<? } ?>


<? if($member[mb_id] == 'bot'){ ?>
<font color="green"><?=$list[$i][wr_name]?></font>
<? } ?>

<? if($is_admin){ ?>
<font color="red"><?=$list[$i][wr_name]?></font>
<? } ?>
|

댓글 1개

<?php
$str = array('#99cc00', '#666666', '#333333', '#484896', '#233548');
$no = rand(0, count($str) - 1);
?>

<? if($member[mb_id] == 'bot'){
echo "<font color='green'>";
}elseif($member[mb_level] == 2){
echo "<font color='$str[$no]'>";
}elseif($member[mb_level] == 1){
echo "<font color='cecece'>";
}elseif($is_admin){
echo "<font color='red'>";
}
?>
<?=$list[$i][wr_name]?></font>
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
13년 전 조회 1,445
13년 전 조회 1,019
13년 전 조회 947
13년 전 조회 995
13년 전 조회 1,134
13년 전 조회 2,248
13년 전 조회 1,541
13년 전 조회 1,529
13년 전 조회 2,659
13년 전 조회 872
13년 전 조회 2,456
13년 전 조회 1,185
13년 전 조회 1,709
13년 전 조회 979
13년 전 조회 792
13년 전 조회 977
13년 전 조회 1,034
13년 전 조회 1,556
13년 전 조회 776
13년 전 조회 2,671