회원 아이콘 문제.. > 그누3질답

그누3질답

회원 아이콘 문제.. 정보

회원 아이콘 문제..

본문

회원들이 가입할때 본인들의 사진을 올리게 하고 싶어서..
작업을 했는데 관리자 회원 리스트에서도 회원  이름대신 아이콘이 사진이 나오더라구요..
어디서 해결을 해야 하는지 모르겠네요..
답변 좀 부탁드리겠습니다.
회원 필드에 이미지가 올라가면 아이콘으로 구별되는 건까지는 해결을 봤는데..
이건 어디서 해결을 해야 하는지 모르겠네요
  • 복사

댓글 전체

1번째 방법
********************************************************************
memberlist.php
138번째 줄  $mb_name  ==>>  $row[mb_name]  이런식으로 바꾸면 이름 나오죠.. ^^
간단한 방법................

********************************************************************
2번째 방법...

gnuboard.lib.php  요파일..
533 번째 줄 보시면...
=================================================================
        if ($cfg[mb_icon_only] != 2)
        {
            $icon_file = "./data/member/$mb_id.gif";
            if (file_exists($icon_file) && is_file($icon_file)) {
                $size = getimagesize($icon_file);
                $width = $size[0];
                $height = $size[1];
                if ($width > $cfg[mb_icon_width]) {
                    $width = $cfg[mb_icon_width];
                }
                if ($height > $cfg[mb_icon_height]) {
                    $height = $cfg[mb_icon_height];
                }
                $str .= "<img src='$icon_file' width='$width' height='$height' align=absbottom title='$name ($mb_id)'> ";
                $is_icon = true;
            }
        }

        if ($cfg[mb_icon_only] != 1 || ($cfg[mb_icon_only] == 1 && !$is_icon))
=================================================================
이부분 보시면 아이콘이 있을경우 아이콘 출력하라고 되어있습니다..
이부분만 삭제하면되게죠.... ^^

********************************************************************

3번째 방법 (2번 방식에서 오류 발생시...)

bbs/admin/memberlist.php  요파일
132번째 줄
    $mb_name = gblayer($row[mb_id], $row[mb_name], $row[mb_email], $row[mb_homepage]);
요눔을

    $mb_name = gblayerzzz($row[mb_id], $row[mb_name], $row[mb_email], $row[mb_homepage]);
로 바꾸고

gnuboard.lib.php  요파일에..
////////////////////////////
// 아이콘 삭제 쪽지 레이어
function gblayerzzz($mb_id, $name='', $email='', $homepage='', $open=0)
{
    global $cfg;
    static $layerno = 0;

    $layerno++;

    $email = preg_replace("/@/", "&#064;", $email);
    $homepage = set_http($homepage);
    $profile = 1;

    // 3.34
    // $cfg[mb_icon_only] 값에 따라 회원아이콘, 이름을 다르게 출력함
    $is_icon = false;
    $str = "<span onmousedown=\"gblayeraction(event, 'gblayer{$layerno}', 'visible')\" style='cursor:hand;'>";
    if ($mb_id) {
            $str .= "<span title='$name ($mb_id)'><span class=name>$name</span></span>";

    } else {
        $str .= $name;
    }
    $str .= "</span>";

    // 3.29
    $name = preg_replace("/\"/", "&#034;", $name);
    $name = preg_replace("/\'/", "", $name);
    $str .= "<script language='JavaScript'>gblayer('gblayer{$layerno}', '{$mb_id}', '{$name}', '{$email}', '{$homepage}', '{$profile}', './bbs');</script>";
    return $str;
}

이런식으로 하나 생성하는 방법도 있고요..
********************************************************************
원하는 대답인지 모르겠네요...^^
© SIRSOFT
현재 페이지 제일 처음으로