인덱스에 게시판 출력하기.

index.php를 아래와 같이 변경.

[code]

<?php
include_once('./_common.php');

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
define('_INDEX_', true);
include_once(G5_PATH.'/head.php');
$bo_table ="free"; //원하는 테이블 id 입력
$write_table = "g5_write_{$bo_table}";
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
if (G5_IS_MOBILE) {
    $board_skin_path    = get_skin_path('board', $board['bo_mobile_skin']);
    $board_skin_url     = get_skin_url('board', $board['bo_mobile_skin']);
} else {
    $board_skin_path    = get_skin_path('board', $board['bo_skin']);
    $board_skin_url     = get_skin_url('board', $board['bo_skin']);

?>

<?php
include_once(G5_BBS_PATH.'/board.php');
include_once(G5_PATH.'/tail.php');
?>

[/code]

 

위와 같이 변경 시 보이는건 정상적으로 동작하나 글쓰기와 RSS가 제대로 되지 않습니다

 

bbs/list.php에 가셔서

 

[code]

$write_href = './write.php?bo_table='.$bo_table;

$rss_href = './rss.php?bo_table='.$bo_table;

[/code]

위의 변수들을 찾아.

 

[code]

$write_href = G5_BBS_URL..'/write.php?bo_table='.$bo_table;

$rss_href = G5_BBS_URL.'/rss.php?bo_table='.$bo_table;

[/code]

 

로 수정하세요.

|

댓글 7개

감사합니다.
감사합니다.
<?php include_once(G5_BBS_PATH.'/write.php'); ?>로 상담게시판형식으로 진행해도 되겠네요~
이거 보고 성공했어요. 감사합니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누보드5 팁자료실

+
제목 글쓴이 날짜 조회
7년 전 조회 4,834
7년 전 조회 3,712
7년 전 조회 5,127
7년 전 조회 3,566
7년 전 조회 8,729
7년 전 조회 1.1만
7년 전 조회 6,627
7년 전 조회 3,672
7년 전 조회 5,026
7년 전 조회 6,373
7년 전 조회 4,816
7년 전 조회 4,009
7년 전 조회 4,428
7년 전 조회 7,826
7년 전 조회 7,073
7년 전 조회 5,211
7년 전 조회 4,371
7년 전 조회 7,346
7년 전 조회 5,809
7년 전 조회 3,139
7년 전 조회 5,667
7년 전 조회 5,414
7년 전 조회 3,595
7년 전 조회 6,534
7년 전 조회 1.3만
7년 전 조회 5,772
7년 전 조회 5,207
7년 전 조회 1만
7년 전 조회 5,369
7년 전 조회 3,691