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

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,969
7년 전 조회 3,846
7년 전 조회 5,283
7년 전 조회 3,686
7년 전 조회 8,872
7년 전 조회 1.2만
7년 전 조회 6,803
7년 전 조회 3,800
7년 전 조회 5,143
7년 전 조회 6,509
7년 전 조회 4,949
7년 전 조회 4,137
7년 전 조회 4,561
7년 전 조회 7,954
7년 전 조회 7,243
7년 전 조회 5,357
7년 전 조회 4,511
7년 전 조회 7,503
7년 전 조회 6,027
7년 전 조회 3,268
7년 전 조회 5,805
7년 전 조회 5,561
7년 전 조회 3,712
7년 전 조회 6,672
7년 전 조회 1.3만
7년 전 조회 5,901
7년 전 조회 5,362
7년 전 조회 1.1만
7년 전 조회 5,565
7년 전 조회 3,817