테스트 사이트 - 개발 중인 베타 버전입니다

사이드뷰에서 아이디 안나오게하는 법??

· 14년 전 · 1489 · 2
사이드뷰해놓으면
[아이디]닉네임
이렇게 뜨잖아요
여기서 아이디 안나오게 할 수 없나요??

common.lib.php의
get_sideview 함수를 어케해야 할 것 같은데 어떻게 해야 될지 모르겠네요
아래는 코드내용

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']) {
$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>";
}
}

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 2개

mb_id란은 아예 없애봤더니 쪽지가 안보내지더라구요 ;;;;
그런 아이디가 없다고 하면서...
14년 전
lib/common.lib.php 893라인 부근

return "<a href=\"javascript:;\" onClick=\"showSideView(this, '$mb_id', '$name', '$email', '$homepage');\" title=\"{$title_mb_id}{$title_name}\">$tmp_name</a>";

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

return "<a href=\"javascript:;\" onClick=\"showSideView(this, '$mb_id', '$name', '$email', '$homepage');\" title=\"{$title_name}\">$tmp_name</a>";

게시글 목록

번호 제목
284348
284336
284333
284332
284320
284318
284316
284313
284307
284306
284303
284298
284296
284290
284286
284280
284277
284272
284261
284259