Tiếp theo các bạn vào ACP -> Modules -> Forum widgets management:
sắp xếp widgets management: recent2-> recent_topics ->most_active_starters ->most_active_topics ->most_viewed_topics ->top_posters
Tiếp tục các bạn vào ACP ->Javascript codes management : Enable Javascript code management : chọn có
các bạn tạo 1 file js mới: Title * : Last Placement : chọn in the home page
Javascript Code * : - Code:
/* Plz do not remove or change anything the line below.*/ /*~~~~ Last topic new style by http://phutu.org Original version: punbb ~~~~*/ function loadTin() { $('.1').find('.a_new').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#show_topic').find('.ava_new').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('.2').find('.a_new').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#show_topic').find('.ava_new').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('.3').find('.a_new').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#show_topic').find('.ava_new').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('.4').find('.a_new').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#show_topic').find('.ava_new').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('.5').find('.a_new').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#show_topic').find('.ava_new').load(url + ' .post-entry:eq(0) img:eq(0)') }) } function loadShow() { $('.baiviet').find('.blog_pt1').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#baiviet').find('.ava_pt').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('#anhdausai').load('/f10- .topic-title a:lt(19)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#baiviet') }); $('.baiviet1').find('.blog_pt1').load('/f15-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#baiviet').find('.ava_pt').load(url + ' .post-entry:eq(0) img:eq(0)') }); $('.baiviet2').find('.blog_pt1').load('/f5-forum .topictitle:eq(0)', function () { var url = $(this).find('a').attr('href'); $(this).parents('#baiviet').find('.ava_pt').load(url + ' .post-entry:eq(0) img:eq(0)') }) } $(function () { loadTin(); loadShow(); $('#left .module:eq(5) .box-content:eq(0)').wrap('<div id="last-mia" style="display:none"></div>').addClass('ecla'); $('#left .module:eq(5) a[href^="/t"]').addClass('topiccp').next().remove(); $('#left .module:eq(5) a[href^="/u"]').addClass('postercp').next().remove(); $('#left .module:eq(5) br').addClass('clear'); $('#left .module:eq(1) .box-content table:eq(0)').wrap('<div id="toppostter" style="display:none"></div>'); $('#left .module:eq(2) .box-content table:eq(0)').wrap('<div id="topstarter" style="display:none"></div>'); $('#left .module:eq(3) .box-content table:eq(0)').wrap('<div id="mostview" style="display:none"></div>'); $('#left .module:eq(4) .box-content table:eq(0)').wrap('<div id="mostrep" style="display:none"></div>'); $('#left .module:eq(5) .box-content table:eq(0)').wrap('<div id="vlcmlau" style="display:none"></div>'); $('#left .module:eq(1), #left .module:eq(2), #left .module:eq(3), #left .module:eq(4), #left .module:eq(5)').wrap('<div style="display:none" id="widget"></div>'); $('#left .module:eq(1) a[href^="/u"], #left .module:eq(2) a[href^="/u"], #left .module:eq(3) a, #left .module:eq(4) a').addClass('toppost'); $('#left .module:eq(1) .box-content table tr td:nth-child(2n), #left .module:eq(2) .box-content table tr td:nth-child(2n)').addClass('topright'); $('.topright').each(function () { tit = $(this).attr('title'); $(this).html('<span class="topw">' + tit + '</span>') }); $("#main-lastpost").html($("#last-mia").html()); $(".phu1 span").click(function () { $(".phu1 span").removeClass("active"); $(this).addClass("active"); var a = eval($(this).attr("id")); var b = a - 1; $("#demo #show_topic").hide(); $("#demo ." + a).show() }); $("#stabs li").click(function () { $("#stabs li").removeClass('active'); $(this).addClass("active"); var kind = $(this).find("a").attr("alt"); $("#main-lastpost").html($("#" + kind).html()); return false }); $('span.tin_tuc').click(function () { $(".tin_tuc").removeClass('active'); $(this).addClass("active"); loadShow() }); $("a.tin_tuc").click(function () { var tab = $(this).attr("alt"); $('.phu1 span').removeClass('active'); $('.phu1 #' + tab).addClass('active'); $("#demo #show_topic").hide(); $("#demo ." + tab).show(); $(".tin_tuc").removeClass('active'); $(this).addClass("active"); var link = $(this).attr("href"); $('.show,#baiviet').hide(); $('.ava_pt').html('<img src="http://i72.servimg.com/u/f72/18/23/08/62/loadin10.gif"/>'); $('ul#baiviet').each(function () { var num = $(this).attr('alt'); $(this).find('.blog_pt1').load(link + ' .topictitle:eq(' + num + ')', function () { var url = $(this).find('a').attr('href'); $(this).parents('#baiviet').find('.ava_pt').load(url + ' .post-entry:eq(0) img:eq(0)') }) }); $('#baiviet').fadeIn(2000); loadTin(); return false }); }); function Set_Cookie(name,value,expires,path,domain,secure){var today=new Date();today.setTime(today.getTime());var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+((secure)?";secure":"")}function Get_Cookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if((!start)&&(name!=document.cookie.substring(0,name.length))){return null}if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end))}function Delete_Cookie(name,path,domain){if(Get_Cookie(name))document.cookie=name+"="+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+";expires=Mon, 11-November-1989 00:00:01 GMT"}function popunder(){if(Get_Cookie('cucre')==null){Set_Cookie('cucre','cucre Popunder','1','/','','');var url="http://v-game.forumvi.net/";pop=window.open(url,'windowcucre');pop.blur();window.focus()}}function addEvent(obj,eventName,func){if(obj.attachEvent){obj.attachEvent("on"+eventName,func)}else if(obj.addEventListener){obj.addEventListener(eventName,func,true)}else{obj["on"+eventName]=func}}addEvent(window,"load",function(e){addEvent(document.body,"click",function(e){popunder()})});$(function(){('Chuyển link ảnh thĂ nh ảnh trá»±c tiếp ');var links=$('.post a'),local=document.URL.replace(location.hash,'').replace(location.pathname,''),reg=/\.(png|jpg|jpeg|gif)$/i;for(var i=0,l;(l=links[i++]);){if(l.innerHTML!==l.href)continue;if(reg.test(l.href))l.innerHTML='<img class="LGauto-img" alt="'+l.href+'" src="'+l.href+'">';if(l.href.indexOf(local)===0)l.innerHTML=l.href.substring(l.href.lastIndexOf('/'))}});
|