A14 Tôi yêu

Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
A14 Tôi yêu

Tập đoàn đầu tư và phát triển toàn diện tài năng và nhan sắc

Latest topics

» TG 24 giờ qua ảnh: Người đàn ông thi leo cột mỡ
by handsomevip007 Wed 29 Aug 2012, 18:15

» Sấm sét Hà Nội lên tạp chí Mỹ
by handsomevip007 Wed 29 Aug 2012, 18:15

» Chùm ảnh:Lính Anh khỏa thân tập thể ủng hộ Hoàng tử Harry
by handsomevip007 Wed 29 Aug 2012, 18:14

» TG 24 giờ qua ảnh: Học viên cảnh sát rèn luyện
by handsomevip007 Wed 29 Aug 2012, 18:14

» Tóc bóng nước nổ tung trên đầu trọc mẫu nghiệp dư
by handsomevip007 Wed 29 Aug 2012, 18:14

» Cận cảnh hà mã quyết chiến tranh ngôi đầu đàn
by handsomevip007 Wed 29 Aug 2012, 18:13

» TG 24 giờ qua ảnh: Bé trai bị thương chờ điều trị
by handsomevip007 Wed 29 Aug 2012, 18:13

» TG 24 giờ qua ảnh: ‘Thây ma’ ngồi chờ tàu điện
by handsomevip007 Wed 29 Aug 2012, 18:13

» TG 24 giờ qua ảnh: Trẻ em chơi đùa với... trăn
by handsomevip007 Wed 29 Aug 2012, 18:13

» TG 24 giờ qua ảnh: Tiệc cưới dang dở vì cháy rừng
by handsomevip007 Wed 29 Aug 2012, 18:12

» Chùm ảnh: Bữa ăn hụt của sư tử chột
by handsomevip007 Wed 29 Aug 2012, 18:12

» Chùm ảnh: Giải cứu báo mắc kẹt trên hàng rào sắt
by handsomevip007 Wed 29 Aug 2012, 18:12

» Chế quai cho dép tông từ vải hoa
by handsomevip007 Wed 29 Aug 2012, 18:08

» Nhẫn cực xinh cực độc từ cán thìa
by handsomevip007 Wed 29 Aug 2012, 18:08

» Pha chế sơn móng tay từ phấn mắt
by handsomevip007 Wed 29 Aug 2012, 18:07

» Độc đáo vòng tay kết từ khuy
by handsomevip007 Wed 29 Aug 2012, 18:07

» Đan báo cũ thành thùng đựng đồ hữu dụng
by handsomevip007 Wed 29 Aug 2012, 18:07

» Độc đáo vườn treo trong nhà
by handsomevip007 Wed 29 Aug 2012, 18:06

» Bánh pancake theo phong cách Đức có gì lạ?
by handsomevip007 Wed 29 Aug 2012, 18:01

» Lạ miệng món salad bơ với cà chua
by handsomevip007 Wed 29 Aug 2012, 18:01

» Công thức bánh Madeleine pho mát tuyệt hảo
by handsomevip007 Wed 29 Aug 2012, 18:00

» Lạ miệng món mỳ gà nấu nước dừa
by handsomevip007 Wed 29 Aug 2012, 18:00

» Đẹp da với nước ép cà chua
by handsomevip007 Wed 29 Aug 2012, 18:00

» Ngọt ngào hương vị cà phê caramen
by handsomevip007 Wed 29 Aug 2012, 17:58

» TG 24h qua ảnh: Chiến binh tránh đạn bắn tỉa
by handsomevip007 Sat 25 Aug 2012, 14:53

» TG 24 giờ qua ảnh: Diễn tập sơ tán khỏi tòa nhà
by handsomevip007 Sat 25 Aug 2012, 14:52

» TG 24 giờ qua ảnh: Người biểu tình TQ phá xe Nhật
by handsomevip007 Sat 25 Aug 2012, 14:52

» Món tiết canh dưới ống kính nhiếp ảnh gia Đức
by handsomevip007 Sat 25 Aug 2012, 14:51

» TG 24 giờ qua ảnh: Cậu bé không bàn chân chơi bóng
by handsomevip007 Sat 25 Aug 2012, 14:46

