쪽지가 오면 알람되는 기능 문의입니다

쪽지가 오면 알람되는 기능 문의입니다

QA

쪽지가 오면 알람되는 기능 문의입니다

답변 3

본문

현재 아미나 apms 스킨을 쓰고 있습니다.

 

쪽지 스킨중 별이되고 싶어요님이 올려주신 쪽지 알람스킨을

 

 g5식으로 변경했는데 왜 안될까요?

 

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=137017&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EC%AA%BD%EC%A7%80+%EC%95%8C%EB%A6%BC

 

$g4[bbs] => G5_BBS_URL로 변경하고 bbs 폴더에 넣은 후

 

index와 head 상단 부분에 include_once("G5_BBS_URL/memo_animate.php"); 라고 입력했습니다.

 

 

제 소스입니다.

 

도와주세요 ㅜㅜ

 


<? 
    if ($member['mb_id']) {
        $sql = " select count(*) as cnt from {$g5['memo_table']} where me_recv_mb_id = '{$member['mb_id']}' and me_read_datetime = '0000-00-00 00:00:00' ";
        $row = sql_fetch($sql);
        $memo_not_read = $row['cnt'];
    }
?>
<? 
if($memo_not_read > 0){ ?>
<div class="animate_layer">
    <div style="height:15px; padding:7px 0 0 110px;"><img src=<? echo G5_BBS_URL ?>/img/animate_close.png id="animate_close" style="cursor:pointer;"></div>
  <div style="padding:10px;"><a href="javascript:win_memo_animate();">확인하지 않은 쪽지가 (<?=$memo_not_read?>)건 있습니다.</a></div>
</div>
<style>
.animate_layer a:link, .animate_layer a:visited, .animate_layer a:active { text-decoration:none; color:#ffffff; }
.animate_layer a:hover { text-decoration:underline; }
.animate_layer {
  top: 0px; left: 0px; width: 130px; height: 70px; position: absolute; display:none; color:#ffffff; background-color:#666666; background: url(<? echo G5_BBS_URL ?>/img/animate_bg.gif) no-repeat;
}
</style>
<script>
function win_memo_animate(url)
{
 $('.animate_layer').css('display', 'none');
  
    if (!url){
         url = <? echo G5_BBS_URL ?> + "/memo.php";
    }
    popup_window(url, "winMemo", "left=50,top=50,width=620,height=460,scrollbars=1");
}
$('#animate_close').click(function(){
 $('.animate_layer').css('display', 'none');
});
  
function animate_layer_open(){
    
 if(window.innerWidth){
  windowWidth = window.innerWidth;
 }else{
  if(document.documentElement && document.documentElement.clientWidth){
    windowWidth = document.documentElement.clientWidth;
  }else{
    if(document.body){
     windowWidth = document.body.offsetWidth;
    }
  }
 }
    
 if(window.innerHeight){
  windowHeight = window.innerHeight;
 }else{
  if(document.documentElement && document.documentElement.clientHeight){
   windowHeight=document.documentElement.clientHeight;
  }else{
   if(document.body){
   windowHeight = document.body.clientHeight;
   }
  }
 }
    
 var height_tmp = jQuery("div.animate_layer").height()+30;
 var windowHeight_tmp = windowHeight;
 var windowWidth_tmp = windowWidth - $("div.animate_layer").width()-40;
 
 $("div.animate_layer").css({ top:windowHeight_tmp + "px", left:windowWidth_tmp + "px"});
 $("div.animate_layer").show().animate({top:"-=" + height_tmp + "px"}, 1000)
}
  
jQuery(document).ready(function(){
 jQuery("body").animate({scrollTop:0},"slow",function(){ setTimeout(animate_layer_open,200) } )
});
</script>
<? } ?>​
​

이 질문에 댓글 쓰기 :

답변 3

근데도 안되는 이 불편한 진실 ㅜㅜ 무엇이 문제 일까요?

 

헤드에 분명히 적었는데 왜이럴까용 ㅜㅜ

 

<code>

<link rel="shortcut icon" href="intranet.ico" />
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

include_once(G5_BBS_URL."/memo_animate.php");

// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_head']) {
 include_once(G5_PATH.'/head.sub.php');
    if (!@include_once($config['cf_include_head'])) {
        die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');
    }
    return; // 이 코드의 아래는 실행을 하지 않습니다.
}

if(!defined('THEMA_PATH')) {
 include_once(G5_LIB_PATH.'/apms.thema.lib.php');
}

// Page Iframe Modal
if(APMS_PIM) {
 include_once(G5_PATH.'/head.sub.php');
 @include_once(THEMA_PATH.'/head.sub.php');
 return;
}

//Change Mode
if(G5_DEVICE_BUTTON_DISPLAY) {
    $seq = 0;
    $p = parse_url(G5_URL);
    $pc_mobile_href = $p['scheme'].'://'.$p['host'].$_SERVER['PHP_SELF'];
    if($_SERVER['QUERY_STRING']) {
        $sep = '?';
        foreach($_GET as $key=>$val) {
            if($key == 'device')
                continue;

            $pc_mobile_href .= $sep.$key.'='.strip_tags($val);
            $sep = '&';
            $seq++;
        }
    }

 $pc_mobile_device = G5_IS_MOBILE ? 'pc' : 'mobile';

 if($seq) {
        $pc_mobile_href .= '&device='.$pc_mobile_device;
    } else {
        $pc_mobile_href .= '?device='.$pc_mobile_device;
 }
} else {
    $pc_mobile_href = '';
}

$as_href['pc_mobile'] = $pc_mobile_href;

// Head Sub
include_once(G5_PATH.'/head.sub.php');

$page_title = apms_fa($page_title);
$page_desc = apms_fa($page_desc);
$menu = apms_auto_menu();

if($is_member) thema_member();

//Statistics
$stats = apms_stats();

if($is_main && !$hid && !$gid ) {
 $newwin_path = (G5_IS_MOBILE) ? G5_MOBILE_PATH : G5_BBS_PATH;
 @include_once ($newwin_path.'/newwin.inc.php'); // 팝업레이어
}

include_once(THEMA_PATH.'/head.php');

?>

</code> 

 

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,111
© SIRSOFT
현재 페이지 제일 처음으로