몇시간째헤매고있습니다..인클루드경로문제..도와주세요 정보
몇시간째헤매고있습니다..인클루드경로문제..도와주세요본문
문제해결했어요!!!
혹시나 같은문제로 질문답변게시판을 헤매고 계실 분들을 위해 미련한 팁하나 올립니당..
팝업관리에서 팝업설정할 때 팝업이 나타나게할 게시판을 설정하잖아요..
그때 게시판을 설정해두되고 팝업이 뜰 페이지의 경로를 넣으셔두돼요!
전 경로문제때문에 이것저것해보다가 결국 꼬여서 그누보드 삭제하고 재설치했네요^^;;
경로문제는 머리아팠는데 다른분들처럼 걍 그누보드폴더 안의 모든 파일들은 최상위폴더에 넣었어요. .. 에휴..ㅋㅋㅋㅋ FTP에서는 복잡해지겠지만 속편하구 좋네요..
이것때문에 하루종일 걸렸다니 ㅠㅠㅠ 흑...
아! 팝업표현경로에서
[입력이 없을시에는 자동적으로 모든 페이지 적용합니다.]라고 나오잖아요..
이거믿구 안해놨다가 헤맨거였어요 ㅠㅠ 꼭 경로설정해주세영..
=====================================================
팝업관리 플러그인설치하고 팝업을 메인에 띄우고싶습니다.
인덱스페이지 상단에 인클루딩 넣었는데 자꾸 에러가나네요..ㅠㅠ
제가 어떤 잘못을했나요..
넣은 인클루딩
인덱스상단에 뜨는 에러
Warning: include_once(/board/_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/why8150/public_html/index.php on line 2
Warning: include_once() [function.include]: Failed opening '/board/_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/why8150/public_html/index.php on line 2
Warning: include_once(/board/lib/popup.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home1/why8150/public_html/index.php on line 3
Warning: include_once() [function.include]: Failed opening '/board/lib/popup.lib.php' for inclusion <font color=red>(include_path='.:/usr/local/php/lib/php') </font>in /home1/why8150/public_html/index.php on line 3
2011-01-31 20:05:06
빨간색으로 표시된부분을 보니 뭔가 경로설정이 잘못된 것같은데
그누보드는 처음이라 $g4[path]/로 경로설정하는게 무엇인지 이해가가지않네요..
인터넷을 검색해서 인클루딩에 대해 검색해보아도 그누보드는 조금 다른것같아서 막막하네요..
(+) 그리구요..
일반페이지에서
include_once("$g4[path]/head.sub.php");
와
include_once("$g4[path]/tail.sub.php");
꼭 넣어주어야하는건가요?
혹시나 같은문제로 질문답변게시판을 헤매고 계실 분들을 위해 미련한 팁하나 올립니당..
팝업관리에서 팝업설정할 때 팝업이 나타나게할 게시판을 설정하잖아요..
그때 게시판을 설정해두되고 팝업이 뜰 페이지의 경로를 넣으셔두돼요!
전 경로문제때문에 이것저것해보다가 결국 꼬여서 그누보드 삭제하고 재설치했네요^^;;
경로문제는 머리아팠는데 다른분들처럼 걍 그누보드폴더 안의 모든 파일들은 최상위폴더에 넣었어요. .. 에휴..ㅋㅋㅋㅋ FTP에서는 복잡해지겠지만 속편하구 좋네요..
이것때문에 하루종일 걸렸다니 ㅠㅠㅠ 흑...
아! 팝업표현경로에서
[입력이 없을시에는 자동적으로 모든 페이지 적용합니다.]라고 나오잖아요..
이거믿구 안해놨다가 헤맨거였어요 ㅠㅠ 꼭 경로설정해주세영..
=====================================================
팝업관리 플러그인설치하고 팝업을 메인에 띄우고싶습니다.
인덱스페이지 상단에 인클루딩 넣었는데 자꾸 에러가나네요..ㅠㅠ
제가 어떤 잘못을했나요..
넣은 인클루딩
<?php
include_once("$g4[path]/board/_common.php");
include_once("$g4[path]/board/lib/popup.lib.php");
echo date("Y-m-d H:i:s", time());
?>
인덱스상단에 뜨는 에러
Warning: include_once(/board/_common.php) [function.include-once]: failed to open stream: No such file or directory in /home1/why8150/public_html/index.php on line 2
Warning: include_once() [function.include]: Failed opening '/board/_common.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /home1/why8150/public_html/index.php on line 2
Warning: include_once(/board/lib/popup.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home1/why8150/public_html/index.php on line 3
Warning: include_once() [function.include]: Failed opening '/board/lib/popup.lib.php' for inclusion <font color=red>(include_path='.:/usr/local/php/lib/php') </font>in /home1/why8150/public_html/index.php on line 3
2011-01-31 20:05:06
빨간색으로 표시된부분을 보니 뭔가 경로설정이 잘못된 것같은데
그누보드는 처음이라 $g4[path]/로 경로설정하는게 무엇인지 이해가가지않네요..
인터넷을 검색해서 인클루딩에 대해 검색해보아도 그누보드는 조금 다른것같아서 막막하네요..
(+) 그리구요..
일반페이지에서
include_once("$g4[path]/head.sub.php");
와
include_once("$g4[path]/tail.sub.php");
꼭 넣어주어야하는건가요?
댓글 전체

팝업관리 뭘 설치 하셨나요 ?
답변주셔서 정말 감사합니다!!ㅠㅠㅠ
쪼오기~ 메뉴에있는 [플러그인]들어가서 탑스쿨님의 팝업플러그인 설치했습니다.
1.6 uft-8버전으로 설치했어요!(계정이 uft-8로 세팅되있어서..)
(+) 그런데요.. 게시판에서도 팝업이 안뜨네요 ㅠㅠ 분명 팝업관리에서 팝업추가하고 설정다해놓았는데..
쪼오기~ 메뉴에있는 [플러그인]들어가서 탑스쿨님의 팝업플러그인 설치했습니다.
1.6 uft-8버전으로 설치했어요!(계정이 uft-8로 세팅되있어서..)
(+) 그런데요.. 게시판에서도 팝업이 안뜨네요 ㅠㅠ 분명 팝업관리에서 팝업추가하고 설정다해놓았는데..

탑스쿨님 사이트 들어 가서 1.7 다운 받으시고 디비 추가 하셨나요 ?
그리고 tail.sub에 인클루트하는것등 모두 맞게 설정 하신건가요 /
그리고 tail.sub에 인클루트하는것등 모두 맞게 설정 하신건가요 /
tail.sub에 인클루딩을 시켜야하나요?
그렇다면 어떤파일을 인클루딩시켜야하나요?ㅠㅠ
tail.sub.php에 팝업관련파일을 인클루딩시키고..
메인페이지에 tail.sub.php를 인클루딩하면 되나요?..답변주셔서정말감사합니다!ㅜㅜ
해봐야겠네요...
그렇다면 어떤파일을 인클루딩시켜야하나요?ㅠㅠ
tail.sub.php에 팝업관련파일을 인클루딩시키고..
메인페이지에 tail.sub.php를 인클루딩하면 되나요?..답변주셔서정말감사합니다!ㅜㅜ
해봐야겠네요...
혹시몰라서 인클루딩을 이렇게만 해보았습니다.
<?php
include_once("./board/_common.php");
?>
그런데 페이지에 접속하니 설치된 DB가 없다면서 install.php으로 넘어갑니다..
<?php
include_once("./_common.php");
?>
이것도 마찬가지입니다.
질문답변게시판을 검색해보니 다른분들은 저런식으로 경로지정하셨던데 저는 무엇이 문제인가요?ㅜ_ㅜ
<?php
include_once("./board/_common.php");
?>
그런데 페이지에 접속하니 설치된 DB가 없다면서 install.php으로 넘어갑니다..
<?php
include_once("./_common.php");
?>
이것도 마찬가지입니다.
질문답변게시판을 검색해보니 다른분들은 저런식으로 경로지정하셨던데 저는 무엇이 문제인가요?ㅜ_ㅜ

삽입코드
tail.sub.php 페이지에 아래 코드삽입
// 팝업실행(head에 넣으면 안됨 출력부분이 있어서 exploed 라이브러리에 넣어도 안됨 head 보다 위쪽에 들어감)
include_once "lib/popup.lib.php";
config.php 페이지에 아래 코드삽입
// 기타
$g4['popup_table'] = $g4['table_prefix'] . "topschool_popup"; // 팝업창 관리 테이블
admin.menu100.php 페이지에 아래 코드 삽입
array("100300", "메일 테스트", "$g4[admin_path]/sendmail_test.php"), 윗부분에 아래내용 추가
그누보드에 추가할때 삽입코드
array("100200", "팝업관리", "$g4[admin_path]/popup_list.php"),
DB추가
CREATE TABLE `g4_topschool_popup` (
`po_id` int(11) NOT NULL auto_increment,
`po_skin` varchar(255) NOT NULL default '',
`po_dir` varchar(255) NOT NULL default '',
`po_popstyle` tinyint(1) NOT NULL default '0',
`po_openchk` tinyint(1) NOT NULL default '0',
`po_start_date` varchar(19) NOT NULL default '',
`po_end_date` varchar(19) NOT NULL default '',
`po_expirehours` int(4) NOT NULL default '0',
`po_scrollbar` tinyint(1) NOT NULL default '0',
`po_leftcenter` tinyint(1) NOT NULL default '0',
`po_topcenter` tinyint(1) NOT NULL default '0',
`po_left` int(4) NOT NULL default '0',
`po_top` int(4) NOT NULL default '0',
`po_width` int(4) NOT NULL default '0',
`po_height` int(4) NOT NULL default '0',
`po_act` varchar(25) NOT NULL default '',
`po_actc` varchar(25) NOT NULL default '',
`po_delay` int(11) NOT NULL default '0',
`po_subject` varchar(255) NOT NULL default '',
`po_content` text NOT NULL,
`po_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`po_id`),
KEY `po_date` (`po_start_date`,`po_end_date`),
KEY `po_openchk` (`po_openchk`)
) TYPE=MyISAM ;
이렇게 설정하라고 다 쓰여 있는데 이대로 하신건가요 ?
이대로 하지 않았다면 당연히 에러가 나는건 당연하죠
lib파일을 불러 올 수도 없도 디비도 생성안하고 등등 ..
tail.sub.php 페이지에 아래 코드삽입
// 팝업실행(head에 넣으면 안됨 출력부분이 있어서 exploed 라이브러리에 넣어도 안됨 head 보다 위쪽에 들어감)
include_once "lib/popup.lib.php";
config.php 페이지에 아래 코드삽입
// 기타
$g4['popup_table'] = $g4['table_prefix'] . "topschool_popup"; // 팝업창 관리 테이블
admin.menu100.php 페이지에 아래 코드 삽입
array("100300", "메일 테스트", "$g4[admin_path]/sendmail_test.php"), 윗부분에 아래내용 추가
그누보드에 추가할때 삽입코드
array("100200", "팝업관리", "$g4[admin_path]/popup_list.php"),
DB추가
CREATE TABLE `g4_topschool_popup` (
`po_id` int(11) NOT NULL auto_increment,
`po_skin` varchar(255) NOT NULL default '',
`po_dir` varchar(255) NOT NULL default '',
`po_popstyle` tinyint(1) NOT NULL default '0',
`po_openchk` tinyint(1) NOT NULL default '0',
`po_start_date` varchar(19) NOT NULL default '',
`po_end_date` varchar(19) NOT NULL default '',
`po_expirehours` int(4) NOT NULL default '0',
`po_scrollbar` tinyint(1) NOT NULL default '0',
`po_leftcenter` tinyint(1) NOT NULL default '0',
`po_topcenter` tinyint(1) NOT NULL default '0',
`po_left` int(4) NOT NULL default '0',
`po_top` int(4) NOT NULL default '0',
`po_width` int(4) NOT NULL default '0',
`po_height` int(4) NOT NULL default '0',
`po_act` varchar(25) NOT NULL default '',
`po_actc` varchar(25) NOT NULL default '',
`po_delay` int(11) NOT NULL default '0',
`po_subject` varchar(255) NOT NULL default '',
`po_content` text NOT NULL,
`po_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`po_id`),
KEY `po_date` (`po_start_date`,`po_end_date`),
KEY `po_openchk` (`po_openchk`)
) TYPE=MyISAM ;
이렇게 설정하라고 다 쓰여 있는데 이대로 하신건가요 ?
이대로 하지 않았다면 당연히 에러가 나는건 당연하죠
lib파일을 불러 올 수도 없도 디비도 생성안하고 등등 ..
이대로 다 하고 DB도 생성했어요.... 혹시몰라서 3번 더 똑같이해보았는데..^^;;
에휴.. 한번 더 해봐야겠어요 ㅋㅋ 답변정말 감사합니다!!
에휴.. 한번 더 해봐야겠어요 ㅋㅋ 답변정말 감사합니다!!