그누보드 버전 4.22.06 기준으로 제작하였습니다.
빌더 뿐만아니라.. 그누보드 4.22.06 버전 이상,이하 버전에도 사용하실수있습니다.
세부기능 :
1. 팝업 개수는 무한정이다.
2. 레이어 형식, 팝업 형식 체크만으로 둘다 가능하다.
3. 팝업 표시 경로를 지정할수 있다.
4. 시작일 종료일 설정가능하다
5. 하루동안 열지않음 (하루,일주일,한달)
6. 스크롤바 생성가능하다
7. 창위치 및 창크기 조절 가능하다
8. 팝업사용, 미사용 체크 설정 가능하다
9. 에디터를 이용해 해당 내용 편집 가능하다
10. 팝업 사용 및 미사용 적용으로 팝업창 사용내역을 관리할수있다.
11. 게시판처럼 스킨별 관리가가능하다.
1. 팝업 개수는 무한정이다.
2. 레이어 형식, 팝업 형식 체크만으로 둘다 가능하다.
3. 팝업 표시 경로를 지정할수 있다.
4. 시작일 종료일 설정가능하다
5. 하루동안 열지않음 (하루,일주일,한달)
6. 스크롤바 생성가능하다
7. 창위치 및 창크기 조절 가능하다
8. 팝업사용, 미사용 체크 설정 가능하다
9. 에디터를 이용해 해당 내용 편집 가능하다
10. 팝업 사용 및 미사용 적용으로 팝업창 사용내역을 관리할수있다.
11. 게시판처럼 스킨별 관리가가능하다.
팝업창관리의 저작권에 대해서?
이 프로그램 및 이것을 수정한 프로그램의 배포는 sir.co.kr과 topschool.co.kr로 제한 하며,
원제작자 표시후 해당 사이트 링크를 걸어주시기바랍니다.
이 프로그램의 전체 또는 부분에 기인한 것은 절대로 판매를 금지 합니다.
오류사항이 있을시에는 오류신고 부분에 글을 남겨주세요. (빠른조치하겠습니다.)
피드백을 해주시면 팝업창 관리에 많은 도움이 될수있습니다. 많은 피드백 부탁드립니다.
마지막으로 중요 한점인대요.
해당 스킨을 만드실때 팝업용 레이어용 같이 만들어주세요.
그누에는 디자이너 분들 많으셔서 좋은기능 좋은디자인 공유 하고싶어서 공개하는것이니
스킨만드실때, 신경써서 부탁드립니다.^^
스킨 올리실곳은 아래 링크로 올리시면 됩니다.
그리고 스킨 올리실때는 필히 default_img.gif 스킨에 대한 이미지 파일 추가 부탁드립니다.
/skin/popup/basic_blue/img/default_img.gif
http://topschool.co.kr/topboard/bbs/board.php?bo_table=builde_skin
만든날 : 2008.8.10
만든이 : 정진호(topschool)
사이트 : topschool.co.kr
만든이 : 정진호(topschool)
사이트 : topschool.co.kr
* 주의 : cheditor.lib.php 와 cheditor 폴더가 없으면 사용하실수없습니다.
기본 그누에 포함된내용입니다. cheditor4 하고 햇갈리지마세요
cheditor.lib.php 파일 없는 분들을위해 같이 첨부했습니다.
업로드
다운로드 - 압축푼후
1. /skin/ 폴더에 popup폴더를 업로드
2. /lib/ 폴더에 popup.lib.php 파일 업로드 (extent 에 업로드 하면안됨!! header 에러 남)
3. /adm/ 폴더에 adm 파일들을 업로드
삽입코드
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_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_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 ;
기본 그누에 포함된내용입니다. cheditor4 하고 햇갈리지마세요
cheditor.lib.php 파일 없는 분들을위해 같이 첨부했습니다.
업로드
다운로드 - 압축푼후
1. /skin/ 폴더에 popup폴더를 업로드
2. /lib/ 폴더에 popup.lib.php 파일 업로드 (extent 에 업로드 하면안됨!! header 에러 남)
3. /adm/ 폴더에 adm 파일들을 업로드
삽입코드
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_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_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 ;
추천은 개발자의 힘!!
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 66개
공개감사합니다. ㅎㅎ 요런건 플러그인으로 가야 한다는 ~
호스팅 받고 있으시다면 호스팅 업체에서 phpMyAdmin 등 디비관리 할수있는
프로그램이 있을수도있으니 그거있으시면 그쪽으로 접속하셔서 쿼리 날리시면되구요
/art/index.php 이렇게 이미지에 일반 경로를 지정할 경우에 창닫기가 안되는것 같습니다.
게시판이 아닌 일반페이지...
감사합니다.
<script language="javascript" src="<?=$g4['path']?>/js/wrest.js"></script>
<!-- 새창 대신 사용하는 iframe -->
<iframe width=0 height=0 name='hiddenframe' style='display:none;'></iframe>
<? if ($is_admin == "super") { ?><!-- <div style='float:left; width:<?=$table_width?>px; text-align:center;'>RUN TIME : <?=get_microtime()-$begin_time;?><br></div> --><? } ?>
</body>
</html>
<?
$tmp_sql = " select count(*) as cnt from $g4[login_table] where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
$tmp_row = sql_fetch($tmp_sql);
//sql_query(" lock table $g4[login_table] write ", false);
if ($tmp_row['cnt'])
{
$tmp_sql = " update $g4[login_table] set mb_id = '$member[mb_id]', lo_datetime = '$g4[time_ymdhis]', lo_location = '$lo_location', lo_url = '$lo_url' where lo_ip = '$_SERVER[REMOTE_ADDR]' ";
sql_query($tmp_sql, FALSE);
}
else
{
$tmp_sql = " insert into $g4[login_table] ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '$_SERVER[REMOTE_ADDR]', '$member[mb_id]', '$g4[time_ymdhis]', '$lo_location', '$lo_url' ) ";
sql_query($tmp_sql, FALSE);
// 시간이 지난 접속은 삭제한다
sql_query(" delete from $g4[login_table] where lo_datetime < '".date("Y-m-d H:i:s", $g4[server_time] - (60 * $config[cf_login_minutes]))."' ");
// 부담(overhead)이 있다면 테이블 최적화
//$row = sql_fetch(" SHOW TABLE STATUS FROM `$mysql_db` LIKE '$g4[login_table]' ");
//if ($row['Data_free'] > 0) sql_query(" OPTIMIZE TABLE $g4[login_table] ");
}
//sql_query(" unlock tables ", false);
?>
요거 아래 삽입하세요^^
감사합니다.
조금더 자세이좀 설명하주세요... 그누보드 초보라...^^*
http://topschool.co.kr/topboard/bbs/board.php?bo_table=toptip_one&wr_id=4
여기 참고하셔서 phpMyAdmin 부터 설치하시구요
설치하신후에 왼쪽상단에 sql 이라는 버튼있는대 그거 클릭하시고 db내용넣고
실행 하시면되요
그냥 팝업관리자라기 보단 고급이네요 << 뭐라는거에요 ?
어디가 잘못된거죠?
select count(*) as cnt from onuri_topschool_popup where 1=1 order by po_datetime desc
1146 : Table 'xxkorea.onuri_topschool_popup' doesn't exist
error file : /onuri/adm/popup_list.php
confing.php 에서 onuri 접두사를 사용하셔서 그런거같습니다.
g4로 되여있는것을 onuri 로 바꾸셔야겟내요
정말 수고많으셨습니다.
실무에서 재가 오래동안 사용중이였던거라 오류가 대부분없는것인대 흠..
일단 해당 상황을 스샷등을 첨부해주셔서 올려주시면
확인후에 조치 해드리겠습니다.
http://topschool.co.kr/topboard/bbs/board.php?bo_table=plugin_popup
이쪽에다 글을 올려주세요.. 감사합니다.
index에 삽입시켜서 띄우는 그 작업으로 했었어요 ㅠ_ㅠ
감사해요 완성하면 꼭 써야지 히히히히 ^-^ 댓글+추천하고갑니다
관리자 메뉴라고 되어있는 곳 위쪽으로는
Warning: include_once(../lib/cheditor.lib.php) [function.include-once]: failed to open stream: No such file or directory in /home/hosting_users/sasueki/www/adm/popup_form.php on line 4
Warning: include_once() [function.include]: Failed opening '../lib/cheditor.lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/hosting_users/sasueki/www/adm/popup_form.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 39
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 41
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 42
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 43
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/sasueki/www/adm/popup_form.php:4) in /home/hosting_users/sasueki/www/head.sub.php on line 45
이렇게 뜨고요
아래쪽으로는
Fatal error: Call to undefined function cheditor1() in /home/hosting_users/sasueki/www/adm/popup_form.php on line 31
이렇게 뜨는데 무엇이 문제이고 어찌 수정해야하는지 좀 알려주세요..
cheditor.lib.php 파일을 lib 폴더에 넣어보세요.
게시판을 선택하지 않고 미선택하여 모든게시판 적용으로 하니까 팝업창이 버버벅 거리면서
빠르게 새로고침 하는 것 같이 깜빡거려요 페이지 새로고침 하는 소리와 함께요. 이거 어찌해야하나요
아이프레임으로 불러온 부분에도 팝업이 실행됩니다
어떻게 해야 아이프레임부분의 팝업을 안나오게 할수 있나요?
http://cyda21.com 입니다
popup.lib.php 호출 하는부분을
메인에다만쓰실거면 index 페이지 제일 하단에만 넣어주세요
내용란이 안나오고 편집툴만 나와요 내용을 쓸수가 없어요.
그대로 했는데 왜 안될까요?
아래부분 이게 잘못 입력된건가요?
<?=cheditor2('popup', 'po_content', '100%', '350');?>
http://topschool.co.kr/topboard/bbs/board.php?bo_table=plugin_popup&wr_id=12
여러분들은 다 잘된다고 리플을 달아놔서 계속 이것저것 수정해서 해봐도
안되요.
제발 알려주세요
크게 달라진건 없는거죠?
http://topschool.co.kr/topboard/bbs/board.php?bo_table=plugin_popup&wr_id=12
select count(*) as cnt from topschool_popup where 1=1 order by po_datetime desc
1146 : 테이블 'josep.topschool_popup' 는 존재하지 않습니다.
error file : /adm/popup_list.php
라고 나타나네요.
그리고 DB추가를 어디에다 추가하라는 것인가요? 그누보드 처음이라서 모르겠습니다.
■ DB추가방법과 인코딩이 utf 인분들은 이렇게?
관리자페이지에 없다면, 웹호스팅회사 접속 마이페이지 등에 가보면
phpMyAdmin가 있습니다. phpMyAdmin접속 하면....
왼쪽상단에 sql 이라는 버튼을 누르고 db추가하는 내용넣고
[실행] 버튼을 누르면 테이블이 생성됩니다.
저처럼 그누보드 문자셋이 utf인 분들은 생성된 테이블인 g4_topschool_popup을 선택하면
euckr_korean_ci 로 표기된 부분을 아래와 같이
Collation 코드값 수정 : euckr_korean_ci >> utf8_general_ci 로 수정하고 테스트해보세요.
1146 : 테이블 'better.topschool_popup' 는 존재하지 않습니다.
error file : /gnu/adm/auth_list.php
어떤뜻의 에러인가요
array("100200", "팝업관리", "$g4[admin_path]/popup_list.php"),
이 파일을 어디다가 넣어야 하는건가요??
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=164145&sca=&sfl=wr_subject&stx=db&sop=and
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/adm/popup_list.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 38
그리고 레이어팝업 말고, 새창팝업 올려도 팝업내용 위에 오류구문뜹니다 ㅜㅜ
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/common.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 35
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 36
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 37
Warning: Cannot modify header information - headers already sent by (output started at /home/hosting_users/godwebs_studiosoul/www/skin/popup/basic/viewpop.skin.php:1) in /home/hosting_users/godwebs_studiosoul/www/head.sub.php on line 38
팝업창에 내용쓰는 난이 없네요..
그리고 등록도 안 됩니다.
어떻게 된건지..ㅡ.ㅡ;
[email protected] 부탁드립니다.