N

[0.1원] 일일이 head 와 tail 을 불러오기 귀찮을때..

bbs/board_head.php

관리자 페이지에서 상단불러오는곳에 값이 없다면 자동으로 ../head.php 를 인클루드 한다

//원본
if ($board[bo_include_head])
    @include ($board[bo_include_head]);

// 수정
if ($board[bo_include_head]) {
 @include ($board[bo_include_head]);
} else {
 include "../head.php";
}

bbs/board_tail.php

관리자 페이지에서 하단불러오는곳에 값이 없다면 자동으로 ../tail.php 를 인클루드 한다

//원본
if ($board[bo_include_tail])
    @include ($board[bo_include_tail]);

//수정
if ($board[bo_include_tail]) {
 @include ($board[bo_include_tail]);
} else {
 include "../tail.php";
}




|

댓글 5개

adm/board_form.php 에 기본으로 심어두는 방법도 있습니다.

if ($w == "") {

//필요한 항목을 추가
$board[bo_include_head] = "./_head.php";
$board[bo_include_tail] = "./_tail.php";
$board[bo_use_list_view] = '1';
$board[bo_use_dhtml_editor] = '1';
$board[bo_use_good] = '1';
편리하네요.
적용해보니 매우편리하네요.. 감사합니다~!
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요. 나누면 즐거움이 커집니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 5,230
17년 전 조회 2,609
17년 전 조회 6,170
17년 전 조회 3,294
17년 전 조회 1만
17년 전 조회 3,731
17년 전 조회 2,807
17년 전 조회 3,265
17년 전 조회 3,360
17년 전 조회 2,890
17년 전 조회 3,678
17년 전 조회 1.2만
17년 전 조회 5,181
17년 전 조회 9,071
17년 전 조회 5,906
17년 전 조회 4,574
17년 전 조회 3,350
17년 전 조회 3,573
17년 전 조회 3,878
17년 전 조회 3,079
🐛 버그신고