DEMO
-Tạo 3 new site X,Y,Z:
+X: site dislike
+Y: site like
+Z: meta like
Bắt đầu từ...
Top forum
- Mã: Chọn tất cả
<script type="text/javascript"> function linklike(id,user,tema,theme,n){ nj=n-1; if(user!=':user-tname:'){if(':user-prvar-:getid-forum::'.match("t"+tema+"i"+id)){document.write('<a style="color:red" href="site_X.xhtml?get-forum=:getid-forum:&get-tema='+tema+'&get-id='+id+'&get-u='+user+'&get-n='+nj+'&get-topic='+theme+':admin-hash-amp:">Bỏ thích</a>');} else document.write('<a style="color:red" href="site_Y.xhtml?get-forum=:getid-forum:&get-tema='+tema+'&get-id='+id+'&get-u='+user+'&get-n='+nj+'&get-topic='+theme+':admin-hash-amp:">Thích</a>');}} </script>
<script type="text/javascript"> function hien(idd,tema){:userstats:d=ru,o=dl,l=50, s=1::writ('%lname%','%prvar-:getid-forum:%.match("t"+tema+"i"+idd)',idd,tema);:: :/userstats: :userstats:d=ru,o=dl,l=50, s=2::writ('%lname%','%prvar-:getid-forum:%.match("t"+tema+"i"+idd)',idd,tema);:: :/userstats:} function writ(ur,da,idd,tema){if(da.match("t"+tema+idd)){dem=dem+1; document.write("@"+ur+", ");}}
pvar=':userstats:d=ru,o=dl,s=1,l=100::%prvar-80%:: :/userstats:;:userstats:d=ru,o=dl,s=2,l=100::%prvar-80%:: :/userstats:'; </script>
Bottom forum
- Mã: Chọn tất cả
<script type="text/javascript"> var msg=document.getElementsByName("hienlike");
for(var i=0;i<msg.length;i++){ var txte=document.getElementsByName("hienlike")[i].innerHTML; var txt=txte.replace(/@/ig, ''); document.getElementsByName("hienlike")[i].innerHTML=txt;}
</script>