팝업 24시간 안열리기가 안되요 채택완료

사정이 있어서 메인을 직접 만들었습니다.

메인의 탑부분은 아래와 같습니다. (그누보드의 css를 사용할수없어서 팝업부분만 가져와서 직접 썼습니다.)

그런데 팝업도 잘 열리고 닫기도 잘 되는데

"24시간 동안 다시 열람하지 않습니다."가 안됩니다.

소스 보시면

common.lib.php 도 있고 common.js도 있어서 쿠키를 제어하는데 문제가 없을줄 알았는데

이게 왜 안되는지 모르겠습니다.

조언을 부탁드립니다.

 

감사합니다.

Copy
<?
$g5_path="./";
include_once("$g5_path/common.php");
include_once(G5_LIB_PATH.'/latest.lib.php');
include_once(G5_LIB_PATH.'/common.lib.php');

?>    


<script src="/js/jquery-1.12.4.min.js?ver=210618"></script>
<script src="/js/jquery-migrate-1.4.1.min.js?ver=210618"></script>
<script src="/js/jquery.menu.js?ver=210618"></script>
<script src="/js/common.js?ver=210618"></script>
<script src="/js/wrest.js?ver=210618"></script>
<script src="/js/placeholders.min.js?ver=210618"></script>


<style>
/* 팝업레이어 */
#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff}
.hd_pops img {max-width:100%}
.hd_pops_con {}
.hd_pops_footer {padding:0;background:#000;color:#fff;text-align:left;position:relative}
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
.hd_pops_footer button {padding:10px;border:0;color:#fff}
.hd_pops_footer .hd_pops_reject {background:#000;text-align:left}
.hd_pops_footer .hd_pops_close {background:#393939;position:absolute;top:0px;right:0;padding-bottom:7px}

@media screen and (max-width: 992px) {
/* 팝업레이어 */
#hd_pop {z-index:1000;position:relative;margin:0 auto;width:100%;height:0}
#hd_pop h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff}
.hd_pops img {max-width:100%;height:auto}
.hd_pops_con {}
.hd_pops_footer {padding:10px 0;background:#000;color:#fff;text-align:right}
.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
}

</style>
<?include_once(G5_BBS_PATH.'/newwin.inc.php');?>

답변 2개

채택된 답변
+20 포인트

Copy
...

<script src="/js/wrest.js?ver=210618"></script>
<script src="/js/placeholders.min.js?ver=210618"></script>

 

<script>
var g5_cookie_domain = "<?php echo G5_COOKIE_DOMAIN ?>";
</script>

 

<style>
/* 팝업레이어 */
#hd_pop {z-index:1000;position:relative;margin:0 auto;height:0}

...
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

include_once("$g5_path/common.php");
여기에 오타가 있습니다.
Copy
include_once("$g5_path/common.php"); // 오타
include_once($g5_path."/common.php"); // 수정 후
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고