Đăng Nhập

Vui lòng khai báo chính xác tên truy cập và mật khẩu!

Quên mật khẩu?

    Nhờ làm giúp last topic cho PunBB

      Thành Viên Chính Thức
      Dragon_Slayer

      Giới tính : Nam

      Tuổi : 27

      Đến từ : TH

      Ngày Tham gia : 23/03/2012

      Tổng số bài gửi : 7

      #1

       Wed Jun 13, 2012 10:31 pm

      Hiện tại em đang có một cái 4rum PunBB đang thiếu Last Toppic Coder của chúng em thì nghỉ đẻ mất rùi k6

      Nên nhờ Admin,Mod,Smo.... (nhờ bác Smod bác ấy kêu ứ biết) làm giùm

      Em không muốn share pass Admin lên đây nên mọi người Add nick yahoo mình:

      [You must be registered and logged in to see this link.]

      P/s: nếu Admin ngại ko mún Add thì để em add :D

      Thank mấy bác nhìu lém iu

      Link forum em đây: [You must be registered and logged in to see this link.]
      Tony Stark

      Giới tính : Nam

      Tuổi : 31

      Đến từ : Cần thơ

      Ngày Tham gia : 10/01/2012

      Tổng số bài gửi : 750

      #2

       Thu Jun 14, 2012 7:03 am

      Sau đây là hướng dẫn chi tiết về phiên bản tooltip này:

      Đầu tiên tìm trong overall_header
      [You must be registered and logged in to see this link.]









































      {giefmod_index1.MODVAR}
















































      Sửa thành
      [You must be registered and logged in to see this link.]












      Code:




      <div id="page-body">
                        <div id="{ID_LEFT}">
                          <!-- BEGIN giefmod_index1 -->
                              {giefmod_index1.MODVAR}
                          <!-- BEGIN saut -->
                          <div style="height:{SPACE_ROW}px"></div>
                          <!-- END saut -->
                          <!-- END giefmod_index1 -->
                        </div>
                        <div id="{ID_CONTENT_CONTAINER}"{CLASS_CONTENT_CONTAINER}>
                          <div id="outer-wrapper">
                              <div id="wrapper">
                                <div id="container">
                                    <div id="content">
                                      <div id="main">
                                          <div id="main-content">

      <!-- BEGIN html_validation -->
                                          </div>
                                      </div>
                                    </div>
                                </div>
                              </div>
                          </div>
                        </div>
                    </div>
                  </div>
              </div>
            </div>
        </div>
      </body>
      </html>
      <!-- END html_validation -->
                         
                         
                         





















      [/code]



















      CSS
      Code:[You must be registered and logged in to see this link.]

      #DL_LastTopic,.DL_TooltipCCM{position:absolute;display:none;background-image:url(https://i.servimg.com/u/f48/13/58/60/43/opacit10.png);padding:10px
      20px;border-radius:5px;color:white;z-index:99;}
      .DL_Tooltip {display:none;}
      .TrangTruoc,.TrangSau{font:12px

      Courier;cursor:pointer;color:red;position:absolute;top:-29px;height:30px;width:30px;opacity:0.6;}
      .TrangTruoc:hover,.TrangSau:hover{opacity:1;}
      .TrangTruoc{right:40px;background:url(https://i.servimg.com/u/f48/16/58/89/73/fancy_12.png) no-repeat;}
      .TrangSau{right:10px;background:url(https://i.servimg.com/u/f48/13/58/60/43/fancy_10.png) no-repeat;}
      #Chon_LTopic{position:absolute;top:-30px;border:0;height:25px!important;left:11px;background:#627AAD;color:#DEDFDF;}
      .spanphai,.spanphailtp,.spanphaiccm{float:right;white-space:nowrap;width:45%;text-align:right;}
      .spanphai{width:30%;}
      .ccmvds{height:16px;}
      .tenltp,.tenccm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:55%;float:left;text-transform:capitalize;}
      #main-rf-content{position:relative;}
      HTML + JS (cho vô toàn bộ code này vào recent topic hen)
      Code:[You must be registered and logged in to see this link.]





      Bài gửi sau cùng












      {classical_row.recent_topic_row.switch_poster_guest.S_POSTER}










      Bài gửi sau cùng Bài chưa ai trả lời Bài mới từ lần truy cập trước Bài có bạn tham gia thảo luận



      //$('#rf-content .tenltp a').each(function(){
      $(this).attr('href',$(this).attr('href').split('#')[0]);
      });

      t_lasttopic=0;
      $('.TrangTruoc').hide();
      $('.TrangTruoc').click(function(){TooltipVDS(-1);});
      $('.TrangSau').click(function(){TooltipVDS(1);});
      linklasttopic='/search?search_author=%2A&search_keywords&start=';

      if (!$('#logout').is(':visible'))$('#Chon_LTopic').hide();

      $('#Chon_LTopic').change(function(){
      $('#TenLasttopic').text($(this).val());
      if ($(this).val()=='Bài gửi sau cùng')
      {
      linklasttopic='/search?search_author=%2A&search_keywords&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài chưa ai trả lời')
      {
      linklasttopic='/search?search_id=unanswered&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài mới từ lần truy cập trước')
      {
      linklasttopic='/search?search_id=newposts&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài có bạn tham gia thảo luận')
      {
      linklasttopic='/search?search_id=egosearch&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      });

      $('#DL_LastTopic').ajaxStart(function(){$('#TuyChonLastTopic').fadeOut();});
      $('#DL_LastTopic').ajaxComplete(function(){$('#TuyChonLastTopic').fadeIn();});

      function TooltipVDS(trang_lt){
      t_lasttopic+=trang_lt;
      if (trang_lt!=0) $('#rf-content').html('Nhờ làm giúp last topic cho PunBB Loadin15');
      $('#DL_LastTopic').load(linklasttopic+t_lasttopic*10+' form.frm-form .main-content .table .statused tr:lt(10)',function(){
      if ($('#DL_LastTopic').is(':empty'))
      {
      $('#rf-content').text('Hết dữ liệu');
      $('.TrangSau').hide();
      }
      else
      {
      $('.TrangSau').fadeIn();
      if (trang_lt!=0) $('#rf-content').empty();
      $('#DL_LastTopic tr').each(function(index){
      if (trang_lt!=0)
      {
      $('
      ').appendTo('#rf-content');

      $('
      ').html('♥
      '+$(this).find('td:first
      .topic-title').html()).appendTo('.ltpvds:last');
      $(this).find('td:eq(4) a:last').remove();
      $('
      ').html($(this).find('td:eq(4)').html()).appendTo('.ltpvds:last');
      t_lasttopic>0 ? $('.TrangTruoc').fadeIn() : $('.TrangTruoc').hide();
      }
      $('
      ').appendTo('#DL_LastTopic');

      $('
      ').html('Tiêu đề: '+$(this).find('td:first
      a.topictitle').text()+'
      ').appendTo('.DL_Tooltip:last');

      $('
      ').html('Chuyên mục: '+$(this).find('td:eq(1)').text()+'').appendTo('.DL_Tooltip:last');

      $('
      ').html('Người
      sáng lập: '+$(this).find('td:first
      a.gensmall').html()).appendTo('.DL_Tooltip:last');

      $('
      ').html('Người gửi cuối:
      '+$(this).find('td:eq(4)
      a.gensmall').html()).appendTo('.DL_Tooltip:last');
      $(this).find('td:eq(4) a.gensmall').remove();
      guicuoi=$(this).find('td:eq(4)').text().replace(' by','');

      $('
      ').html('Thời gian gửi: '+guicuoi+'').appendTo('.DL_Tooltip:last');

      $('
      ').html('Trạng thái: '+$(this).find('td:first .status
      img').attr('alt').replace('New posts','Có bài viết mới').replace('No new
      posts','Không có bài viết mới').replace('This topic is locked','Chủ đề
      này đã bị khóa')+'
      ').appendTo('.DL_Tooltip:last');

      $('
      ').html('Có
      '+$(this).find('td:eq(3)').text()+'
      lượt người xem và '+$(this).find('td:eq(2)').text()+'
      bài trả lời').appendTo('.DL_Tooltip:last');

      $(this).find('td:first img[alt*="posted in this topic"]').length ?
      $('
      ').html($(this).find('td:first
      img[alt*="posted in this topic"]').attr('alt').replace('You have posted
      in this topic.','Bạn đã tham gia thảo luận tại
      chủ đề này
      ').replace('You have not posted in this
      topic.','Bạn chưa tham gia thảo luận tại chủ đề
      này
      ')).appendTo('.DL_Tooltip:last') :
      $('
      ').html('Bạn chưa tham
      gia thảo luận tại chủ đề
      này
      ').appendTo('.DL_Tooltip:last');
      $(this).remove();
      });
      }
      });
      }

      $(window).load(function(){
      if ($('#DL_LastTopic').is(':empty'))
      {
      $('#DL_LastTopic').html('Nhờ làm giúp last topic cho PunBB Gsnjnw10');
      TooltipVDS(0);
      }
      });

      $('#rf-content .tenltp a').live('mouseenter',function(){
      if ($('#DL_LastTopic').is(':empty'))
      {

      $('#DL_LastTopic').html('Nhờ làm giúp last topic cho PunBB Gsnjnw10').ajaxComplete(function(){$('#DL_LastTopic

      .DL_Tooltip').filter(':eq('+$(this).parent().parent().index()+')').show();});
      TooltipVDS(0);
      }
      $('#DL_LastTopic').show();
      $('#DL_LastTopic .DL_Tooltip').hide();
      $('#DL_LastTopic .DL_Tooltip').filter(':eq('+$(this).parent().parent().index()+')').show();
      $(this).live('mousemove',function(event){$('#DL_LastTopic').css({'left':event.pageX-30,'top':event.pageY+30});});
      });
      $('#rf-content .tenltp a').live('mouseleave',function(){$('#DL_LastTopic').hide();});
      //]]>
      Hướng dẫn chi tiết JS cho các bạn nào muốn chỉnh sửa:
      Code:[You must be registered and logged in to see this link.]

      $('#rf-content .tenltp a').each(function(){
      $(this).attr('href',$(this).attr('href').split('#')[0]);
      });
      Đoạn
      js này sẽ tự động loại bỏ phần đánh dấu trên trang khi các bạn bấm vào
      link trên lasttopic. (Nếu các bạn không thích có thể xóa hẳn nó đi)
      Code:[You must be registered and logged in to see this link.]

      t_lasttopic=0;
      $('.TrangTruoc').hide();
      $('.TrangTruoc').click(function(){TooltipVDS(-1);});
      $('.TrangSau').click(function(){TooltipVDS(1);});
      linklasttopic='/search?search_author=%2A&search_keywords&start=';

      Đoạn
      js này sẽ đặt mặc định cho lasttpic lần đầu tiên sẽ chỉ load tooltip và
      thiết lập đường link đầu tiên cho lasttopic cùng các hàm cần chạy khi
      bấm vào nút chuyển trang.
      Code:[You must be registered and logged in to see this link.]

      if (!$('#logout').is(':visible'))$('#Chon_LTopic').hide();
      Đoạn js này sẽ ẩn các chế độ tùy chọn cho thành viên khi chưa đăng nhập. Gồm có 3 tùy chọn như đã giới thiệu ở trên.
      Code:[You must be registered and logged in to see this link.]

      $('#Chon_LTopic').change(function(){
      $('#TenLasttopic').text($(this).val());
      if ($(this).val()=='Bài gửi sau cùng')
      {
      linklasttopic='/search?search_author=%2A&search_keywords&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài chưa ai trả lời')
      {
      linklasttopic='/search?search_id=unanswered&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài mới từ lần truy cập trước')
      {
      linklasttopic='/search?search_id=newposts&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      else if ($(this).val()=='Bài có bạn tham gia thảo luận')
      {
      linklasttopic='/search?search_id=egosearch&start=';
      t_lasttopic=1;
      TooltipVDS(-1);
      }
      });
      Đối với thành viên đã đăng nhập.
      Đoạn JS này sẽ thay thế những đường link cơ bản để load dữ liệu khi chọn các tùy chọn tương ứng.
      Code:[You must be registered and logged in to see this link.]

      $('#DL_LastTopic').ajaxStart(function(){$('#TuyChonLastTopic').fadeOut();});
      $('#DL_LastTopic').ajaxComplete(function(){$('#TuyChonLastTopic').fadeIn();});

      Đoạn
      JS này sẽ ẩn những tùy chọn chuyển trang, chọn các mục tại select khi
      quá trình load dữ liệu hoạt động và hiện nó lên khi quá trình load hoàn
      thành.
      [tr][td]Code:[You must be registered and logged in to see this link.][/td][/tr]

      function TooltipVDS(trang_lt){
      t_lasttopic+=trang_lt;
      if (trang_lt!=0) $('#rf-content').html('Nhờ làm giúp last topic cho PunBB Loadin15');
      $('#DL_LastTopic').load(linklasttopic+t_lasttopic*10+' form.frm-form .main-content .table .statused tr:lt(10)',function(){
      if ($('#DL_LastTopic').is(':empty'))
      {
      $('#rf-content').text('Hết dữ liệu');
      $('.TrangSau').hide();
      }
      else
      {
      $('.TrangSau').fadeIn();
      if (trang_lt!=0) $('#rf-content').empty();
      $('#DL_LastTopic tr').each(function(index){
      if (trang_lt!=0)
      {
      $('
      ').appendTo('#rf-content');

      $('
      ').html('♥
      '+$(this).find('td:first
      .topic-title').html()).appendTo('.ltpvds:last');
      $(this).find('td:eq(4) a:last').remove();
      $('
      ').html($(this).find('td:eq(4)').html()).appendTo('.ltpvds:last');
      t_lasttopic>0 ? $('.TrangTruoc').fadeIn() : $('.TrangTruoc').hide();
      }
      $('
      ').appendTo('#DL_LastTopic');

      $('
      ').html('Tiêu đề:
      Thành Viên Chính Thức
      Dragon_Slayer

      Giới tính : Nam

      Tuổi : 27

      Đến từ : TH

      Ngày Tham gia : 23/03/2012

      Tổng số bài gửi : 7

      #3

       Thu Jun 14, 2012 7:58 am

      Uầy sao ông bảo ông ko biết làm Nhờ làm giúp last topic cho PunBB 02-YUNO

      mà đoạn code trong code thì tính sao ta chiu

      Edit: Èo chả làm đc Bùn
      Admin
      Admin

      Giới tính : Nam

      Đến từ : TPHCM

      Ngày Tham gia : 03/04/2011

      Tổng số bài gửi : 2292

      #4

       Thu Jun 14, 2012 6:38 pm

      Dragon_Slayer đã viết:Hiện tại em đang có một cái 4rum PunBB đang thiếu Last Toppic Coder của chúng em thì nghỉ đẻ mất rùi k6

      Nên nhờ Admin,Mod,Smo.... (nhờ bác Smod bác ấy kêu ứ biết) làm giùm

      Em không muốn share pass Admin lên đây nên mọi người Add nick yahoo mình:

      [You must be registered and logged in to see this link.]

      P/s: nếu Admin ngại ko mún Add thì để em add :D

      Thank mấy bác nhìu lém iu

      Link forum em đây: [You must be registered and logged in to see this link.]
      cho pass đăng nhập đi bạn.!để mình vào xem thế nào! Smile
      Thành Viên Chính Thức
      Dragon_Slayer

      Giới tính : Nam

      Tuổi : 27

      Đến từ : TH

      Ngày Tham gia : 23/03/2012

      Tổng số bài gửi : 7

      #5

       Thu Jun 14, 2012 11:22 pm

      Dạ vừa gửi tin nhắn cho anh rùi huhu:
      Admin
      Admin

      Giới tính : Nam

      Đến từ : TPHCM

      Ngày Tham gia : 03/04/2011

      Tổng số bài gửi : 2292

      #6

       Fri Jun 15, 2012 1:33 am

      Dragon_Slayer đã viết:Dạ vừa gửi tin nhắn cho anh rùi huhu:
      Nhờ làm giúp last topic cho PunBB Pp10
      BQT đã làm cho bạn XONG RUI DO NHE BAN Smile .mọng bạn sẽ luôn ủng hộ forum.nhớ chèn liên kết forum mình nhe! Idea
      Thành Viên Chính Thức
      Dragon_Slayer

      Giới tính : Nam

      Tuổi : 27

      Đến từ : TH

      Ngày Tham gia : 23/03/2012

      Tổng số bài gửi : 7

      #7

       Fri Jun 15, 2012 8:32 am

      Ồ Ồ Ồ cảm ơn anh nhìu nhìu lắm,em đặt liên kết lun iu

      Mà sao nó có đến 2 cái last vầy ta k3

      P/s: Tự nhiên có thằng đảo đảo forum lên Top Poster =)) Hài

      Sao nó cứ hiện chữ null thế nhỉ phải nhấn vào chữ null thứ nhất mới vô đc chiu
      Admin
      Admin

      Giới tính : Nam

      Đến từ : TPHCM

      Ngày Tham gia : 03/04/2011

      Tổng số bài gửi : 2292

      #8

       Fri Jun 15, 2012 9:38 am

      Dragon_Slayer đã viết:Ồ Ồ Ồ cảm ơn anh nhìu nhìu lắm,em đặt liên kết lun iu

      Mà sao nó có đến 2 cái last vầy ta k3

      P/s: Tự nhiên có thằng đảo đảo forum lên Top Poster =)) Hài

      Sao nó cứ hiện chữ null thế nhỉ phải nhấn vào chữ null thứ nhất mới vô đc chiu
      để mình xem! đó là do code của bạn!!để mình bỏ cho!
      Thành Viên Chính Thức
      Dragon_Slayer

      Giới tính : Nam

      Tuổi : 27

      Đến từ : TH

      Ngày Tham gia : 23/03/2012

      Tổng số bài gửi : 7

      #9

       Fri Jun 15, 2012 4:07 pm

      anh làm cái last topic giống này đc ko

      [You must be registered and logged in to see this link.]

      em làm theo mãi mà chả đc bun
      Admin
      Admin

      Giới tính : Nam

      Đến từ : TPHCM

      Ngày Tham gia : 03/04/2011

      Tổng số bài gửi : 2292

      #10

       Sat Jun 16, 2012 9:06 pm

      Dragon_Slayer đã viết:anh làm cái last topic giống này đc ko

      [You must be registered and logged in to see this link.]

      em làm theo mãi mà chả đc bun
      bạn chèn nhiều đoạn javasrip bị lỗi !! hình như ở phần head
      #11