[Thùng rác] K_NewMess - PopupBox

  Bài viết hay nhất1
Mod đơn giản! Không đặc biệt lắm! Nhưng mà làm cho ai thích báo tin nhắn mới đen đen :v

Demo:
[Only admins are allowed to see this image]

Hướng dẫn:
B1: APC > Display > Templates > QLTT > overall_header
Tìm:
Code:
      <!-- BEGIN switch_enable_pm_popup -->
         pm = window.open('{U_PRIVATEMSGS_POPUP}', '_faprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');
         if(pm != null) { pm.focus(); }
      <!-- END switch_enable_pm_popup -->

Xóa đi và thay thế bằng Code sau:
Code:
          <!-- BEGIN switch_enable_pm_popup -->
                 pm = $('body').prepend('
                <div id="kinboxpop">
                  <div id="knmessagepop" style="z-index:999;">
                       <h3><span class="username">' + _userdata.username + '</span> có tin nhắn mới!<span id="closepop"><img src="http://i.imgur.com/Fv90Z1J.png"/></span></h3>
                    <span id="contentmess">Check inbox để xem tin nhắn!<br />Có ai đó đang để ý bạn chăng :)<br />
                       <a href="/privmsg?folder=inbox">Check ngay!!</a></span>
                     </div>
                </div>');
              $('#close_popup').on('click',function() {
                     $('#kinboxpop').remove();
                 });
              <!-- END switch_enable_pm_popup -->

B2: APC > Display > Pictures and Colors > Colors > CSS Stylesheet:
Thêm vào CSS:
Code:
/*k_NewMess - devs.forumvi.com*/
#kinboxpop{background:rgba(0,0,0,0.75);position:fixed;height:100%;width:100%;top:0;left:0;}
#kinboxpop #knmessagepop{background:#fff;border:1px solid #999;height:auto;margin:25% auto;overflow:hidden;width:500px;}
#kinboxpop #knmessagepop h3{position:relative;text-align:center;background:#333;border-bottom:1px solid #222;color:#fff;margin:0;font-weight:bold;padding:5px 0;}
#kinboxpop #closepop{cursor:pointer;position:absolute;right:0;top:0;}
#kinboxpop #contentmess{float:left;text-align:center;width:100%;padding:15px 0;}

- K. -

Nguồn: [Only admins are allowed to see this link]
  Bài viết hay nhất2
ko nhấn dc nút thank nhưng vẫn thank cho bạn
You cannot reply to topics in this forum