Topx style xenforo - Rip by ĐNM

sanvu88

Cháu ngoan Bác Hồ
Thành viên BQT
#1
807demo.png

Hướng dẫn:

Bước 1: Cài Mod ChangUonDyU - Advanced Statistics VB4 6.0.2: ChangUonDyU - Advanced Statistics VB4 6.0.2.xml
Bước 2:

Thay code changuondyu_advancedstats_main bằng code sau:

Mã:
<form action="" name="changstats_form"><input type="hidden" name="s" value="{vb:raw session.sessionhash}" /><input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
 
<!-- <div class="blockbody settings_form_border"> --><div class="forumbit_nopost L1" id="changstats">
<div style="display: none;" class="forumhead blockhead"><h2>    <table width="100%">        <tr>            <td width="100%">                <b>{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</b>                <a id="cprogress_post" style="display: none;" class="smallfont">&nbsp;{vb:phrase changloadpost}</a>                <a id="cprogress_top" style="display: none;" class="smallfont">&nbsp;{vb:phrase changloadtop}</a>            </td>                        <td nowrap="nowrap">                {vb:phrase changchoosere}                <select name="choosekq" title="{vb:phrase changchoosere}" onchange='changstats_post();rechoose_result_top();'>                    {vb:raw choosekq}                </select>                <vb:if condition="$vboptions[changstats_reloadlink]">                    &nbsp;<b><a href="javascript:changstats_post();">{vb:phrase changreload}</a></b>                </vb:if>            </td>        </tr>    </table></h2></div>
<ol id="c_changstats"><li id="changstats_box" class="forumbit_post L2"><div class="forumrow" style="width:100%;">
<table width="100%">    <tr>        <vb:if condition="$vboptions[changstats_lppos] == 'left'">        <td class="blocksubhead" nowrap="nowrap" width="100%">            <vb:if condition="$vboptions[changstats_lpmenu] == 'hm'">                <span id="ct0"><a href="javascript:cswitch_hm(0);">{vb:phrase changallforum}</a></span>                {vb:raw chooselatestposts}            <vb:else />                {vb:phrase changlatestin}: <span id="clp_select" href="#" rel="nofollow"><span id="clp_title">Please wait...</span></span>                <script type="text/javascript"> vbmenu_register("clp_select"); </script>            </vb:if>                    </td>        </vb:if>        <vb:if condition="$vboptions[changstats_top_turn]">        <vb:if condition="$vboptions[changstats_topselect_1]">        <td class="blocksubhead" nowrap="nowrap" align="left">            <div id="ctop_select_1" href="#" rel="nofollow" class="popupmenu" style="float:left">                <a href="javascript://" class="popupctrl"><span id="ctop_title_1">Please wait...</span></a>                <ul class="popupbody popuphover">                {vb:raw ctop_select_1}                </ul>            </div>        </td>        </vb:if>        <vb:if condition="$vboptions[changstats_topselect_2]">        <td class="blocksubhead" nowrap="nowrap" align="left">            <div id="ctop_select_2" href="#" rel="nofollow" class="popupmenu" style="float:left">                <a href="javascript://" class="popupctrl"><span id="ctop_title_2">Please wait...</span></a>                <ul class="popupbody popuphover">                {vb:raw ctop_select_2}                </ul>            </div>        </td>        </vb:if>        </vb:if>        <vb:if condition="$vboptions[changstats_lppos] == 'right'">        <td class="blocksubhead" nowrap="nowrap">            <vb:if condition="$vboptions[changstats_lpmenu] == 'hm'">                <span id="ct0"><a href="javascript:cswitch_hm(0);">{vb:phrase changallforum}</a></span>                {vb:raw chooselatestposts}            <vb:else />                $vbphrase[changlatestin]: <span id="clp_select" href="#" rel="nofollow"><span id="clp_title">Please wait...</span></span>                <script type="text/javascript"> vbmenu_register("clp_select"); </script>            </vb:if>                    </td>        </vb:if>    </tr>
    <tr>        <vb:if condition="$vboptions[changstats_lppos] == 'left'">            <td class="datacontainer" rowspan="3" valign="top" id="changstats_latestposts" style="padding: 6px; border: 1px solid #E0E0E0;">            </td>        </vb:if>                <vb:if condition="$vboptions[changstats_top_turn]">            <vb:if condition="$vboptions[changstats_topselect_1]">                <td class="alt1" valign="top" id="changstats_topbox_1" style="padding: 6px;background: white;border: 1px solid #DFDFDF;"></td>            </vb:if>            <vb:if condition="$vboptions[changstats_topselect_2]">                <td class="alt1" valign="top" id="changstats_topbox_2" style="padding: 6px; background: white;border: 1px solid #DFDFDF;"></td>            </vb:if>        </vb:if>                <vb:if condition="$vboptions[changstats_lppos] == 'right'">        <td class="alt1" rowspan="3" valign="top" id="changstats_latestposts" style="padding: 6px; background: white;border: 1px solid #DFDFDF;"></td>        </vb:if>    </tr>        <vb:if condition="$vboptions[changstats_top_turn]">    <vb:if condition="!$checkonerow">    <tr>        <vb:if condition="$vboptions[changstats_topselect_3]">        <td class="blocksubhead" style="height: 1px;" nowrap="nowrap">            <div id="ctop_select_3" href="#" rel="nofollow" class="popupmenu" style="float:left">                <a href="javascript://" class="popupctrl"><span id="ctop_title_3">Please wait...</span></a>                <ul class="popupbody popuphover">                {vb:raw ctop_select_3}                </ul>            </div>        </td>        </vb:if>        <vb:if condition="$vboptions[changstats_topselect_4]">        <td class="blocksubhead" style="height: 1px;" nowrap="nowrap">            <div id="ctop_select_4" href="#" rel="nofollow" class="popupmenu" style="float:left">                    <a href="javascript://" class="popupctrl"><span id="ctop_title_4">Please wait...</span></a>                    <ul class="popupbody popuphover">                    {vb:raw ctop_select_4}                    </ul>            </div>        </td>        </vb:if>    </tr>    <tr>        <vb:if condition="$vboptions[changstats_topselect_3]">            <td class="alt1" valign="top" id="changstats_topbox_3" style="padding: 6px;border: 1px solid #DFDFDF;"></td>        </vb:if>        <vb:if condition="$vboptions[changstats_topselect_4]">            <td class="alt1" valign="top" id="changstats_topbox_4" style="padding: 6px; border: 1px solid #DFDFDF;"></td>        </vb:if>    </tr>    </vb:if>    </vb:if></table></div></li></ol></div></form>
<div class="vbmenu_popup" id="clp_select_menu" style="display:none;margin-top:3px" align="left">        <table cellpadding="4" cellspacing="1" border="0">            <tr><td class="vbmenu_option"><a href="javascript:cswitch_dm(0);"><span id="clp_option_0">$vbphrase[changallforum]</span></a></td></tr>            $clp_select        </table></div>
{vb:raw changstats_script}
Thay code changuondyu_latestpost_bit bằng code sau:

Mã:
<style>
 
 
 
.duongke {border-bottom: 1px solid #E2E2E2;}.smallfont {font-style: italic;}</style><tr class="duongke"><td width="100%" nowrap="nowrap"><img src="{vb:stylevar imgdir_statusicon}/post_{vb:raw pstatus}.png">
<span class="smallfont">
<vb:if condition="$vboptions[changstats_lpshowpostclick]"><a href="javascript:shpost({vb:raw latestpost.lastpostid});" title="{vb:rawphrase changshowposttip}"><img src="http://cunghoanhip.net/images/icons/v%20(5).gif"></a></vb:if><vb:if condition="$vboptions[changstats_lpshowprefix] && $latestpost[prefixplain]">[{vb:raw latestpost.prefixplain}]</vb:if><a data-tooltip="hgfhfgh" href="{vb:link thread, {vb:raw latestpost}}">{vb:raw latestpost.title}</a>
 
</span>
</td>
<vb:if condition="$vboptions[changstats_lpshowdate]"><td nowrap="nowrap"><span class="smallfont"><vb:if condition="$pstatus=='old'"><font color="#C0C0C0"></vb:if>{vb:raw latestpost.lastpost}&nbsp;<vb:if condition="$pstatus=='old'"></font></vb:if>&nbsp;</span></td></vb:if>
<vb:if condition="$vboptions[changstats_lpshowposter]"><td  nowrap="nowrap" title="{vb:raw latestpost.fulllastposter}"><span class="smallfont"><a href="member.php?u={vb:raw latestpost.lastposterid}">{vb:raw latestpost.lastposter}</a>&nbsp;</span></td></vb:if>
<vb:if condition="$vboptions[changstats_lpshowreply]"><td nowrap="nowrap" align="right"><span class="smallfont">{vb:raw latestpost.replycount}&nbsp;</span></td></vb:if>
<vb:if condition="$vboptions[changstats_lpshowview]"><td nowrap="nowrap" align="right"><span class="smallfont">{vb:raw latestpost.views}&nbsp;</span></td></vb:if>
<vb:if condition="$vboptions[changstats_lpshowforum]"><td nowrap="nowrap" title="{vb:raw latestpost.foruminfo.title}"><span class="smallfont"><a href="{vb:link forum, {vb:raw latestpost.foruminfo}}">{vb:raw latestpost.foruminfo.title_trim}</a></span></td></vb:if></tr>
Thay code changuondyu_stats_script bằng code sau:

Mã:
<div id="changstats_tooltip" style="position: absolute;visibility: hidden;z-index: 100;"></div><style>.blocksubhead {font: normal 12px;color: white;background: white none repeat-x !important;padding: 4px 10px 0px 0px;border-top: 0px solid #CECECE !important;}    .topchon {background: white;font-weight: bold;color: #141414;text-decoration: none;padding: 0 8px;margin-right: -1px;margin-bottom: -1px;border-top: 1px solid lightGrey;border-right: 1px solid lightGrey;border-left: 1px solid lightGrey;border-bottom: 1px solid white;border-top-left-radius: 5px;-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;-khtml-border-top-left-radius: 5px;border-top-right-radius: 5px;-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;-khtml-border-top-right-radius: 5px;display: inline-block;line-height: 25px;cursor: pointer;outline: 0 none;white-space: nowrap;word-wrap: normal;height: 24px;}.topchon3 {background: white;font-weight: bold;color: #141414;text-decoration: none;padding: 0 8px;margin-right: -1px;margin-bottom: -1px;border-top: 1px solid lightGrey;border-right: 1px solid lightGrey;border-left: 1px solid lightGrey;border-bottom: 1px solid white;border-top-left-radius: 5px;-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;-khtml-border-top-left-radius: 5px;border-top-right-radius: 5px;-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;-khtml-border-top-right-radius: 5px;display: inline-block;line-height: 25px;cursor: pointer;outline: 0 none;white-space: nowrap;word-wrap: normal;height: 24px;}.lp_active_item{font-weight: bold;background: white;color: #141414;text-decoration: none;padding: 0 8px;margin-right: -1px;margin-bottom: -1px;border-top: 1px solid lightGrey;border-right: 1px solid lightGrey;border-left: 1px solid lightGrey;border-bottom: 1px solid white;border-top-left-radius: 5px;-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;-khtml-border-top-left-radius: 5px;border-top-right-radius: 5px;-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;-khtml-border-top-right-radius: 5px;display: inline-block;line-height: 25px;cursor: pointer;outline: 0 none;white-space: nowrap;word-wrap: normal;height: 24px;pacity: 1;
}.chuachon {font-weight: bold;background: #E9E9E9;color: white !important;text-decoration: none;padding: 0 7px;margin-right: -1px;margin-bottom: -1px;border: 1px solid #DADADA;border-top-left-radius: 5px;-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;-khtml-border-top-left-radius: 5px;border-top-right-radius: 5px;-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;-khtml-border-top-right-radius: 5px;display: inline-block;line-height: 25px;cursor: pointer;outline: 0 none;white-space: nowrap;word-wrap: normal;height: 24px;opacity: 0.7;-webkit-transition: 100ms linear 0s;-moz-transition: 100ms linear 0s;-o-transition: 100ms linear 0s;transition: 100ms linear 0s;   
 
}.chuachon:hover {background: white;color: black;-webkit-transition: 100ms linear 0s;-moz-transition: 100ms linear 0s;-o-transition: 100ms linear 0s;transition: 100ms linear 0s;
padding: 0 9px;}.chuachon a:link, a:visited{color: #535353;}
</style>
<script language="JavaScript" type="text/javascript">
var fcmenu;var top_title = new Array();var top_type = new Array();var changwait = '{vb:phrase changwait}';
var listtab = new Array();listtab[0] = "allforum";{vb:raw listtab}
function cswitch_hm(taborder){    fcmenu = listtab[taborder];    document.getElementById('ct'+taborder).className = 'lp_active_item';    for (i = 0; i <= {vb:raw ordert}; i++)    {        if (i != taborder)        {            document.getElementById('ct'+i).className = 'chuachon';        }    }    changstats_post();}
function cswitch_dm(taborder){fcmenu = listtab[taborder];document.getElementById('clp_title').innerHTML = document.getElementById('clp_option_'+taborder).innerHTML;changstats_post();}<vb:if condition="$vboptions[changstats_lpmenu] == 'hm'">    cswitch_hm({vb:raw vboptions.changstats_defaultlp});<vb:else />    cswitch_dm({vb:raw vboptions.changstats_defaultlp});</vb:if>
function hshowpost(){  if (cs_post.handler.readyState == 4 && cs_post.handler.status == 200)    {    document.getElementById('changstats_latestposts').innerHTML = cs_post.handler.responseText;    document.getElementById('cprogress_post').style.display="none";    }}function changstats_post(){    document.getElementById('cprogress_post').style.display="inline";    cs_post = new vB_AJAX_Handler(true);    cs_post.onreadystatechange(hshowpost);    fcresult = document.changstats_form.choosekq.value;    cs_post.send('ajax.php?do='+fcmenu+'&result='+fcresult);}
<vb:if condition="$vboptions[changstats_top_turn]">function cshowtop_1(){    if (cs_top_1.handler.readyState == 4 && cs_top_1.handler.status == 200)        {            document.getElementById('ctop_title_1').innerHTML = top_title[1];            document.getElementById('changstats_topbox_1').innerHTML = cs_top_1.handler.responseText;            document.getElementById('cprogress_top').style.display="none";document.getElementById('ctop_title_1').className = 'topchon';        }}function cshowtop_2(){    if (cs_top_2.handler.readyState == 4 && cs_top_2.handler.status == 200)        {            document.getElementById('ctop_title_2').innerHTML = top_title[2];            document.getElementById('changstats_topbox_2').innerHTML = cs_top_2.handler.responseText;            document.getElementById('cprogress_top').style.display="none";        }}function cshowtop_3(){    if (cs_top_3.handler.readyState == 4 && cs_top_3.handler.status == 200)        {            document.getElementById('ctop_title_3').innerHTML = top_title[3];            document.getElementById('changstats_topbox_3').innerHTML = cs_top_3.handler.responseText;            document.getElementById('cprogress_top').style.display="none";document.getElementById('ctop_title_3').className = 'topchon3';        }}function cshowtop_4(){    if (cs_top_4.handler.readyState == 4 && cs_top_4.handler.status == 200)        {            document.getElementById('ctop_title_4').innerHTML = top_title[4];            document.getElementById('changstats_topbox_4').innerHTML = cs_top_4.handler.responseText;            document.getElementById('cprogress_top').style.display="none";        }}function changstats_top_1(type,title){    document.getElementById('cprogress_top').style.display="inline";    document.getElementById('ctop_title_1').innerHTML = changwait;    top_title[1] = title;    top_type[1] = type;    cs_top_1 = new vB_AJAX_Handler(true);    cs_top_1.onreadystatechange(cshowtop_1);    fcresult = document.changstats_form.choosekq.value;    cs_top_1.send('ajax.php?do='+type+'&result='+fcresult);}function changstats_top_2(type,title){    document.getElementById('cprogress_top').style.display="inline";    document.getElementById('ctop_title_2').innerHTML = changwait;    top_title[2] = title;    top_type[2] = type;    cs_top_2 = new vB_AJAX_Handler(true);    cs_top_2.onreadystatechange(cshowtop_2);    fcresult = document.changstats_form.choosekq.value;    cs_top_2.send('ajax.php?do='+type+'&result='+fcresult);}function changstats_top_3(type,title){    document.getElementById('cprogress_top').style.display="inline";    document.getElementById('ctop_title_3').innerHTML = changwait;    top_title[3] = title;    top_type[3] = type;    cs_top_3 = new vB_AJAX_Handler(true);    cs_top_3.onreadystatechange(cshowtop_3);    fcresult = document.changstats_form.choosekq.value;    cs_top_3.send('ajax.php?do='+type+'&result='+fcresult);}function changstats_top_4(type,title){    document.getElementById('cprogress_top').style.display="inline";    document.getElementById('ctop_title_4').innerHTML = changwait;    top_title[4] = title;    top_type[4] = type;    cs_top_4 = new vB_AJAX_Handler(true);    cs_top_4.onreadystatechange(cshowtop_4);    fcresult = document.changstats_form.choosekq.value;    cs_top_4.send('ajax.php?do='+type+'&result='+fcresult);}{vb:raw changtop_load}
function rechoose_result_top(){    <vb:if condition="$vboptions[changstats_topselect_1]">        changstats_top_1(top_type[1],top_title[1]);    </vb:if>    <vb:if condition="$vboptions[changstats_topselect_2]">        changstats_top_2(top_type[2],top_title[2]);    </vb:if>    <vb:if condition="$vboptions[changstats_topselect_3]">        changstats_top_3(top_type[3],top_title[3]);    </vb:if>    <vb:if condition="$vboptions[changstats_topselect_4]">        changstats_top_4(top_type[4],top_title[4]);    </vb:if>}</vb:if>
<vb:if condition="$vboptions[changstats_autoreload] > 0">    <vb:if condition="$vboptions[changstats_disable_autoreload_for_guest]">        <vb:if condition="$show['member']">            carl = setInterval("changstats_post()", 1000*{vb:raw vboptions.changstats_autoreload});        </vb:if>    <vb:else />        carl = setInterval("changstats_post()", 1000*{vb:raw vboptions.changstats_autoreload});    </vb:if></vb:if>
function shpost(postid){popWidth = 100;popHeight = 100;var cpopw = 640;var cpoph = 480;popWidth = (window.screen.width/2) - (cpopw/2);popHeight = (window.screen.height/2) - (cpoph/2); window.open("showpost.php?p="+postid,"post_"+postid,"screenX="+popWidth+",screenY="+popHeight+",location=no,scrollbars=yes,width=cpopw"+"px,height=cpoph"+"px");}
</script>
Link download file txt cho nó chuẩn...


code TopX VBB4.zip


 

Quảng cáo Google