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.

tung

Latest topics


    [Code Invision] và [Code Phpbb3] Nút chuyển vị trí Profile

    Ruby
    Ruby
    User's Founder


    Bài viết : 460
    Ryo : 4839
    Cảm ơn : 3022
    Nam Date : 09/04/2012
    Tuổi : 25
    Đến từ : Việt Nam

    [Code Invision] và [Code Phpbb3]  Nút chuyển vị trí Profile Empty [Code Invision] và [Code Phpbb3] Nút chuyển vị trí Profile

    Bài gửi by Ruby Fri May 04, 2012 1:31 pm

    [Code Invision] và [Code Phpbb3]  Nút chuyển vị trí Profile 19254677

    Cách làm :



    Vào Javascript codes management tạo Javascript mới :
    Title * : Chuyển vị trí pro5.
    Placement : In the topics.
    Javascript Code * : { Cho Phpbb3 }

    Code:
    //Script for ESF. Copyright © 2011 by Dion Designs. All Rights Reserved.
    function setprofile(loc) {
      if (loc == 'left') {
          $('.postprofile').css({
            'float': 'left',
            'border-left': 'none',
            'border-right': '1px solid #ffffff'
          });
          $('.postprofile dl').css('margin', '0px 8px 0px 0px');
          $('.postbody').css('float', 'right')
      } else {
          $('.postprofile').css({
            'float': 'right',
            'border-left': '1px solid #ffffff',
            'border-right': 'none'
          });
          $('.postprofile dl').css('margin', '0px 0px 0px 8px');
          $('.postbody').css('float', 'left')
      }
    }
    function toggleprofile() {
      var x = my_getcookie('prloc');
      if (x == 'left') {
          x = 'right'
      } else {
          x = 'left'
      }
      my_setcookie('prloc', x, true);
      setprofile(x)
    }
    $(function () {
      if (!document.getElementById('blog_comments') && $('.addthis_button')[0]) {
          $('.addthis_button').eq(0).before('<button class="button2" title="Toggle post profile location" onfocus="this.blur()" onclick="toggleprofile()"><img style="padding:0px 2px;" src="http://2img.net/i/fa/edit.png" /></button> • ');
          var x = my_getcookie('prloc');
          if (x == null) {
            x = 'left'
          }
          my_setcookie('prloc', x, true);
          setprofile(x)
      }
    });

    Javascript Code * :{ cho Invision }
    Code:
    //Script for ESF. Copyright © 2011 by Dion Designs. All Rights Reserved.
    function setprofile(loc) {
      prloc = loc;
      if (loc == 'left') {
          $('.postprofile').css({
            'float': 'left',
            'margin': '0px 0px 0px -18em'
          });
          $('.post-container').css('margin', '0px 0px 0px 18em');
      } else {
          $('.postprofile').css({
            'float': 'right',
            'margin': '0px -18em 0px 0px'
          });
          $('.post-container').css('margin', '0px 18em 0px 0px');
      }
    }
    function toggleprofile() {
      var x = my_getcookie('prloc');
      var x = prloc;
      if (x == 'left') {
          x = 'right';
      } else {
          x = 'left';
      }
      my_setcookie('prloc', x, true);
      setprofile(x);
    }
    $(function () {
      if (!document.getElementById('blog_comments') && $('.addthis_button')[0]) {
          $('.addthis_button').eq(0).before('<button class="button2" title="Toggle post profile location" onclick="toggleprofile();"><img style="margin:0px 2px;" src="http://2img.net/i/fa/edit.png" /></button>');
          var x = my_getcookie('prloc');
          if (x == null) {
            x = 'left'
          }
          my_setcookie('prloc', x, true);
          setprofile(x)
      }
    });

    Nguồn: CNTT-K3

      Hôm nay: Mon May 13, 2024 2:49 am