그누5 쪽지알림 질문좀 할게요.. 채택완료
재미니다
5년 전
조회 2,256
https://sir.kr/g5_plugin/5467">https://sir.kr/g5_plugin/5467
위 게시물을 참고하고 적용시켰는데요..
쪽지가 오면 소리도 나고 팝업까지 잘 뜨는데요..
여기서 팝업을 누르면 받은 쪽지함으로 바로 가게하려면 어디를 어떻게 수정해야하는지 좀 알려주세요.
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
5년 전
@재미니다
쪽지창 주소가 바뀐거 아니면
제가 위에 말한부분을 이렇게 한번 해보세요
</p>
<p> html += "<div class='notification-content'><a href=\"" + url + "\" class=\"cursor\">" + content + "</a></div>";</p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
재미니다
5년 전
댓글을 작성하려면 로그인이 필요합니다.
5년 전
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
재미니다
5년 전
현재 쪽지함이 새창이 아닌 바로 열리도록 해놓은 상태입니다ㅜㅜ
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
소스 남길께요..
var show_alarm_exist=false;
function check_alarm(){
$.ajax({
type:'POST',
data : ({act : 'alarm'}),
url: memo_alarm_url + '/get-events.php',
dataType:'json',
async:true,
cache:false,
success:function(result){
if(result.msg=='SUCCESS'){
show_alarm(result.title, result.content, result.url, result.me_id);
}else{
}
}
});
}
function show_alarm(title,content,url,me_id){
if(show_alarm_exist) hide_alarm();
show_alarm_exist=true;
var html = "";
audio.play();
html = "<div id='alarm_layer' class='wrapper-notification bottom right side' style='display:none'>";
html += "<div class='notification notification-primary notification-msg animated bounceInUp' id='" + me_id + "'>";
html += "<div class='notification-icon'><i class='fa fa-envelope'></i></div>";
html += "<div class='notification-close'>";
html += "<button class='close' onclick='hide_alarm()'><i class='fa fa-times fa-lg'></i></button>";
html += "</div>";
html += "<div class='notification-option'><button class='notification-check' data-toggle='tooltip' data-trigger='hover' data-html='true' data-placement='top' data-original-title='읽음' onclick='set_recv_memo(" + me_id + ")'><i class='fa fa-check'></i></button></div>";
html += "<div class='notification-heading'>" + RemoveTag(title) + "</div>";
html += "<div class='notification-content'><a href=\"" + url + "\" class=\"cursor\">" + content + "</a></div>";
html += "</div>";
html += "</div>";
$('body').prepend(html);
$('#alarm_layer').fadeIn();
setTimeout(function(){ hide_alarm(); }, 30000);
}
function hide_alarm(){
if(show_alarm_exist){
show_alarm_exist=false;
$("#alarm_layer").fadeOut(400,function(){
$('#alarm_layer').remove();
});
}
}
function set_recv_memo(me_id){
$.ajax({
type:'POST',
data : ({act : 'recv_memo', me_id : me_id}),
url: memo_alarm_url + '/get-events.php',
dataType:'json',
async:true,
cache:false,
success:function(result){
if(result.msg=='SUCCESS'){
hide_alarm();
}else{
}
}
});
}
function RemoveTag(s){
var tmp = '';
tmp = s;
tmp = tmp.replace('<','<');
tmp = tmp.replace('>','>');
tmp = tmp.replace('"','"');
return tmp;
}