2만포인트 다시걸고 질문합니다 ㅡ.ㅡ; 정보
2만포인트 다시걸고 질문합니다 ㅡ.ㅡ;본문
흐미..
아이콘사이즈 22x22 부분변경은 알겠는데
70x20 으로 하니 재 아이콘사이즈에 맞게는 되는데 회원분들이 22x22 이라 좀 어렵네요
그래서 기존:22x22 해놓고 저만 특별이 70x20 으로 설정할순없나요?[즉 아이콘만 표시될수있게요 저만..]
아이콘사이즈 22x22 부분변경은 알겠는데
70x20 으로 하니 재 아이콘사이즈에 맞게는 되는데 회원분들이 22x22 이라 좀 어렵네요
그래서 기존:22x22 해놓고 저만 특별이 70x20 으로 설정할순없나요?[즉 아이콘만 표시될수있게요 저만..]
댓글 전체

common.lib.php 파일에서
get_sideview 함수를 수정 하시면 될 것 같네요...
게시판에 나오는 회원이름은 get_sideview를 사용해서 표시하게 됩니다.
여기에 if($config['cf_admin'] == $mb_id) 을 추가 하셔서 원하시는 이미지를 넣으시면 될 것 같습니다^^
get_sideview 함수를 수정 하시면 될 것 같네요...
게시판에 나오는 회원이름은 get_sideview를 사용해서 표시하게 됩니다.
여기에 if($config['cf_admin'] == $mb_id) 을 추가 하셔서 원하시는 이미지를 넣으시면 될 것 같습니다^^

/bbs/register_form_update.php에서
if ($_FILES[mb_icon][size] <= $config[cf_member_icon_size])
이 부분을
if ($_FILES[mb_icon][size] <= $config[cf_member_icon_size] || $is_admin)
이렇게 바꾸시면 될 듯
(다른 멤버들은 아이콘 업로드 할 때 그림 크기를 비교하지만, 관리자는 안 하는 방식입니다. 코어를 건들여서 좀 찝찝하긴 하네요..ㅜㅜ)
if ($_FILES[mb_icon][size] <= $config[cf_member_icon_size])
이 부분을
if ($_FILES[mb_icon][size] <= $config[cf_member_icon_size] || $is_admin)
이렇게 바꾸시면 될 듯
(다른 멤버들은 아이콘 업로드 할 때 그림 크기를 비교하지만, 관리자는 안 하는 방식입니다. 코어를 건들여서 좀 찝찝하긴 하네요..ㅜㅜ)

function get_sideview($mb_id, $name="", $email="", $homepage="")
{
global $config;
global $g4;
$email = base64_encode($email);
$homepage = set_http($homepage);
$name = preg_replace("/\'/", "", $name);
$name = preg_replace("/\'/", "", $name);
$name = preg_replace("/\"/", """, $name);
$title_name = $name;
if ($mb_id) {
$tmp_name = "<span class='member'>$name</span>";
if ($config['cf_use_member_icon'] && $config['cf_admin'] == $mb_id) {
$mb_dir = substr($mb_id,0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb_id.gif";
if (file_exists($icon_file)) {
$width = '70';
$height = '20';
$tmp_name = "<img src='$icon_file' width='$width' height='$height' align='absmiddle' border='0'>";
}
}
else if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id,0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb_id.gif";
//if (file_exists($icon_file) && is_file($icon_file)) {
if (file_exists($icon_file)) {
//$size = getimagesize($icon_file);
//$width = $size[0];
//$height = $size[1];
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$tmp_name = "<img src='$icon_file' width='$width' height='$height' align='absmiddle' border='0'>";
if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름
$tmp_name = $tmp_name . " <span class='member'>$name</span>";
}
}
$title_mb_id = "[$mb_id]";
} else {
$tmp_name = "<span class='guest'>$name</span>";
$title_mb_id = "[비회원]";
}
return "<a href=\"javascript:;\" onClick=\"showSideView(this, '$mb_id', '$name', '$email', '$homepage');\" title=\"{$title_mb_id}{$title_name}\">$tmp_name</a>";
}
이렇게 하시면 될 것 같은데 아직 테스트는.......^^;
{
global $config;
global $g4;
$email = base64_encode($email);
$homepage = set_http($homepage);
$name = preg_replace("/\'/", "", $name);
$name = preg_replace("/\'/", "", $name);
$name = preg_replace("/\"/", """, $name);
$title_name = $name;
if ($mb_id) {
$tmp_name = "<span class='member'>$name</span>";
if ($config['cf_use_member_icon'] && $config['cf_admin'] == $mb_id) {
$mb_dir = substr($mb_id,0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb_id.gif";
if (file_exists($icon_file)) {
$width = '70';
$height = '20';
$tmp_name = "<img src='$icon_file' width='$width' height='$height' align='absmiddle' border='0'>";
}
}
else if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id,0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb_id.gif";
//if (file_exists($icon_file) && is_file($icon_file)) {
if (file_exists($icon_file)) {
//$size = getimagesize($icon_file);
//$width = $size[0];
//$height = $size[1];
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$tmp_name = "<img src='$icon_file' width='$width' height='$height' align='absmiddle' border='0'>";
if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름
$tmp_name = $tmp_name . " <span class='member'>$name</span>";
}
}
$title_mb_id = "[$mb_id]";
} else {
$tmp_name = "<span class='guest'>$name</span>";
$title_mb_id = "[비회원]";
}
return "<a href=\"javascript:;\" onClick=\"showSideView(this, '$mb_id', '$name', '$email', '$homepage');\" title=\"{$title_mb_id}{$title_name}\">$tmp_name</a>";
}
이렇게 하시면 될 것 같은데 아직 테스트는.......^^;