![]() | ![]() ![]() ![]() ![]() |
Xin chào, hôm nay WKVN sẽ share tới các bạn bản Update ver 3 của Mod Theo dõi chủ đề - Tracking Thread.
Trước đây thaian2009 đã cho ra ver 1 và 2 của Mod này, nhưng nó chỉ đơn giản là thay đổi màu nền của Topic ở Exloader cho tiện theo dõi mà thôi. Còn bây giờ, WKVN sẽ cho ra mắt phiên bản 3 của Mod Theo dõi chủ đề - Tracking Thread với tính năng hoàn hảo đúng nghĩa với tên gọi của nó.
Cũng giống như Xenforo thì ở Wapka đây cũng vậy, nếu bạn ấn nút "Theo dõi chủ đề" cho 1 chủ đề nào đấy, thì mỗi khi có 1 người vào comment tại topic đó, 1 thông báo sẽ được gửi tới bạn rằng "NNN đã bình luận trong chủ đề YYY mà bạn đang theo dõi."
Ở phiên bản này sẽ sử dụng CIP vậy nên sẽ liên quan chặt chẽ với Like V8. Tức là bạn phải làm thành công Like V8 thì mới có thể làm đc Mod này.
DEMO: http://wapkavietnam.net
![img](http://f23.wapka-files.com/download/a/a/6/2064308_aa60f5bc0a69d2593270d779.jpg/c9b4675f79c9e3bd7019/img.jpg)
Yêu cầu:
Những yêu cầu bắt buộc phải đảm bảo có để làm Tracking Thread V3 là:
- Đảm bảo tuân thủ đúng theo những yêu cầu của Like V8 và những yêu cầu tối thiểu đã nói từ trước.
- Đã làm thành công Like V8.
- Link topic phải có get-tema ngay từ đầu.
- Các URL của ::LISTER_BOTTOM:: đều phải có get-tema.
Bắt đầu
1. Nút Theo dõi và Bỏ theo dõi
Đặt ở Bottom forum hoặc Top forum code sau:
<a onclick="follow()" title="Theo dõi chủ đề này" name="follow"><div class="bon">Theo dõi chủ đề</div></a><a onclick="unfollow()" title="Bỏ theo dõi chủ đề này" style="display:none" name="unfollow"><div class="bon">Bỏ theo dõi chủ đề</div></a>
<script language="javascript">
if(':user-prvar-298:'.match(/(f:getid-forum:t:get-tema:e)/ig)){document.getElementsByName('follow')[0.style.display='none'; document.getElementsByName('unfollow')[0.style.display='inline';}
</script>
Copy code
<script language="javascript">
if(':user-prvar-298:'.match(/(f:getid-forum:t:get-tema:e)/ig)){document.getElementsByName('follow')[0.style.display='none'; document.getElementsByName('unfollow')[0.style.display='inline';}
</script>
Copy code
2. Eprofile và Smallform
Tăng smallform lên 52 smallform
<div style="display:none">:eprofile-0:<b></b>@@OK:/eprofile: :forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0: :forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0: :forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0: :forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0::forum-ID/smallform/0:</div>
Copy code
Copy code
3. Tracking Notification
Đặt code này ngay trên Like-Function và phía dưới các smallform:
<script language="javascript"> j=0; jj=20; te=document.getElementsByName('tema')[0.value; topid='f:getid-forum:t'+te+'e'; :userstats:d=:get-tema(ru):,o=dl,l=50:: if('%prvar-298%'.match(topid)) {if('%tname%'!==':user-tname:'){token1=document.getElementsByName('d_token')[j.value; token2=document.getElementsByName('d_token')[jj.value; document.write('<img src="forum2_add_XXXXXX.php?tema=%prvar-300%&d_token='+token1+'&text=:rand-beg:1-9999999:rand-end:'+token1+'&submit=OK" style="display:none"/><img src="forum3_add_%prvar-74%.php?d_token='+token2+'&text=[$'+token2+'$đã bình luận trong chủ đề
Copy code
Copy code
4. Like-Function
Thay Like-function bằng bản Update sau (đã nói ở Like V8):
<script language="javascript">
s=0;
ss=10;
vcur=':user-prvar-:getid-forum::';
nj=document.getElementsByName('nj')[0.value-1;
topicid='forum2_theme_:getid-forum:rpxh:get-tema:vagte:get-tema:';
function like(msid,cipid){
vcur=vcur+'t:get-tema:i'+msid;
mchs=document.getElementsByName('mchs')[0.value;
dlike=document.getElementsByName('dlike'+msid)[0.innerHTML;
token=document.getElementsByName('d_token')[s.value;
document.getElementsByName('button_like_'+msid)[0.style.display='none';
document.getElementsByName('button_unlike_'+msid)[0.style.display='inline';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[:getid-forum:='+vcur+'&mchs='+mchs+'&submit=OK" style="display:none"/><img src="forum3_add_'+cipid+'.php?d_token='+token+'&text=[$'+token+'$rpw'+msid+'rpu'+topicid+'rpvan='+nj+'rpthang'+msid+''+document.title+'rpend&submit=OK" style="display:none"/>';
if(dlike.length>45){document.getElementsByName('melike'+msid)[0.innerHTML='Bạn, ';} else {document.getElementsByName('melike'+msid)[0.innerHTML='Bạn thích điều này!';}
s=s*1+1;
}
function unlike(msid,unid){
vcur=vcur.replace('t:get-tema:i'+msid,'');
mchs=document.getElementsByName('mchs')[0.value;
dlike=document.getElementsByName('dlike'+msid)[0.innerHTML;
tokens=document.getElementsByName('d_token')[ss.value;
document.getElementsByName('button_like_'+msid)[0.style.display='inline';
document.getElementsByName('button_unlike_'+msid)[0.style.display='none';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[:getid-forum:='+vcur+'&mchs='+mchs+'&submit=OK" style="display:none"/><img src="forum2_add_XXXXXX.php?tema='+unid+'&d_token='+tokens+'&text=:rand-beg:1-9999999:rand-end:'+tokens+'&submit=OK" style="display:none"/>';
document.getElementsByName('melike'+msid)[0.innerHTML='';
ss=ss*1+1;
}
function follow(){
followid=followid+'f:getid-forum:t:get-tema:e';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[298='+followid+'&mchs='+mchs+'&submit=OK" style="display:none"/>';
document.getElementsByName('follow')[0.style.display='none';
document.getElementsByName('unfollow')[0.style.display='inline';
}
function unfollow(){
followid=followid.replace(/f:getid-forum:t:get-tema:e/ig,'');
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[298='+followid+'&mchs='+mchs+'&submit=OK" style="display:none"/>';
document.getElementsByName('follow')[0.style.display='inline';
document.getElementsByName('unfollow')[0.style.display='none';
followid=followid+'f:getid-forum:t:get-tema:e';
}
for(var i=0;i<20;i++){
document.getElementsByName('link_like_:user-tname:')[i.style.display='none';
}
</script>
Copy code
s=0;
ss=10;
vcur=':user-prvar-:getid-forum::';
nj=document.getElementsByName('nj')[0.value-1;
topicid='forum2_theme_:getid-forum:rpxh:get-tema:vagte:get-tema:';
function like(msid,cipid){
vcur=vcur+'t:get-tema:i'+msid;
mchs=document.getElementsByName('mchs')[0.value;
dlike=document.getElementsByName('dlike'+msid)[0.innerHTML;
token=document.getElementsByName('d_token')[s.value;
document.getElementsByName('button_like_'+msid)[0.style.display='none';
document.getElementsByName('button_unlike_'+msid)[0.style.display='inline';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[:getid-forum:='+vcur+'&mchs='+mchs+'&submit=OK" style="display:none"/><img src="forum3_add_'+cipid+'.php?d_token='+token+'&text=[$'+token+'$rpw'+msid+'rpu'+topicid+'rpvan='+nj+'rpthang'+msid+''+document.title+'rpend&submit=OK" style="display:none"/>';
if(dlike.length>45){document.getElementsByName('melike'+msid)[0.innerHTML='Bạn, ';} else {document.getElementsByName('melike'+msid)[0.innerHTML='Bạn thích điều này!';}
s=s*1+1;
}
function unlike(msid,unid){
vcur=vcur.replace('t:get-tema:i'+msid,'');
mchs=document.getElementsByName('mchs')[0.value;
dlike=document.getElementsByName('dlike'+msid)[0.innerHTML;
tokens=document.getElementsByName('d_token')[ss.value;
document.getElementsByName('button_like_'+msid)[0.style.display='inline';
document.getElementsByName('button_unlike_'+msid)[0.style.display='none';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[:getid-forum:='+vcur+'&mchs='+mchs+'&submit=OK" style="display:none"/><img src="forum2_add_XXXXXX.php?tema='+unid+'&d_token='+tokens+'&text=:rand-beg:1-9999999:rand-end:'+tokens+'&submit=OK" style="display:none"/>';
document.getElementsByName('melike'+msid)[0.innerHTML='';
ss=ss*1+1;
}
function follow(){
followid=followid+'f:getid-forum:t:get-tema:e';
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[298='+followid+'&mchs='+mchs+'&submit=OK" style="display:none"/>';
document.getElementsByName('follow')[0.style.display='none';
document.getElementsByName('unfollow')[0.style.display='inline';
}
function unfollow(){
followid=followid.replace(/f:getid-forum:t:get-tema:e/ig,'');
document.getElementsByName('toplike')[0.innerHTML='<img src="setprofile_0.xhtml?pr_var[298='+followid+'&mchs='+mchs+'&submit=OK" style="display:none"/>';
document.getElementsByName('follow')[0.style.display='inline';
document.getElementsByName('unfollow')[0.style.display='none';
followid=followid+'f:getid-forum:t:get-tema:e';
}
for(var i=0;i<20;i++){
document.getElementsByName('link_like_:user-tname:')[i.style.display='none';
}
</script>
Copy code
Lưu ý: Đã thêm 10 smallform (52 smallform) và đặt Like-Function dưới nút Theo dõi/Bỏ theo dõi
5. Spam blacklist
Cập nhật bản mới của Spam blacklist như sau:
"rpw">"thích bài viết số ";"rpu">" trong topic ";"vagte">"&get-tema=";"vthang">"#";"rpba">"=";"%E2%80%A2">"•";"[binhchon[bc1[/bc1[br[bc2[/bc2[br[bc3[/bc3[br[bc4[/bc4[br[bc5[/bc5[/binhchon">" ";"[br[bc3[/bc3[br[bc4[/bc4[br[bc5[/bc5">" ";"[br[bc4[/bc4[br[bc5[/bc5">" ";"[br[bc5[/bc5">" ";"jumptopage">"&n=";"gotomsgidst">"#";"acpuploadcreator">" ";"forum_del_">"forum_dël_";"forum2_del_">"forum2_dël_";"rpva">"&";"rpthang">"#";"[br[cloud [/cloud">" ";"rpquote">"đã trích bài viết của bạn trong chủ đề
Copy code
Copy code
Như vậy Mod Theo dõi chủ đề - Tracking Thread Ver 3 đã được add thành công vào trang của bạn.
Các bạn hãy test thử nếu thấy lỗi vui lòng comment lại topic này để chúng tôi fix lại sớm nhất.
Mọi ý kiến đóng góp, rắc rối hay khiếu nại vui lòng comment ngay tại topic này.
* Chúc các bạn thành công!
* Thân ái và quyết thắng!
WapkaVietNam.Net
Chỉnh sửa lúc 2016-08-16 04:42 bởi Pham_loi
![Like](http://dinhloi.xtgem.com/icon/like.png)