채택완료

메인에 추출한 게시판 리스트 링크 문의드려요~

2016-12-06 (화) 15:12:52 2,959

메인에 추출한 게시판에서 게시글을 클릭하면 해당글로 이동해야 하는데

경로를 찾지 못해요 ㅜ ㅜ

latest.skin.php 에 표시한 부분과 

▼▼▼▼▼

==================================================================================

9d499037d633a72be01a6d41645b4962_1480669871_1186.PNG
================================================================================== 

브라우저에서 f12번으로 본 소스에서 표시한 부분이 같은 부분인것 같은데 

▼▼▼▼▼

==============================================================================

9d499037d633a72be01a6d41645b4962_1480669871_1489.PNG 

문제는 제가 가비아 호스팅을 쓰면서

ftp 루트파일 경로를 잘못 잡아서 그런지 

9d499037d633a72be01a6d41645b4962_1480670301_9238.PNG
이부분 경로때문에

메인 추출된 게시판에서 게시글을 누르면 404페이지가 떠요...

참고로 제 ftp경로는..

9d499037d633a72be01a6d41645b4962_1480670367_0153.PNG
입니다...

어떻게 해결해야 할까요??

ㅜㅜㅜㅜㅜㅜㅜㅜ 제발 알려주세영

|

답변 2개 / 댓글 1개

채택된 답변
+20 포인트
2016-12-06 (화) 15:47:40

아이구야... 저도 처음 보는 현상이네요.

일단 gnuboard5/config.php 파일을 여시고요.

define('G5_DOMAIN', ''); 

에서 아래처럼 도메인을 강제적으로 지정해 보세요.

define('G5_DOMAIN', 'http://simcle.com');

$list[$i]['href'] 라는 항목이 lib/common.lib.php 에서 get_list 라는 항목에서 $list['href'] 경로를 확인해 보셔야 할겁니다.

답변에 대한 댓글 1개

말씀하신 부분이

-------------------------------------------------------

// 분류명 링크
$list['ca_name_href'] = G5_BBS_URL.'/board.php?bo_table='.$board['bo_table'].'&sca='.urlencode($list['ca_name']);

$list['href'] = G5_BBS_URL.'/board.php?bo_table='.$board['bo_table'].'&wr_id='.$list['wr_id'].$qstr;
$list['comment_href'] = $list['href'];

$list['icon_new'] = '';
if ($board['bo_new'] && $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - ($board['bo_new'] * 3600)))
$list['icon_new'] = '<img src="'.$skin_url.'/img/icon_new.gif" alt="새글">';

$list['icon_hot'] = '';
if ($board['bo_hot'] && $list['wr_hit'] >= $board['bo_hot'])
$list['icon_hot'] = '<img src="'.$skin_url.'/img/icon_hot.gif" alt="인기글">';

$list['icon_secret'] = '';
if (strstr($list['wr_option'], 'secret'))
$list['icon_secret'] = '<img src="'.$skin_url.'/img/icon_secret.gif" alt="비밀글">';

// 링크
for ($i=1; $i<=G5_LINK_COUNT; $i++) {
$list['link'][$i] = set_http(get_text($list["wr_link{$i}"]));
$list['link_href'][$i] = G5_BBS_URL.'/link.php?bo_table='.$board['bo_table'].'&wr_id='.$list['wr_id'].'&no='.$i.$qstr;
$list['link_hit'][$i] = (int)$list["wr_link{$i}_hit"];
}

-------------------------------------------------------------

이부분이 맞을까요??
여기서 어떤부분을 수정해야 하는지 ㅜㅜ
알려주시면 정말 감사하겠습니다!!

답변을 작성하려면 로그인이 필요합니다.