통합검색에서 검색한 결과 이미지까지 나오게 하려면요? 정보
통합검색에서 검색한 결과 이미지까지 나오게 하려면요?본문
지금 그누에서 보면 검색결과에서 이미지는 나오지 않더군요.
어떻게 방법이 없을까요? 만약에 갤러리게시판이 할때 이미지 첨부된 게시판은 검색결과에서 이미지 출력되고 이미 없을때는 그냥 출력하게서요.
좀 고수님들 여기에 대해 아시면 상세하게 설명해주세요.
댓글 전체

http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=3041&sca=&sfl=wr_name%2C1&stx=%C4%AB%C0%CC%B7%E7&sop=and
예전에 팁에 올렸습니다 확인 하세요..
포인트 업업업 흐흐흐~~~
예전에 팁에 올렸습니다 확인 하세요..
포인트 업업업 흐흐흐~~~
제가 사용하는 스킨의 라인과 모두 다르네요. ㅜ.ㅜ

핵심 내용입니다..
skin\search\basic\search.skin.php <<==요파일에 99번째 줄에 추가해주세요
if ($list[$idx][$i][wr_is_comment])
{
echo "<font color=999999>[코멘트]</font> ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
//이미지 출력 시작
$img=$list[$idx][$i][wr_id];
$roo = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$search_table[$idx]' and wr_id = '$img' and bf_no = '0' ");
if (preg_match("/\.($config[cf_image_extension])$/i", $roo[bf_file]))
$imgser = "<td width=60 valign='top'><img src='$g4[path]/data/file/$search_table[$idx]/$roo[bf_file]' width=50 height=50 border=0></td>";
//이미지 출력 끝
echo "<table border=0 cellspacing=0 cellpadding=0><tr><td width=30></td>";
echo $imgser; // 요거두 추가
echo "<td>";
echo "<li>";
echo "<a href='{$list[$idx][$i][href]}{$comment_href}'><u>";
echo $list[$idx][$i][subject];
echo "</u></a> [<a href='{$list[$idx][$i][href]}{$comment_href}' target=_blank>새창</a>]<br>";
echo $list[$idx][$i][content];
echo "<br><font color=#999999>{$list[$idx][$i][wr_datetime]}</font> ";
echo $list[$idx][$i][name];
echo "</ul></ul>";
echo "</td></tr></table>";
}
}
?>
skin\search\basic\search.skin.php <<==요파일에 99번째 줄에 추가해주세요
if ($list[$idx][$i][wr_is_comment])
{
echo "<font color=999999>[코멘트]</font> ";
$comment_href = "#c_".$list[$idx][$i][wr_id];
}
//이미지 출력 시작
$img=$list[$idx][$i][wr_id];
$roo = sql_fetch(" select bf_file from $g4[board_file_table] where bo_table = '$search_table[$idx]' and wr_id = '$img' and bf_no = '0' ");
if (preg_match("/\.($config[cf_image_extension])$/i", $roo[bf_file]))
$imgser = "<td width=60 valign='top'><img src='$g4[path]/data/file/$search_table[$idx]/$roo[bf_file]' width=50 height=50 border=0></td>";
//이미지 출력 끝
echo "<table border=0 cellspacing=0 cellpadding=0><tr><td width=30></td>";
echo $imgser; // 요거두 추가
echo "<td>";
echo "<li>";
echo "<a href='{$list[$idx][$i][href]}{$comment_href}'><u>";
echo $list[$idx][$i][subject];
echo "</u></a> [<a href='{$list[$idx][$i][href]}{$comment_href}' target=_blank>새창</a>]<br>";
echo $list[$idx][$i][content];
echo "<br><font color=#999999>{$list[$idx][$i][wr_datetime]}</font> ";
echo $list[$idx][$i][name];
echo "</ul></ul>";
echo "</td></tr></table>";
}
}
?>

감사합니다. 핵심내용만 추려서 적용하니 좋습니다. ^^
감사해요. 저도 끝내 해결했어요. ^^