통합검색에서 검색한 결과 이미지까지 나오게 하려면요?
지금 그누에서 보면 검색결과에서 이미지는 나오지 않더군요.
어떻게 방법이 없을까요? 만약에 갤러리게시판이 할때 이미지 첨부된 게시판은 검색결과에서 이미지 출력되고 이미 없을때는 그냥 출력하게서요.
좀 고수님들 여기에 대해 아시면 상세하게 설명해주세요.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 5개
예전에 팁에 올렸습니다 확인 하세요..
포인트 업업업 흐흐흐~~~
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>";
}
}
?>