회원이름 누르면 나오는 리스트
본문
회원이름 누르면 나오는 리스트
'자기소개','쪽지보내기','메일보내기'.....등등
이거 리스트 안나오게 할수 없나여?
답변 4
그러다면요 회원이름 이 있는 소스 를 찾아서 어떤 함수가 처리 가되는 지 찾아보세요
있습니다.
lib/common.lib.php 수정 하면됩니다
// 회원 레이어
function get_sideview($mb_id, $name='', $email='', $homepage='')
{
global $config;
global $g5;
global $bo_table, $sca, $is_admin, $member, $aslang;
$email_enc = new str_encrypt();
$email = $email_enc->encrypt($email);
$homepage = set_http(clean_xss_tags($homepage));
$name = get_text($name, 0, true);
$email = get_text($email);
$homepage = get_text($homepage);
$tmp_name = "";
if ($mb_id) {
$tmp_name = '<a href="'.G5_BBS_URL.'/profile.php?mb_id='.$mb_id.'" class="sv_member" target="_blank" onclick="return false;">';
if ($config['cf_use_member_icon']) {
$mb_dir = substr($mb_id,0,2);
$icon_file = G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
if (file_exists($icon_file)) {
$width = $config['cf_member_icon_width'];
$height = $config['cf_member_icon_height'];
$icon_file_url = G5_DATA_URL.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
$tmp_name .= '<img src="'.$icon_file_url.'" width="'.$width.'" height="'.$height.'" alt="">';
if ($config['cf_use_member_icon'] == 2) // 회원아이콘+이름
$tmp_name = $tmp_name.' '.$name;
} else {
$tmp_name = $tmp_name." ".$name;
}
} else {
$tmp_name = $tmp_name.' '.$name;
}
$tmp_name .= '</a>';
//$title_mb_id = '['.$mb_id.']';
} else {
if(!$bo_table)
return $name;
$tmp_name = '<a href="'.G5_BBS_URL.'/board.php?bo_table='.$bo_table.'&sca='.$sca.'&sfl=wr_name,1&stx='.$name.'" class="sv_guest" onclick="return false;">'.$name.'</a>';
//$title_mb_id = '[비회원]';
}
$str = "<span class=\"sv_wrap\">\n";
$str .= $tmp_name."\n";
$str2 = "<span class=\"sv\">\n";
if($mb_id)
$str2 .= "<a href=\"".G5_BBS_URL."/memo_form.php?me_recv_mb_id=".$mb_id."\" onclick=\"win_memo(this.href); return false;\">".$aslang['sv_memo']."</a>\n"; //쪽지보내기
if($email)
$str2 .= "<a href=\"".G5_BBS_URL."/formmail.php?mb_id=".$mb_id."&name=".urlencode($name)."&email=".$email."\" onclick=\"win_email(this.href); return false;\">".$aslang['sv_email']."</a>\n"; //메일보내기
if($homepage)
$str2 .= "<a href=\"".$homepage."\" target=\"_blank\">".$aslang['sv_homepage']."</a>\n"; //홈페이지
if($mb_id)
$str2 .= "<a href=\"".G5_BBS_URL."/profile.php?mb_id=".$mb_id."\" onclick=\"win_profile(this.href); return false;\">".$aslang['sv_profile']."</a>\n"; //자기소개
if($bo_table) {
if($mb_id)
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=mb_id,1&stx=".$mb_id."\">".$aslang['sv_sid']."</a>\n"; //아이디로 검색
else
$str2 .= "<a href=\"".G5_BBS_URL."/board.php?bo_table=".$bo_table."&sca=".$sca."&sfl=wr_name,1&stx=".$name."\">".$aslang['sv_sname']."</a>\n"; //이름으로 검색
}
if($mb_id)
$str2 .= "<a href=\"".G5_BBS_URL."/new.php?mb_id=".$mb_id."\">".$aslang['sv_post']."</a>\n"; //전체게시물
if($is_admin == "super" && $mb_id) {
$str2 .= "<a href=\"".G5_ADMIN_URL."/member_form.php?w=u&mb_id=".$mb_id."\" target=\"_blank\">".$aslang['sv_member']."</a>\n"; //회원정보변경
$str2 .= "<a href=\"".G5_ADMIN_URL."/point_list.php?sfl=mb_id&stx=".$mb_id."\" target=\"_blank\">".$aslang['sv_point']."</a>\n"; //포인트내역
}
$str2 .= "</span>\n";
$str .= $str2;
$str .= "\n<noscript class=\"sv_nojs\">".$str2."</noscript>";
$str .= "</span>";
return $str;
}
// 회원 레이어
function get_sideview($mb_id, $name='', $email='', $homepage='')
{
return;
처리했습니다.
그런데 반영이 안되네요...