설문조사에서 사이드뷰 제거 하려면? 정보
설문조사에서 사이드뷰 제거 하려면?본문
설문조사에서 기타의견에 사이드뷰 작동이 않되게 하고 싶은데 어떻게 하나요?
댓글 전체

/skin/poll/basic/poll_result.skin.php 100 라인
<?=$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]);
<?=$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]);
첫번째 방법은 않되고 그럼 두번째 방법은 어떻게 고쳐야 할지 ;;;;

설치경로/lib/common.lib.php Line 846 보시면 관련 함수 있습니다.
// 회원 레이어
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]; //작성자 이름을 그대로 출력 합니다.
이런 형태로 변경해 보세요~
// 회원 레이어
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]; //작성자 이름을 그대로 출력 합니다.
이런 형태로 변경해 보세요~