Go down
Vession
Vession
Mem Pro
Mem Pro
Châm ngôn: : Điều Bình An Vĩ Đại
Tài Sản ($NL) Tài Sản ($NL) : 567049
Bài Viết : 1033
Tham Gia : 14/05/2009
Tuổi : 31
Đến từ : Tiền Giang - TPHCM
https://tinxemay.forumvi.com

Hướng dẫn dùng Fancybox2 + Thông báo có tin nhắn mới Empty Hướng dẫn dùng Fancybox2 + Thông báo có tin nhắn mới

16/8/2012, 12:10 pm
Demo:

Thông báo có tin nhắn :
[You must be registered and logged in to see this image.]
Xem ảnh với Fancybox2
[You must be registered and logged in to see this image.]
Chức năng:

Trình diễn loạt ảnh:
Trình diễn loạt ảnh theo từng bài viết
Loại bỏ ảnh lỗi,
Trình diễn ảnh hoặc liên kết ảnh.
Sử dụng các nút chức năng, bàn phím hoặc nút cuộn chuột để điều khiển.
Kích thước ảnh tự điều chỉnh theo kích thước cửa sổ, có chức năng xem kích thước thật.

Phát video youtube từ liên kết trực tiếp:
Chuyển liên kết thành ảnh thu nhỏ của video.
Phát video đơn hoặc playlist.

Thông báo khi có tin nhắn mới


Bước 1: Thêm vào CSS
ACP - Display - Pictures and Colors - Colors - CSS Stylesheet:
Code:
.fancybox-title-float-wrap{position:absolute;bottom:0;right:50%;margin-bottom:-35px;z-index: 999;text-align:center}
.fancybox-title-float-wrap .child{display:inline-block;margin-right:-100%;background:rgba(0,0,0,0.8);-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;text-shadow:0 1px 2px #222;color:#FFF;font-weight:700;line-height:24px;white-space:nowrap;padding:2px 20px}
.fancybox-title-outside-wrap{position:relative;margin-top:10px;color:#fff}
.fancybox-title-inside-wrap{margin-top:10px}
.fancybox-title-over-wrap{position:absolute;bottom:0;left:0;color:#fff;background:rgba(0,0,0,.8);padding:10px}
#fancybox-buttons{position:fixed;left:0;width:100%;z-index:1005}
#fancybox-buttons.top{top:10px}
#fancybox-buttons.bottom{bottom:10px}
#fancybox-buttons ul{display:block;width:170px;height:30px;list-style:none;-webkit-box-shadow:0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05);-moz-box-shadow:0 1px 3px #000,0 0 0 1px rgba(0,0,0,.7),inset 0 0 0 1px rgba(255,255,255,.05);background:#111 0 0 50% 50% 100%;border-radius:3px;margin:0 auto;padding:0}
#fancybox-buttons ul li{float:left;margin:0;padding:0}
#fancybox-buttons a{display:block;width:30px;height:30px;text-indent:-9999px;background-image:url(http://i48.servimg.com/u/f48/16/58/89/73/fancyb11.png);background-repeat:no-repeat;outline:none}
#fancybox-buttons a.btnPrev{width:32px;background-position:6px 0}
#fancybox-buttons a.btnNext{background-position:-33px 0;border-right:1px solid #3e3e3e}
#fancybox-buttons a.btnPlay{background-position:0 -30px}
#fancybox-buttons a.btnPlayOn{background-position:-30px -30px}
#fancybox-buttons a.btnToggle{background-position:3px -60px;border-left:1px solid #111;border-right:1px solid #3e3e3e;width:35px}
#fancybox-buttons a.btnToggleOn{background-position:-27px -60px}
#fancybox-buttons a.btnClose{border-left:1px solid #111;width:38px;background-position:-57px 0}
#fancybox-buttons a.btnDisabled{opacity:0.5;cursor:default}
.fancybox-prev:hover,.fancybox-next:hover,.fancybox-opened .fancybox-title{visibility:visible}
.post-entry .entry-content img{max-width:350px; display:none}
.iconPlayer{background:url(//ssl.gstatic.com/s2/tt/images/play-overlay.png) no-repeat scroll center center transparent;left:140px;opacity:0.8;position:absolute;top:-155px;z-index:99;padding:40px !important}

Bước 2: Thêm vào cuối overall_footer_begin
ACP - Display - Templates - Ganeral - overall_footer_begin
Code:
<script type="text/javascript" src="http://fmvi-group.googlecode.com/files/punBB-fancybox2-FMvi.js"></script>
<!--[if lte IE 6]>
  <style type="text/css">
                .post-entry .entry-content img{display: block !important}
  </style>
<![endif]-->
<noscript>
  <style type="text/css">
                .post-entry .entry-content img{display: block !important}
  </style>
</noscript>
Về Đầu Trang
Permissions in this forum:
Bạn không có quyền trả lời bài viết