인덱스에 게시판 출력하기. > 그누보드5 팁자료실

그누보드5 팁자료실

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

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

본문

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


<?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');
?>

 

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

 

bbs/list.php에 가셔서

 


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

위의 변수들을 찾아.

 


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

 

로 수정하세요.

추천
7
  • 복사

댓글 7개

© SIRSOFT
현재 페이지 제일 처음으로