아웃로그인에서 회원아이콘 보이게 하는 방법 정보
아웃로그인에서 회원아이콘 보이게 하는 방법본문
댓글 전체
저는 발코딩으로 해결했습니다.
outlogin.skin.2.php에 아래 소스 넣어주시고
<?
$mb_id = $member[mb_id];
$mb_dir = substr($mb_id,0,2);
$icon_file = $g4['path']."/data/member/".$mb_dir."/".$mb_id.".gif";
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$ck = file_exists($icon_file);
if(!$ck) {
$icon = $outlogin_skin_path."/img/man.gif"; //아이콘 없을 때 보여지는 기본 이미지
} else {
$icon = $icon_file;
}
?>
출력할곳에 이렇게 쓰시면 잘 나옵니다.
<img src="<?=$icon?>" width="<?=$width?>" height="<?=$height?>">
outlogin.skin.2.php에 아래 소스 넣어주시고
<?
$mb_id = $member[mb_id];
$mb_dir = substr($mb_id,0,2);
$icon_file = $g4['path']."/data/member/".$mb_dir."/".$mb_id.".gif";
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$ck = file_exists($icon_file);
if(!$ck) {
$icon = $outlogin_skin_path."/img/man.gif"; //아이콘 없을 때 보여지는 기본 이미지
} else {
$icon = $icon_file;
}
?>
출력할곳에 이렇게 쓰시면 잘 나옵니다.
<img src="<?=$icon?>" width="<?=$width?>" height="<?=$height?>">