댓글은 써지되 레벨8이상과 자신만 볼려면 ..... 정보
댓글은 써지되 레벨8이상과 자신만 볼려면 .....본문
댓글을 쓰되 그 내용은 자신과 레벨8이상만 보게 하고 싶은데요...
흠...
여기에 제작의뢰 게시판이 그렇게 되어있더군요...
답변 부탁드립니다.
댓글 전체

view_comment.skin.php
<!-- 코멘트 리스트 -->
<div id="commentContents">
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
if ($list[$i][mb_id] == $member[mb_id] or $member[mb_level] >= 8) { // 추가
?>
...
<? } // 추가 ?>
<? } ?>
</div>
<!-- 코멘트 리스트 -->
<!-- 코멘트 리스트 -->
<div id="commentContents">
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i][wr_id];
if ($list[$i][mb_id] == $member[mb_id] or $member[mb_level] >= 8) { // 추가
?>
...
<? } // 추가 ?>
<? } ?>
</div>
<!-- 코멘트 리스트 -->
호호호 저도 하나 남기고 가용.
for($i=1;$i<=10;++$i){
$m_level[$i] = $i;
}
$level = '8'; // 8등급사용자가 접속하고... 어떤 조건식 $mma 이 넘어올경우...^^
switch($mma)
{
case 'write':
if($member[mb_level] >= $m_level[$level] ){
include_once("$m_path/doc/write.php");
}
else{
alert("your level is low \\n\\n call master please...");
}
break;
case 'topmenu':
if($member[mb_level] >= $m_level[$level] ){
include_once("$m_path/doc/menu.php");
}
else{
alert("your level is low \\n\\n call master please...");
}
break;
default:
echo '';
break;
}
^^ 8등급이면서.... 등급사용자에게 조건 변수에 따라서 내용이 날라지게 할경우. ^^
for($i=1;$i<=10;++$i){
$m_level[$i] = $i;
}
$level = '8'; // 8등급사용자가 접속하고... 어떤 조건식 $mma 이 넘어올경우...^^
switch($mma)
{
case 'write':
if($member[mb_level] >= $m_level[$level] ){
include_once("$m_path/doc/write.php");
}
else{
alert("your level is low \\n\\n call master please...");
}
break;
case 'topmenu':
if($member[mb_level] >= $m_level[$level] ){
include_once("$m_path/doc/menu.php");
}
else{
alert("your level is low \\n\\n call master please...");
}
break;
default:
echo '';
break;
}
^^ 8등급이면서.... 등급사용자에게 조건 변수에 따라서 내용이 날라지게 할경우. ^^
다른분들도 채택해 드리고 싶은데...ㅠㅠ..
넘 죄송합니다...그리고 너무들 고맙습니다.
넘 죄송합니다...그리고 너무들 고맙습니다.

와~ 찾던 정보입니다. 여러분 감사합니다.