Demo
Bước 1:ACP-->Display-->Templates-->QLTT-->Viewtopic_body--> Tìm code sau và xóa nó đi
Bước 2: Đăt code sau vào nơi muốn nó hiển thị:
-- Chúc các bạn thành công --
Bước 1:ACP-->Display-->Templates-->QLTT-->Viewtopic_body--> Tìm code sau 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 -->
Bước 2: Đăt code sau vào nơi muốn nó hiển thị:
- Code:
<center><fieldset style="border: 1px dashed #C0C0C0; -moz-border-radius:3px"><b><font color="blue">Bạn thích bài viết <font color="green">"{TOPIC_TITLE}"</font> của <font color="red">{postrow.displayed.POSTER_NAME}</font> không?</font></b><!--
Nut vote --><table><tr> <!-- BEGIN switch_vote_active --><td><div id="oot{postrow.displayed.U_POST_ID}"><span class="gensmall"><script type="text/javascript">var str ='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}'; if (str=="Message not voted"){str="0";document.write(str);}else {str=str.replace("Message","Bài ziet");str=str.replace("s","");str=str.replace("(","");str=str.replace("(","");str=str.replace(")","");str=str.replace("reputation","dc che");k=str.search("%");z=str.search(":");y=str.search("vote");a=str.slice(z+1,k);b=str.slice(k+1,y);lulu=Math.round((((Number(a))*Number(b))/100));document.write(lulu);}</script></span></div></td><!-- END switch_vote_active -->
<td style="background:url(http://i39.servimg.com/u/f39/17/59/85/75/like1_10.jpg) no-repeat" width="60px" height="15px"><!-- BEGIN switch_vote_active --><!-- BEGIN switch_vote --><span id="zt{postrow.displayed.U_POST_ID}"> <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}" target="vzt{postrow.displayed.U_POST_ID}v" onClick="document.getElementById('zt{postrow.displayed.U_POST_ID}').innerHTML='<img src=http://i39.servimg.com/u/f39/17/59/85/75/like1_10.jpg>';document.getElementById('z{postrow.displayed.U_POST_ID}').innerHTML='<img src=http://i39.servimg.com/u/f39/17/59/85/75/like1_10.jpg>';var str ='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}';if (str=='Message not voted'){str='0';}else {str=str.replace('Message','Bài ziet');str=str.replace('s','');str=str.replace('(','');str=str.replace('(','');str=str.replace(')','');str=str.replace('reputation','dc che');str=str.replace('Message','Bài ziet');str=str.replace('s','');str=str.replace('(','');str=str.replace('(','');str=str.replace(')','');str=str.replace('reputation','dc che');k=str.search('%');y=str.search('vote');z=str.search(':');a=str.slice(z+1,k);b=str.slice(k+1,y);lulu=Math.round(Number(b) - (((100-Number(a))*Number(b))/100));str=lulu;} if(str=='0'){str='1';}else{lulu=Math.round(Number(b) - (((100-Number(a))*Number(b))/100) +1);str=lulu;}document.getElementById('oot{postrow.displayed.U_POST_ID}').innerHTML='<span class=gensmall>'+ str+'</span>';"><img src="http://i39.servimg.com/u/f39/17/59/85/75/like1_10.jpg" id="zt{postrow.displayed.U_POST_ID}" border="0" alt="Like" vspace="1" /></a></span><iframe name="vzt{postrow.displayed.U_POST_ID}v" height="0" frameborder="0"width="0"></iframe><!-- END switch_vote --><!-- END switch_vote_active --></td></div>
<td style="background:url(http://i39.servimg.com/u/f39/17/59/85/75/dislik13.jpg) no-repeat" height="17px" width="60px"><!-- BEGIN switch_vote_active --><!-- BEGIN switch_vote --><span id="z{postrow.displayed.U_POST_ID}"> <a href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_MINUS}" target="vz{postrow.displayed.U_POST_ID}v" onClick="document.getElementById('z{postrow.displayed.U_POST_ID}').innerHTML='<img src=http://i39.servimg.com/u/f39/17/59/85/75/dislik13.jpg>';document.getElementById('zt{postrow.displayed.U_POST_ID}').innerHTML='<img src=http://i39.servimg.com/u/f39/17/59/85/75/dislik13.jpg>';var str ='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}';if (str=='Message not voted'){str='0';}else {str=str.replace('Message','Bài ziet');str=str.replace('s','');str=str.replace('(','');str=str.replace('(','');str=str.replace(')','');str=str.replace('reputation','dc che');str=str.replace('Message','Bài ziet');str=str.replace('s','');str=str.replace('(','');str=str.replace('(','');str=str.replace(')','');str=str.replace('reputation','dc che');k=str.search('%');y=str.search('vote');z=str.search(':');a=str.slice(z+1,k);b=str.slice(k+1,y);lulu=Math.round(Number(b) - ((Number(a)*Number(b))/100));str=lulu;} if(str=='0'){str='1';}else{lulu=Math.round(Number(b) - ((Number(a)*Number(b))/100) +1);str=lulu;}document.getElementById('oo{postrow.displayed.U_POST_ID}').innerHTML='<span class=gensmall>'+ str+'</span>';"><img src="http://i39.servimg.com/u/f39/17/59/85/75/dislik13.jpg" id="z{postrow.displayed.U_POST_ID}" border="0" alt="Dislike" vspace="1" /></a> </span><iframe name="vz{postrow.displayed.U_POST_ID}v" height="0" frameborder="0"width="0"></iframe><!-- END switch_vote --><!-- END switch_vote_active --></td>
<!-- BEGIN switch_vote_active --><td><div id="oo{postrow.displayed.U_POST_ID}"><span class="gensmall"><script type="text/javascript">var str ='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}'; if (str=="Message not voted"){str="0";document.write(str);}else {str=str.replace("Message","Bài ziet");str=str.replace("s","");str=str.replace("(","");str=str.replace("(","");str=str.replace(")","");str=str.replace("reputation","dc che");k=str.search("%");y=str.search("vote");z=str.search(":");a=str.slice(z+1,k);b=str.slice(k+1,y);lulu=Math.round(Number(b) - ((Number(a)*Number(b))/100));document.write(lulu);}</script></span></div></td><!-- END switch_vote_active --></tr></table><!--
Nut vote -->Nếu bạn thích thì bấm <img src="http://i39.servimg.com/u/f39/17/59/85/75/like1_10.jpg"/>. Còn không thích thì bấm <img src="http://i39.servimg.com/u/f39/17/59/85/75/dislik13.jpg"/><br><br>
<!-- BEGIN switch_vote_active -->
<iframe name="v{postrow.displayed.U_POST_ID}" class="ajaxvote" style="display:none"></iframe>
<!-- BEGIN switch_no_bar -->
<span class="c3zvau v{postrow.displayed.U_POST_ID}" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}"><span class="qua">Bài viết chưa được vote</span></span>
<!-- END switch_no_bar -->
<!-- BEGIN switch_bar -->
<span class="c3zvau v{postrow.displayed.U_POST_ID}" title="{postrow.displayed.switch_vote_active.L_VOTE_TITLE}"><span class="qua">Vote: <script type="text/javascript">var str ='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}'; if (str=="Message not voted"){str="0";document.write(str);}else {str=str.replace("Message","Bài ziet");str=str.replace("s","");str=str.replace("(","");str=str.replace("(","");str=str.replace(")","");str=str.replace("reputation","dc che");k=str.search("%");z=str.search(":");y=str.search("vote");a=str.slice(z+1,k);b=str.slice(k+1,y);lulu=Math.round((((Number(a))*Number(b))/100));document.write(lulu);}</script></span><span class="qua">Đánh giá: 100%</span></span>
<!-- END switch_bar -->
<!-- END switch_vote_active -->
</fieldset></center>
- Code:
.c3zvau .qua,.no,.ost,.share{background-position:5px 50%;background-repeat:no-repeat;border:1px solid #C2D5E3;margin:6px 2px 0;padding:5px 8px 5px 25px}.share{background-image:url(http://i43.servimg.com/u/f43/16/03/04/56/fav10.png)}.qua{background-image:url(http://i43.servimg.com/u/f43/16/03/04/56/no10.gif);padding-left:29px!important}
-- Chúc các bạn thành công --