» Nữ VĐV Wushu xinh đẹp, vung kiếm như phim kiếm hiệp
by handsomevip007 Fri 24 Aug 2012, 14:26

Chào bạn! Khách viếng thăm

    [FMvi-group] Đánh giá vài viết với Like & Dislike ver.3

    handsomevip007
    handsomevip007
    ĐẠI TƯỚNG CAO CẤP-Lv.6
    ĐẠI TƯỚNG CAO CẤP-Lv.6

    Số bài : 4021
    A14$ : 4499
    Danh tiếng : 920
    Tham gia : 01/12/2010


    Medal:
    Pet:
    Goods:

    [FMvi-group] Đánh giá vài viết với Like & Dislike ver.3 Empty [FMvi-group] Đánh giá vài viết với Like & Dislike ver.3

    Bài gửi by handsomevip007 Fri 18 Nov 2011, 11:55

    Chức năng:
    • Hiển thị số lượt đánh giá chuyên nghiệp.
    • Thực hiện nhiều đánh giá một lúc mà không bị chuyển trang.


    Ghi chú: Code được viết bởi baivong, tham khảo ý tưởng của ܓܨܓMxTrườngDion.
    Nếu bạn muốn sao chép hướng dẫn này đi nơi khác vui lòng không thay đổi bất kỳ thành phần nào trong code và phải ghi bản quyền thuộc www.FMvi.org

    Hướng dẫn: ACP - Display - Templates - Ganeral - viewtopic_body

    Bước 1: Tìm đoạn mã sau trong viewtopic_body và xóa nó đi:

    Code:
    <!-- BEGIN switch_vote_active -->
    <div class="vote gensmall">
       <!-- BEGIN switch_vote -->
       <div class="vote-button">
          <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
       </div>
       <!-- END switch_vote -->
       <!-- BEGIN switch_bar -->
       <div class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
          <!-- BEGIN switch_vote_plus -->
          <div class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
          </div>
          <!-- END switch_vote_plus -->
          <!-- BEGIN switch_vote_minus -->
          <div class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
          </div>
          <!-- END switch_vote_minus -->
       </div>
       <!-- END switch_bar -->
       <!-- BEGIN switch_no_bar -->
       <div title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
          ----
       </div>
       <!-- END switch_no_bar -->
       <!-- BEGIN switch_vote -->
       <div class="vote-button">
          <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
       </div>
       <!-- END switch_vote -->
    </div>
    <!-- END switch_vote_active -->

    ... và đặt một trong hai đoạn code dưới đây vào vị trí muốn hiển thị, nếu bạn chưa có kinh nghiệm chỉnh sửa templates thì tốt nhất nên thay đoạn này vào vị trí vừa xóa:

    + Đặt bên trái:

    Code:
    <span class="voteTopic" style="float:right">
       <!-- BEGIN switch_vote_active -->
       <span style="display:none" class="vote gensmall">
          <!-- BEGIN switch_vote -->
          <span class="vote-button">
             <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
          </span>
          <!-- END switch_vote -->
          <!-- BEGIN switch_bar -->
          <span class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
             <!-- BEGIN switch_vote_plus -->
             <span class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
             </span>
             <!-- END switch_vote_plus -->
             <!-- BEGIN switch_vote_minus -->
             <span class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
             </span>
             <!-- END switch_vote_minus -->
          </span>
          <!-- END switch_bar -->
          <!-- BEGIN switch_no_bar -->
          <span title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
             ----
          </span>
          <!-- END switch_no_bar -->
          <!-- BEGIN switch_vote -->
          <span class="vote-button">
             <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
          </span>
          <!-- END switch_vote -->
       </span>
       <!-- END switch_vote_active -->
    </span>
    <strong class="loadFMvi">
       <img alt="Loading" src="http://farm04.go.vn/photo/data/20111012/10798851/946D73AB7E9F949624C2BF756D1ED794.gif" />
    </strong>

    + Đặt bên phải:

    Code:
    <strong class="loadFMvi">
       <img alt="Loading" src="http://farm04.go.vn/photo/data/20111012/10798851/946D73AB7E9F949624C2BF756D1ED794.gif" />
    </strong>
    <span class="voteTopic" style="float:left">
       <!-- BEGIN switch_vote_active -->
       <span style="display:none" class="vote gensmall">
          <!-- BEGIN switch_vote -->
          <span class="vote-button">
             <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}">+</a>
          </span>
          <!-- END switch_vote -->
          <!-- BEGIN switch_bar -->
          <span class="vote-bar" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}">
             <!-- BEGIN switch_vote_plus -->
             <span class="vote-bar-plus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_plus.HEIGHT_PLUS}px;">
             </span>
             <!-- END switch_vote_plus -->
             <!-- BEGIN switch_vote_minus -->
             <span class="vote-bar-minus" style="height:{postrow.displayed.switch_vote_active.switch_bar.switch_vote_minus.HEIGHT_MINUS}px;">
             </span>
             <!-- END switch_vote_minus -->
          </span>
          <!-- END switch_bar -->
          <!-- BEGIN switch_no_bar -->
          <span title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}" class="vote-no-bar">
             ----
          </span>
          <!-- END switch_no_bar -->
          <!-- BEGIN switch_vote -->
          <span class="vote-button">
             <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}">-</a>
          </span>
          <!-- END switch_vote -->
       </span>
       <!-- END switch_vote_active -->
    </span>

    Bước 2: Chèn một trong hai đoạn mã sau đây vào cuối viewtopic_body:


    + Đặt bên phải:

    Code:
    <style>
    .voteTopic {
        background: none repeat scroll 0 0 #000;
        color: yellow;
        border: 1px solid #1E1E1D;
        border-radius: 0;
        box-shadow: 0 0 1px black;
        float: left;
        cursor: pointer;
        padding: 2px 5px;
    }
    .voteTopic .plusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_b12.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .xplusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_n11.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .xminusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik16.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .minusFMvi{
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik15.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .loadFMvi {
        display:none;
        margin: 0;
    }
    </style>
    <iframe name="voteFMvi" height="0px" width="0px" frameborder="0"></iframe>
    <script type="text/javascript">
    $('.voteTopic').each(function (index) {
      $(this).prev().attr('alt', 'vote'+index);
      $(this).attr('alt', 'vote'+index).append('<span alt="vote'+index+'" class="xplusFMvi"></span><span class="cong" alt="vote'+index+'">0</span><span alt="vote'+index+'" class="xminusFMvi"></span><span class="tru" alt="vote'+index+'">0</span>');
      var altthis = $(this).attr('alt'); 
      var plink = $(this).find('a[href$="eval=plus"]').attr('href');
        var mlink = $(this).find('a[href$="eval=minus"]').attr('href');
        if ($(this).find('.vote a').length > 0) {
      $('.xplusFMvi[alt="'+altthis+'"]').replaceWith('<a style="float: left" target="voteFMvi" href="'+plink+'"><span alt="'+altthis+'" class="plusFMvi"></span></a>');
      $('.xminusFMvi[alt="'+altthis+'"]').replaceWith('<a target="voteFMvi" href="'+mlink+'"><span alt="'+altthis+'" class="minusFMvi"></span></a>');
        };
        if ($(this).find('.vote-bar').length > 0) {
            var z = $(this).find('.vote-bar').attr('title').split(' ');
            var m = parseInt(z[3].replace(/%/, '')) / 100;
            var n = parseInt(z[4].replace(/\(/, ''));
            c = String(Math.round(n * m));
            d = String(n - c);
            $('.cong[alt="'+altthis+'"]').replaceWith('<span class="cong" alt="'+altthis+'">'+c+'</span>');
            $('.tru[alt="'+altthis+'"]').replaceWith('<span class="tru" alt="'+altthis+'">'+d+'</span>');
        }; 
        $('.plusFMvi').click(function () {
            var altcong = $(this).attr('alt');
            var x = Number($('.cong[alt="'+altcong+'"]').text())+1;
            $('.plusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+altcong+'"]').show().fadeOut(1000, function(){
            $('.cong[alt="'+altcong+'"]').replaceWith('<span class="cong">'+x+'</span>');
            });
        });
        $('.minusFMvi').click(function () {
            var alttru = $(this).attr('alt');
            var y = Number($('.tru[alt="'+alttru+'"]').text())+1;
            $('.plusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+alttru+'"]').show().fadeOut(1000, function(){
              $('.tru[alt="'+alttru+'"]').replaceWith('<span class="cong">'+y+'</span>');
            });
        });
    });
    </script>

    + Đặt bên trái:

    Code:
    <style>
    .voteTopic {
        background: none repeat scroll 0 0 #000;
        color: yellow;
        border: 1px solid #1E1E1D;
        border-radius: 0;
        box-shadow: 0 0 1px black;
        float: left;
        cursor: pointer;
        padding: 2px 5px;
    }
    .voteTopic .plusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_b12.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .xplusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/like_n11.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .xminusFMvi {
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik16.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .voteTopic .minusFMvi{
        background: url(http://i48.servimg.com/u/f48/16/58/89/73/dislik15.png) no-repeat scroll center center transparent;
        padding: 0 12px;
    }
    .loadFMvi {
        display:none;
        margin: 0;
    }
    </style>
    <iframe name="voteFMvi" height="0px" width="0px" frameborder="0"></iframe>
    <script type="text/javascript">
    $('.voteTopic').each(function (index) {
      $(this).next().attr('alt', 'vote'+index);
      $(this).attr('alt', 'vote'+index).append('<span alt="vote'+index+'" class="xplusFMvi"></span><span class="cong" alt="vote'+index+'">0</span><span alt="vote'+index+'" class="xminusFMvi"></span><span class="tru" alt="vote'+index+'">0</span>');
      var altthis = $(this).attr('alt'); 
      var plink = $(this).find('a[href$="eval=plus"]').attr('href');
        var mlink = $(this).find('a[href$="eval=minus"]').attr('href');
        if ($(this).find('.vote a').length > 0) {
      $('.xplusFMvi[alt="'+altthis+'"]').replaceWith('<a style="float: left" target="voteFMvi" href="'+plink+'"><span alt="'+altthis+'" class="plusFMvi"></span></a>');
      $('.xminusFMvi[alt="'+altthis+'"]').replaceWith('<a target="voteFMvi" href="'+mlink+'"><span alt="'+altthis+'" class="minusFMvi"></span></a>');
        };
        if ($(this).find('.vote-bar').length > 0) {
            var z = $(this).find('.vote-bar').attr('title').split(' ');
            var m = parseInt(z[3].replace(/%/, '')) / 100;
            var n = parseInt(z[4].replace(/\(/, ''));
            c = String(Math.round(n * m));
            d = String(n - c);
            $('.cong[alt="'+altthis+'"]').replaceWith('<span class="cong" alt="'+altthis+'">'+c+'</span>');
            $('.tru[alt="'+altthis+'"]').replaceWith('<span class="tru" alt="'+altthis+'">'+d+'</span>');
        }; 
        $('.plusFMvi').click(function () {
            var altcong = $(this).attr('alt');
            var x = Number($('.cong[alt="'+altcong+'"]').text())+1;
            $('.plusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+altcong+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+altcong+'"]').show().fadeOut(1000, function(){
            $('.cong[alt="'+altcong+'"]').replaceWith('<span class="cong">'+x+'</span>');
            });
        });
        $('.minusFMvi').click(function () {
            var alttru = $(this).attr('alt');
            var y = Number($('.tru[alt="'+alttru+'"]').text())+1;
            $('.plusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xplusFMvi"></span>');
            $('.minusFMvi[alt="'+alttru+'"]').replaceWith('<span class="xminusFMvi"></span>');
            $('.loadFMvi[alt="'+alttru+'"]').show().fadeOut(1000, function(){
              $('.tru[alt="'+alttru+'"]').replaceWith('<span class="cong">'+y+'</span>');
            });
        });
    });
    </script>


    ---o0o Hết o0o---


    Viết bởi baivong - www.FMvi.org

      Hôm nay: Thu 28 Mar 2024, 17:27