Bạn vô viewtopic_body
Tìm đoạn
- Code:
<!-- BEGIN switch_vote_active -->
< ----------------- >
<!-- END switch_vote_active -->
thay bằng đoạn này:
- Code:
<!-- BEGIN switch_vote_active --><!-- BEGIN switch_vote -->
<span id="{postrow.displayed.U_POST_ID}">
<a
href="{postrow.displayed.switch_vote_active.switch_vote.U_VOTE_PLUS}"
target="v{postrow.displayed.U_POST_ID}v"
onclick="document.getElementById('{postrow.displayed.U_POST_ID}').innerHTML='<img
src=http://2img.net/i/fa/subsilver/icon_thanks_on_en.png>';var str
='{postrow.displayed.switch_vote_active.L_VOTE_TITLE}';
if (str=='Message not voted')
{str='Bài viết này chưa được cảm ơn.';
}else {str=str.replace('Message reputation :','Được cảm ơn:');
str=str.replace('100%','');
str=str.replace('(','');
str=str.replace(')','');str=str.replace('vote','lần.');
str=str.replace('s','');
} if(str=='Bài viết này chưa được cảm ơn.')
{str='Được cảm ơn: 1 lần';
}else{
for (i=0; i<=(str.length-1);i++)
{if (str.charCodeAt(i)>=48 && str.charCodeAt(i)<=57 && str.charAt(i+1)==' ')
{str=str.replace(String.fromCharCode(str.charCodeAt(i)),String.fromCharCode((str.charCodeAt(i))+1));}}}document.getElementById('kk{postrow.displayed.U_POST_ID}').innerHTML='<span
class=gensmall>'+ str+'</span>';
"><img
src="http://2img.net/i/fa/subsilver/icon_thanks_off_en.png"
id="{postrow.displayed.U_POST_ID}" border="0" alt="Bạn chưa cảm ơn người
này" vspace="1" /></a>
</span><!-- END switch_vote --><!-- END
switch_vote_active --><iframe
name="v{postrow.displayed.U_POST_ID}v" height="0"
frameborder="0"width="0"></iframe>
Thêm đoạn này:
- Code:
<!-- BEGIN switch_vote_active -->
<div id="kk{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="Bài viết này chưa được cảm ơn.";document.write(str);
}
else {str=str.replace("Message reputation :","Được cảm ơn:");
str=str.replace("100%","");
str=str.replace("(","");
str=str.replace(")","");str=str.replace("vote","lần.");
str=str.replace("s","");
document.write(str);
}</script></span></div>
<!-- END switch_vote_active -->