일정 메인 추출과 팝업창 깔끔하게 변경하였습니다.
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=24840&sca=&sfl=wr_subject&stx=%C0%CF%C1%A4&sop=and&page=2
수정하였습니다.
적용방법은.
원본 내용과 동일합니다.
1. ./lib/latest.lib.php 파일을 열어서 맨아래에 다음을 추가한다.
[code]
//======================================
function latest_schedule($skin_dir='', $bo_table)
{
global $config;
global $g4;
global $year, $month;
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin_path = "./$g4[path]/skin/latest/$skin_dir";
}
$write_table = $g4[write_prefix] . $bo_table;
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
//===================================
[/code]
2. schedule 폴더와 내용을 skin/board/ 에 복사한다.
3. calendar 폴더와 내용을 skin/latest/ 에 복사한다.
4. 일정관리 게시판을 추가하고 스킨을 schedule 로 선택한다.
5.pop_schedule.php 파일을 gnuboard 설치 directory에 복사한다.
6. index.php 달력을 보이고 싶은 위치에
<? echo latest_schedule("calendar","게시판아이디"); ?> 를 추가한다.
index.php 가 아니라도 보이고 싶은 페이지에 같은 방법으로 넣어주시면 됩니다.
수정하였습니다.
적용방법은.
원본 내용과 동일합니다.
1. ./lib/latest.lib.php 파일을 열어서 맨아래에 다음을 추가한다.
[code]
//======================================
function latest_schedule($skin_dir='', $bo_table)
{
global $config;
global $g4;
global $year, $month;
// 스킨디렉토리값이 넘어왔다면
if ($skin_dir) {
$latest_skin_path = "./$g4[path]/skin/latest/$skin_dir";
}
$write_table = $g4[write_prefix] . $bo_table;
ob_start();
include "$latest_skin_path/latest.skin.php";
$content = ob_get_contents();
ob_end_clean();
return $content;
}
//===================================
[/code]
2. schedule 폴더와 내용을 skin/board/ 에 복사한다.
3. calendar 폴더와 내용을 skin/latest/ 에 복사한다.
4. 일정관리 게시판을 추가하고 스킨을 schedule 로 선택한다.
5.pop_schedule.php 파일을 gnuboard 설치 directory에 복사한다.
6. index.php 달력을 보이고 싶은 위치에
<? echo latest_schedule("calendar","게시판아이디"); ?> 를 추가한다.
index.php 가 아니라도 보이고 싶은 페이지에 같은 방법으로 넣어주시면 됩니다.
첨부파일
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 33개
멋집니다.
네이버 처럼 일정이 2일 이상이면 막대바로 보이게 하면 좋겠습니다. ^_^
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE left(wr_link1,6) <= '200902' and left(wr_link2,6) >= '200902' ORDER BY w' at line 1
error file : /onuri/index.php
이렇게 뜨는건 뭐죠?
[email protected]
$query = "SELECT * FROM g4_write_"."$bo_table WHERE left(wr_link1,6) <= '$year$sel_mon' and left(wr_link2,6) >= '$year$sel_mon' ORDER BY wr_id ASC";
일정표에 나온 날짜 빡스들의 싸이즈를 수정하려고 하는데 코드어디 에서 손볼까요????
혹시, 오늘 이후날짜만 나타나게 할 수 있는지요?? 그리고 일정이 있는 곳은 오늘날짜표시와 같은 방식으로 날짜의 Background 를 색깔로 나타나게 하고 싶습니다.
이 말이 무슨 말이예요? 어떻게 하느지 모르겠어요.
받은 파일들은 모두 utf8로 변환했는데, 이상없이 잘 나옵니다만,
유독 팝업창만 제목과 내용만 깨져서 나옵니다.
(중간의 '일정 : 2010년 8월 18일'은 정상적으로 나옵니다.)
pop_schedule.php 파일도 없는데요??
제가 못찾는걸까요??