|
|
|
16년 전
|
조회 803
|
|
|
|
16년 전
|
조회 1,200
|
|
|
|
16년 전
|
조회 2,161
|
|
|
|
16년 전
|
조회 867
|
|
|
|
16년 전
|
조회 1,540
|
|
|
|
16년 전
|
조회 848
|
|
|
|
16년 전
|
조회 983
|
|
|
|
16년 전
|
조회 979
|
|
|
|
16년 전
|
조회 986
|
|
|
|
16년 전
|
조회 999
|
|
|
|
16년 전
|
조회 1,553
|
|
|
|
16년 전
|
조회 1,035
|
|
|
|
16년 전
|
조회 986
|
|
|
|
16년 전
|
조회 1,007
|
|
|
|
16년 전
|
조회 977
|
|
|
|
16년 전
|
조회 1,556
|
|
|
|
16년 전
|
조회 760
|
|
|
|
16년 전
|
조회 838
|
|
|
|
16년 전
|
조회 1,701
|
|
|
|
16년 전
|
조회 808
|
댓글 3개
<?=$list2[$i][mb_nick]?> 으로 해서 안 되면,
/bbs/poll_result.php 53 라인 아래와 같은 부분을 수정하세요.
$list2[$i][name] = get_sideview($row[mb_id], cut_str($row[pc_name],10), '', '', $row[mb_open]);
// 회원 레이어
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>";
}
}
$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>";
}
poll_result.php 에서 위의 함수를 호출 안하시면 됩니다.
$list2[$i][name]=cut_str($row[pc_name],10); //작성자 이름을 잘라서 출력 합니다.
또는
$list2[$i][name]=$row[pc_name]; //작성자 이름을 그대로 출력 합니다.
이런 형태로 변경해 보세요~