[이윰] INDEX 화면을 특정 게시판으로 변경하기
페이지 정보
루루아빠
4,263
2016.11.06 00:35:05
짧은주소
-
https://yadolee.com/tip/445 주소복사
본문
1. 그누보드5/eyoom/index.php 파일을 열어 // 회원의 지정한 페이지 홈으로 보여주기 를 검색한다
수정 전
수정 전
수정 전
// 회원의 지정한 페이지 홈으로 보여주기
$eb->print_page($eyoomer['main_index']);
수정 후
// 회원의 지정한 페이지 홈으로 보여주기
//$eb->print_page($eyoomer['main_index']);
$bo_table = 'childfam'; // 원하는 게시판의 bo_table값
// $eyoom_board 설정값 가져오기
$eyoom_board = $eb->eyoom_board_info($bo_table, $theme);
if(!$eyoom_board) {
// DB에 입력된 정보가 없을 때, 기본값 가져오기
$eyoom_board = $eb->eyoom_board_default($bo_table);
}
$write = array();
$write_table = "";
if ($bo_table) {
$board = sql_fetch(" select * from {$g5['board_table']} where bo_table = '$bo_table' ");
if ($board['bo_table']) {
set_cookie("ck_bo_table", $board['bo_table'], 86400 * 1);
$gr_id = $board['gr_id'];
$write_table = $g5['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
if (isset($wr_id) && $wr_id)
$write = sql_fetch(" select * from $write_table where wr_id = '$wr_id' ");
}
}
@include_once(G5_BBS_PATH . '/board.php');
2. 그누보드5/eyoom/core/board/list.skin.php 을 열어 // Paging 를 검색한다.수정 전
// Paging
$paging = $thema->pg_pages($tpl_name,"./board.php?bo_table=".$bo_table.$qstr."&page=");
수정 후
// Paging
$paging = $thema->pg_pages($tpl_name, G5_BBS_URL."/board.php?bo_table=".$bo_table.$qstr."&page=");
추천인
레벨 101
경험치 1,519,440
Progress Bar 14.66%
- 가입일 : 2015-03-04 03:24:54
- 서명 : KNOW YOUR LIMITS
BUT NEVER STOP TRYING TO EXCEED THEM !!
- 자기소개 : 루루의 자랑
루루아빠랍니다~~
최신댓글이 없습니다.


댓글
첫 번째 댓글을 남겨 주세요