테스트 사이트 - 개발 중인 베타 버전입니다

그누 통합검색에서 클럽문제 팁입니다.

우선먼저 club 폴더에서 index.php 파일을 전체수정합니다.
<?php
$qquu=str_replace("?","",$_SERVER[SCRIPT_NAME].$_SERVER['QUERY_STRING']);
$qquu=str_replace("/club/index.php","",$_SERVER[SCRIPT_NAME].$_SERVER['QUERY_STRING']);
if($qquu!="")
{
include "../dbconfig.php";
mysql_connect("$mysql_host","$mysql_user","$mysql_password");
mysql_select_db($mysql_db);
$cb=mysql_fetch_object(mysql_query("select nc_club.cb_name as timu from nc_club where cb_id='$qquu' "));
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>클럽</title>
</head>
<frameset rows="0,100%" border="0" framespacing="0" bordercolor="#FFFFFF">
  <frame src="about:blank" scrolling="NO" noresize frameborder="NO">
  <frame src="club_main.php?cb_id=<?=$qquu?>" id="kimho" name="kimho" noresize frameborder="NO">
</noframes>
</html>

<?php
exit();
} else {
?>
<?
include_once "./club_index.php";
?>
<? } ?>

여기까지 다 바꾸었죠?
그럼 아래를 보세요.

그리고 club_main.php 파일 열어봅니다.

<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
여기 금방 아래에 아래 소스를 추가해넣으세요.

<script language=javascript>
function goMain(){
        if(parent.document.getElementById("kimho")){
                                                      return false;
                                    }else{
                                            parent.location.replace('<?=$g4[path]?>/club/?<?=$_GET[cb_id]?>');
                                            return false;
                                    }
                  }
 goMain();
</script>

그다음 게시판 스킨을 수정해야겠죠.
게시판스킨에서 list.skin.php 그리고 view.skin.php 와 write.skin.php 에서 제일 위에 아래소스를 삽입해넣으세요.

<script language=javascript>
function goMain(){
        if(parent.document.getElementById("CLUB_BODY")){
                                                      return false;
                                    }else{
                                            parent.location.replace('<?=$g4[path]?>/club/?<?=$_GET[classid]?>');
                                            return false;
                                    }
                  }
 goMain();
</script>
그리고 아래 파일을 열어보세요.
g4/skin/search/basic/search.skin.php  이파일을 열고 난 다음에 수정사항이 있습니다.

<td width="100" valign="top">
<?
echo "<a href='{$list[$idx][$i][href]}{$comment_href}' target='_blank'>{$img}</a>";
?></td>

이걸 아래와 같이 수정하세요.

<?
$sql = " select bo_subject, gr_id from $g4[board_table] where bo_table = '$search_table[$idx]' ";
$row = sql_fetch($sql);
$bo_subject[$idx] = $row[bo_subject];
$bo_gr_id = $row[gr_id];
if ($roo[bf_file] && file_exists($thumb)) {
?>
 <td width="100" valign="top">
<?
if ($bo_gr_id=="club") {
echo "<a href='$g4[path]/club/?{$search_table[$idx]}&wr_id={$list[$idx][$i][wr_id]}' target='_blank'>{$img}</a>";
} else {
echo "<a href='{$list[$idx][$i][href]}{$comment_href}' target='_blank'>{$img}</a>";
}
?></td>
<? } ?>

이걸 참고하고 통합검색에서 그룹아이디 club 으로 판단해서 링크를 수정하세요.
먼저 적용해보시고 오류랑 뜨거나 문제점이 있으면 제때에 말씀주세요.

A/S 100% 책임져줄거에요. ^^

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

ㅎㅎ... 다음주에 배포판(?)에 포함하겠습니다.

게시글 목록

번호 제목
34706
34693
34563
34536
34521
34480
34479
34466
34437
34436
34435
34406
34398
34387
34382
34375
34364
34336
34294
34293