통합검색에서 검색한 결과 이미지까지 나오게 하려면요?

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

댓글 5개

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>&nbsp;&nbsp;&nbsp;";
echo $list[$idx][$i][name];
echo "</ul></ul>";
echo "</td></tr></table>";
}
}
?>
감사합니다. 핵심내용만 추려서 적용하니 좋습니다. ^^
감사해요. 저도 끝내 해결했어요. ^^
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
19년 전 조회 1,575
19년 전 조회 1,518
19년 전 조회 989
19년 전 조회 1,047
19년 전 조회 1,422
19년 전 조회 1,180
19년 전 조회 1,262
19년 전 조회 1,856
19년 전 조회 1,502
19년 전 조회 1,514
19년 전 조회 1,438
19년 전 조회 1,895
19년 전 조회 1,510
19년 전 조회 1,526
19년 전 조회 1,082
19년 전 조회 1,209
19년 전 조회 1,221
19년 전 조회 1,830
19년 전 조회 1,559
19년 전 조회 1,592
🐛 버그신고