묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
으앙 뭐가 잘못된거죠?
2003.01.22 20:13
// 이름 앞에 붙는 얼굴 아이콘
function get_face($data, $check=0) {
global $group;
if(!$connect) $connect=dbconn();
// 이름앞에 붙는 아이콘 정의;;
if($group[use_icon]==0) {
if($data[ismember]) {
$level_temp=mysql_fetch_row(mysql_query("select level from zetyx_member_table where no={$data[ismember]}"));
$level=$level_temp[0];
if($level==10) $face_image="<img src=images/admin10_face.gif>";
elseif($level==9) $face_image="<img src=images/admin9_face.gif>";
elseif($level==8) $face_image="<img src=images/admin8_face.gif>";
elseif($level==7) $face_image="<img src=images/admin7_face.gif>";
elseif($level==6) $face_image="<img src=images/admin6_face.gif>";
elseif($level==5) $face_image="<img src=images/admin5_face.gif>";
elseif($level==4) $face_image="<img src=images/admin4_face.gif>";
elseif($level==3) $face_image="<img src=images/admin3_face.gif>";
elseif($level==2) $face_image="<img src=images/admin2_face.gif>";
elseif($level==1) $face_image="<img src=images/admin1_face.gif>";
else {
if($group[icon]) $face_image="<img src=icon/$group[icon] border=0 align=absmiddle>";
else $face_image="<img src=images/admin9_face.gif border=0 align=absmiddle>";
}
}
else $face_image="<img src=images/blank_face.gif border=0 align=absmiddle> ";
}
$temp_name = get_private_icon($data[ismember], "1");
if($temp_name) $face_image="<img src='$temp_name' border=0 align=absmiddle>";
if($group[use_icon]<2&&$data[ismember]) $face_image .= "<b>";
//if($data[ismember]&&$data[parent]) $face_image="<b>";
//elseif($data[parent]) $face_image="";
return $face_image;
}
// 게시판 관리자인지 체크하는 부분
function check_board_master($member, $board_num) {
$temp = split(",",$member[board_name]);
for($i=0;$i<count($temp);$i++) {
$t = trim($temp[$i]);
if($t&&$t==$board_num) return 1;
}
return 0;
}
그룹아이콘과 레벨아이콘이 동시에 나오질 않네요 ㅠ_ㅠ..
이리저리 바꿔봤는데..
else를 if로 바꿔도 안되구 ㅠ_ㅠ..
도와주세요..
function get_face($data, $check=0) {
global $group;
if(!$connect) $connect=dbconn();
// 이름앞에 붙는 아이콘 정의;;
if($group[use_icon]==0) {
if($data[ismember]) {
$level_temp=mysql_fetch_row(mysql_query("select level from zetyx_member_table where no={$data[ismember]}"));
$level=$level_temp[0];
if($level==10) $face_image="<img src=images/admin10_face.gif>";
elseif($level==9) $face_image="<img src=images/admin9_face.gif>";
elseif($level==8) $face_image="<img src=images/admin8_face.gif>";
elseif($level==7) $face_image="<img src=images/admin7_face.gif>";
elseif($level==6) $face_image="<img src=images/admin6_face.gif>";
elseif($level==5) $face_image="<img src=images/admin5_face.gif>";
elseif($level==4) $face_image="<img src=images/admin4_face.gif>";
elseif($level==3) $face_image="<img src=images/admin3_face.gif>";
elseif($level==2) $face_image="<img src=images/admin2_face.gif>";
elseif($level==1) $face_image="<img src=images/admin1_face.gif>";
else {
if($group[icon]) $face_image="<img src=icon/$group[icon] border=0 align=absmiddle>";
else $face_image="<img src=images/admin9_face.gif border=0 align=absmiddle>";
}
}
else $face_image="<img src=images/blank_face.gif border=0 align=absmiddle> ";
}
$temp_name = get_private_icon($data[ismember], "1");
if($temp_name) $face_image="<img src='$temp_name' border=0 align=absmiddle>";
if($group[use_icon]<2&&$data[ismember]) $face_image .= "<b>";
//if($data[ismember]&&$data[parent]) $face_image="<b>";
//elseif($data[parent]) $face_image="";
return $face_image;
}
// 게시판 관리자인지 체크하는 부분
function check_board_master($member, $board_num) {
$temp = split(",",$member[board_name]);
for($i=0;$i<count($temp);$i++) {
$t = trim($temp[$i]);
if($t&&$t==$board_num) return 1;
}
return 0;
}
그룹아이콘과 레벨아이콘이 동시에 나오질 않네요 ㅠ_ㅠ..
이리저리 바꿔봤는데..
else를 if로 바꿔도 안되구 ㅠ_ㅠ..
도와주세요..
else {
if($group[icon]) $face_image="<img src=icon/$group[icon] border=0 align=absmiddle>";
else $face_image="<img src=images/admin9_face.gif border=0 align=absmiddle>";
이 부분을 아래 처럼 바꿔 보세요.
[ 그룹 아이콘, 레벨 아이콘 순으로 나타 내려면.. ]
if($group[icon]) $face_image="<img src=icon/$group[icon] border=0 align=absmiddle>".$face_image;
else $face_image="<img src=images/admin9_face.gif border=0 align=absmiddle>".$face_image;
[ 레벨 아이콘, 그룹 아이콘 순으로 나타 내려면.. ]
if($group[icon]) $face_image.="<img src=icon/$group[icon] border=0 align=absmiddle>";
else $face_image.="<img src=images/admin9_face.gif border=0 align=absmiddle>";