Teen_Thanh_Hoa
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Teen_Thanh_Hoa


You are not connected. Please login or register

Nút thanks không chuyển trang

2 posters

Go down  Thông điệp [Trang 1 trong tổng số 1 trang]

Admin

Admin
Admin - BQT Tối Cao
Admin - BQT Tối Cao


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 -->

https://teennet.forumvi.com

mavuongselavi

mavuongselavi
Member
Member

jjjjjjjjjjjjjjjjjjjjjjjjjj

Về Đầu Trang  Thông điệp [Trang 1 trong tổng số 1 trang]

Permissions in this forum:
Bạn không có quyền trả lời bài viết